/* Trinix marketing design system — loads last; wins over legacy sheets */
:root {
  --tx-blue-600: #2563eb;
  --tx-blue-500: #003e89;
  --tx-blue-100: #dbeafe;
  --tx-blue-50: #eff6ff;
  --tx-green-500: #25d366;
  --tx-green-600: #1da851;

  --tx-ink-900: #0b1220;
  --tx-ink-700: #1f2937;
  --tx-ink-500: #4b5563;
  --tx-ink-300: #9ca3af;
  --tx-line: #e5e7eb;
  --tx-surface: #ffffff;
  --tx-canvas: #f8fafc;
  --tx-canvas-2: #f1f5f9;
  --tx-warn: #b45309;
  --tx-danger: #dc2626;

  --tx-fs-display: clamp(2.25rem, 5vw, 3.75rem);
  --tx-fs-h2: clamp(1.75rem, 3.2vw, 2.5rem);
  --tx-fs-h3: clamp(1.25rem, 2vw, 1.5rem);
  --tx-fs-h4: 1.125rem;
  --tx-fs-body: 1rem;
  --tx-fs-sm: 0.875rem;
  --tx-fs-xs: 0.75rem;
  --tx-lh-tight: 1.1;
  --tx-lh-snug: 1.25;
  --tx-lh-body: 1.6;
  --tx-tracking-eyebrow: 0.08em;

  --tx-s1: 4px;
  --tx-s2: 8px;
  --tx-s3: 12px;
  --tx-s4: 16px;
  --tx-s5: 24px;
  --tx-s6: 32px;
  --tx-s7: 48px;
  --tx-s8: 64px;
  --tx-s9: 96px;
  --tx-s10: 128px;
  --tx-section-y: clamp(64px, 8vw, 128px);
  --tx-container: 1200px;
  --tx-gutter: clamp(16px, 4vw, 32px);
  --tx-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Marketing pages only — do not override dashboard (.tx-app) theme surfaces */
body.light-mode:not(.tx-app),
body:not(.tx-app) {
  background: var(--tx-canvas);
  color: var(--tx-ink-700);
  font-family: Epilogue, system-ui, sans-serif;
  font-size: var(--tx-fs-body);
  line-height: var(--tx-lh-body);
  -webkit-font-smoothing: antialiased;
}

body:not(.tx-app) h1,
body:not(.tx-app) h2,
body:not(.tx-app) h3,
body:not(.tx-app) h4,
.rx-hero h1,
.rx-band h2,
.rx-card h3 {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--tx-ink-900);
  line-height: var(--tx-lh-tight);
  letter-spacing: -0.02em;
}

.tx-container,
.rx-wrap {
  width: 100%;
  max-width: var(--tx-container);
  margin-inline: auto;
  padding-inline: var(--tx-gutter);
}

.tx-section,
.rx-band {
  padding-block: var(--tx-section-y);
  background: var(--tx-canvas);
}

.rx-band:nth-of-type(even),
.rx-band.rx-band-stage,
.tx-section.is-surface {
  background: var(--tx-surface);
}

.rx-band.rx-band-dark,
.tx-section.is-dark {
  background: var(--tx-ink-900);
  color: #e5e7eb;
}
.rx-band.rx-band-dark h2,
.tx-section.is-dark h2 {
  color: #fff;
}

.rx-kicker,
.tx-eyebrow {
  display: inline-block;
  font-size: var(--tx-fs-xs);
  font-weight: 600;
  letter-spacing: var(--tx-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--tx-blue-600);
  margin-bottom: var(--tx-s3);
}

.rx-band h2,
.tx-section h2 {
  font-size: var(--tx-fs-h2);
  font-weight: 700;
  margin: 0 0 var(--tx-s3);
}

.rx-lead,
.tx-deck {
  color: var(--tx-ink-500);
  max-width: 68ch;
  margin: 0 0 var(--tx-s5);
  font-size: 1.0625rem;
}

/* Buttons */
.tx-btn,
.rx-btn,
a.btn-primary,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font: 600 1rem/1 Outfit, sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s var(--tx-ease), border-color 0.15s var(--tx-ease), transform 0.1s var(--tx-ease), color 0.15s;
}
.tx-btn:active,
.rx-btn:active,
.btn-primary:active {
  transform: translateY(1px);
}
.tx-btn:focus-visible,
.rx-btn:focus-visible,
.btn-primary:focus-visible,
.nav-login:focus-visible {
  outline: 2px solid var(--tx-blue-500);
  outline-offset: 2px;
}

.tx-btn--primary,
.rx-btn,
.btn-primary,
a.btn-primary {
  background: #003e89 !important;
  color: #fff !important;
  border-color: transparent !important;
}
.tx-btn--primary:hover,
.rx-btn:hover,
.btn-primary:hover {
  background: #002e67 !important;
}

.tx-btn--secondary,
.rx-btn.rx-btn-ghost {
  background: #fff !important;
  color: var(--tx-ink-900) !important;
  border-color: var(--tx-line) !important;
}
.tx-btn--secondary:hover,
.rx-btn.rx-btn-ghost:hover {
  border-color: var(--tx-blue-500) !important;
  color: var(--tx-blue-600) !important;
}

.tx-btn--whatsapp {
  background: var(--tx-green-500) !important;
  color: #fff !important;
}
.tx-btn--whatsapp:hover {
  background: var(--tx-green-600) !important;
}

.tx-btn--ghost,
.nav-login {
  background: transparent !important;
  color: var(--tx-blue-600) !important;
  border-color: transparent !important;
  height: 48px;
  padding: 0 12px;
  font: 600 0.95rem/1 Outfit, sans-serif;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.tx-btn--sm { height: 40px; padding: 0 16px; font-size: 0.875rem; }
.tx-btn--lg { height: 56px; padding: 0 32px; font-size: 1.0625rem; }

.rx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tx-s3);
  margin-top: var(--tx-s5);
}

/* Cards */
.tx-card,
.rx-card {
  background: var(--tx-surface);
  border: 1px solid var(--tx-line);
  border-radius: 16px;
  padding: var(--tx-s5);
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04);
  transition: box-shadow 0.18s var(--tx-ease), transform 0.18s var(--tx-ease), border-color 0.18s var(--tx-ease);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
@media (min-width: 768px) {
  .tx-card,
  .rx-card { padding: var(--tx-s6); }
}
.tx-card:hover,
.rx-card:hover {
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.08);
  transform: translateY(-2px);
  border-color: var(--tx-blue-100);
}
.tx-card h3,
.rx-card h3 {
  font-size: var(--tx-fs-h3);
  font-weight: 700;
  margin: 0 0 var(--tx-s2);
}
.tx-card p,
.rx-card p,
.rx-card-body p {
  color: var(--tx-ink-500);
  margin: 0;
  flex: 1;
}
.rx-card-action {
  margin-top: var(--tx-s4) !important;
  color: var(--tx-blue-600) !important;
  font-weight: 600;
  font-size: var(--tx-fs-sm);
}
.rx-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: var(--tx-s4);
}

.tx-icon-tile,
.rx-card-svg,
.tx-lucide-tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--tx-blue-50);
  color: var(--tx-blue-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--tx-s4);
  flex-shrink: 0;
}
.tx-lucide-tile i,
.tx-lucide-tile svg,
.rx-card-svg i,
.rx-card-svg svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
}

.rx-grid {
  display: grid;
  gap: var(--tx-s5);
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 768px) {
  .rx-grid { grid-template-columns: repeat(2, 1fr); gap: var(--tx-s6); }
}
@media (min-width: 1024px) {
  .rx-grid.cols-3,
  .rx-grid.rx-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .rx-grid.cols-4,
  .rx-grid:not([class*="cols-"]) { grid-template-columns: repeat(2, 1fr); }
  .rx-grid.rx-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Header */
.tx-site-header.tx-topbar,
header.tx-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: var(--tx-surface) !important;
  border-bottom: 1px solid var(--tx-line);
  box-shadow: none;
  transition: box-shadow 0.2s var(--tx-ease);
}
/* Public cream pill stays above page content while scrolling */
body:not(.tx-app) header.tx-site-header,
body:not(.tx-app) header.tx-topbar,
body:not(.tx-app) header {
  position: fixed !important;
  z-index: 5000 !important;
  isolation: isolate;
}
.tx-site-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(11, 18, 32, 0.06);
}
.tx-header-inner {
  max-width: var(--tx-container);
  margin: 0 auto;
  height: 72px;
  padding: 0 var(--tx-gutter);
  display: flex;
  align-items: center;
  gap: var(--tx-s4);
}
.tx-desk-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tx-desk-nav a {
  color: var(--tx-ink-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 8px 12px;
  border-radius: 8px;
}
.tx-desk-nav a:hover,
.tx-desk-nav li.is-active > a {
  color: var(--tx-blue-600);
  background: var(--tx-blue-50);
}
.tx-mega {
  background: var(--tx-surface);
  border: 1px solid var(--tx-line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(11, 18, 32, 0.1);
  padding: var(--tx-s3);
  min-width: 220px;
}
.tx-mega a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
}
.tx-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--tx-s2);
}
.tx-region {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--tx-line);
  background: var(--tx-canvas);
  font-size: var(--tx-fs-xs);
  font-weight: 600;
  color: var(--tx-ink-700);
}

/* Mobile menu */
.mobile-menu {
  background: var(--tx-surface) !important;
  color: var(--tx-ink-700);
}
.mobile-menu .tx-mobile-nav a,
.mobile-menu .mobile-dropdown-toggle {
  min-height: 48px;
  color: var(--tx-ink-900);
  font-size: 1rem;
}
.mobile-cta {
  display: grid;
  gap: var(--tx-s3);
  padding: var(--tx-s5);
}

/* Hero */
.rx-hero {
  position: relative;
  min-height: auto;
  padding: calc(72px + var(--tx-s7)) 0 var(--tx-s8);
  background: linear-gradient(180deg, var(--tx-blue-50) 0%, var(--tx-canvas) 100%);
  overflow: hidden;
}
.rx-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  pointer-events: none;
}
.rx-shade {
  display: none;
}
.rx-hero-copy {
  position: relative;
  z-index: 1;
  max-width: var(--tx-container);
  margin: 0 auto;
  padding: 0 var(--tx-gutter);
  display: grid;
  gap: var(--tx-s6);
  align-items: center;
}
@media (min-width: 1024px) {
  .rx-hero-copy.rx-hero-split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.rx-hero h1 {
  font-size: var(--tx-fs-display);
  font-weight: 800;
  max-width: 18ch;
  margin: 0 0 var(--tx-s4);
  color: var(--tx-ink-900);
}
.rx-hero-text > p {
  color: var(--tx-ink-500);
  max-width: 52ch;
  margin: 0;
  font-size: 1.125rem;
}
.rx-hero .rx-lead {
  color: var(--tx-ink-500) !important;
}
.rx-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tx-s2);
  margin-top: var(--tx-s4);
}
.rx-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--tx-surface);
  border: 1px solid var(--tx-line);
  font-size: var(--tx-fs-xs);
  font-weight: 600;
  color: var(--tx-ink-700);
}

.tx-rating-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tx-s3);
  margin-top: var(--tx-s4);
  font-size: var(--tx-fs-sm);
  color: var(--tx-ink-700);
  font-weight: 600;
}
.tx-rating-strip .stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

.rx-hero-board {
  display: grid;
  gap: var(--tx-s4);
}
.rx-phone,
.rx-voice-card {
  background: var(--tx-surface);
  border: 1px solid var(--tx-line);
  border-radius: 24px;
  padding: var(--tx-s5);
  box-shadow: 0 16px 40px rgba(11, 18, 32, 0.08);
}
.tx-phone-frame {
  background: var(--tx-ink-900);
  border-radius: 28px;
  padding: 12px;
  box-shadow: 0 24px 48px rgba(11, 18, 32, 0.18);
}
.tx-phone-frame img {
  display: block;
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 9/16;
  object-fit: cover;
  background: var(--tx-canvas-2);
}

.rx-logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tx-s3);
  margin-top: var(--tx-s5);
}
.rx-logo-row span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--tx-line);
  background: var(--tx-surface);
  color: var(--tx-ink-500);
  font-size: var(--tx-fs-sm);
  font-weight: 600;
  filter: grayscale(1);
  transition: filter 0.15s, color 0.15s;
}
.rx-logo-row span:hover {
  filter: none;
  color: var(--tx-ink-900);
}

/* Pricing cards */
.tx-price-grid {
  display: grid;
  gap: var(--tx-s5);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .tx-price-grid { grid-template-columns: repeat(3, 1fr); }
}
.tx-price-card {
  position: relative;
  background: var(--tx-surface);
  border: 1px solid var(--tx-line);
  border-radius: 16px;
  padding: var(--tx-s6);
  display: flex;
  flex-direction: column;
  gap: var(--tx-s4);
}
.tx-price-card.is-popular {
  border-color: var(--tx-blue-500);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
}
.tx-price-card .pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tx-blue-500);
  color: #fff;
  font-size: var(--tx-fs-xs);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.tx-price-card .amount {
  font-family: Outfit, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--tx-ink-900);
}
.tx-price-card .founding {
  font-size: var(--tx-fs-sm);
  color: var(--tx-blue-600);
  font-weight: 600;
}
.tx-price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.tx-price-card li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: var(--tx-fs-sm);
  color: var(--tx-ink-700);
}

/* FAQ */
.rx-faq details {
  background: var(--tx-surface);
  border: 1px solid var(--tx-line);
  border-radius: 12px;
  padding: 4px 16px;
  margin-bottom: var(--tx-s3);
}
.rx-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--tx-ink-900);
  padding: 14px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.rx-faq summary::-webkit-details-marker { display: none; }
.rx-faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #003e89;
  border-bottom: 2px solid #003e89;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -0.2rem;
}
.rx-faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 0.2rem;
}
.rx-faq p {
  color: var(--tx-ink-500);
  padding-bottom: 14px;
  margin: 0;
}

/* Footer */
footer {
  background: var(--tx-ink-900) !important;
  color: #cbd5e1 !important;
  padding: var(--tx-s8) 0 var(--tx-s6) !important;
  border-top: none !important;
}
footer .footer-section-title {
  color: #fff !important;
  font-family: Outfit, sans-serif;
  font-size: 0.9375rem;
  margin-bottom: var(--tx-s4);
}
footer .footer-link {
  display: block;
  color: #94a3b8 !important;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 10px;
}
footer .footer-link:hover { color: var(--tx-blue-500) !important; }
footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--tx-s5);
  margin-top: var(--tx-s5);
  font-size: 14px;
  color: #94a3b8;
}
.tx-footer-brand p { color: #94a3b8; line-height: 1.6; }
.tx-footer-brand a { color: #fff; }

/* WhatsApp float */
a.tx-whatsapp,
.tx-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--tx-green-500) !important;
  color: transparent !important;
  font-size: 0 !important;
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
a.tx-whatsapp::before {
  content: "";
  width: 28px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Cookie — keep compact; layout owned by trinix-rox.css */
.tx-cookie {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 1100;
  max-width: min(720px, calc(100vw - 24px));
  margin-inline: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  font-size: 0.875rem;
  box-sizing: border-box;
}
.tx-cookie .rx-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-top: 0;
}
.tx-cookie button {
  min-height: 36px;
  height: 36px;
  padding: 0 0.75rem;
  border-radius: 40px;
  font: 700 0.8125rem/1 Satoshi, Epilogue, sans-serif;
  cursor: pointer;
  border: 0;
  background: #003e89;
  color: #fff;
  white-space: nowrap;
}
.tx-cookie #txCookieAccept {
  background: #003e89;
  color: #fff;
  border-color: transparent;
}
.tx-cookie #txCookieEssential {
  background: #e2e8f0;
  color: #0c1222;
  border: 1px solid #94a3b8;
}
@media (max-width: 640px) {
  .tx-cookie {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 16px);
    gap: 0.35rem;
    padding: 0.4rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
  }
  .tx-cookie p { font-size: 0.7rem; line-height: 1.25; margin: 0; }
  .tx-cookie button {
    min-height: 28px;
    height: 28px;
    padding: 0 0.5rem;
    font-size: 0.68rem;
  }
}

/* Forms */
.tx-field label {
  display: block;
  font-size: var(--tx-fs-sm);
  font-weight: 600;
  color: var(--tx-ink-700);
  margin-bottom: 6px;
}
.tx-field input,
.tx-field textarea,
.tx-field select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--tx-line);
  border-radius: 8px;
  padding: 0 16px;
  font: 400 1rem/1 Epilogue, sans-serif;
  color: var(--tx-ink-900);
  background: #fff;
}
.tx-field textarea { height: auto; padding: 12px 16px; min-height: 120px; }
.tx-field input:focus,
.tx-field textarea:focus,
.tx-field select:focus {
  outline: none;
  border-color: var(--tx-blue-500);
  box-shadow: 0 0 0 3px var(--tx-blue-100);
}

/* Stepper */
.tx-steps {
  display: grid;
  gap: var(--tx-s4);
}
@media (min-width: 900px) {
  .tx-steps {
    grid-template-columns: repeat(5, 1fr);
  }
}
.tx-step {
  background: var(--tx-surface);
  border: 1px solid var(--tx-line);
  border-radius: 16px;
  padding: var(--tx-s5);
}
.tx-step .n {
  font-family: Outfit, sans-serif;
  font-weight: 800;
  color: var(--tx-blue-500);
  margin-bottom: var(--tx-s2);
}

/* Stats */
.tx-stat-band {
  display: grid;
  gap: var(--tx-s4);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .tx-stat-band { grid-template-columns: repeat(3, 1fr); }
}
.tx-stat {
  background: var(--tx-canvas);
  border: 1px solid var(--tx-line);
  border-radius: 12px;
  padding: var(--tx-s5);
}
.tx-stat .n {
  font-family: Outfit, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--tx-ink-900);
}
.tx-stat .l {
  font-size: var(--tx-fs-sm);
  color: var(--tx-ink-500);
  margin-top: 6px;
}

/* Toast */
.tx-sys-toast-host {
  position: fixed;
  right: 16px;
  bottom: 88px;
  z-index: 110;
  display: grid;
  gap: 8px;
}
.tx-sys-toast {
  background: var(--tx-ink-900);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: var(--tx-fs-sm);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.2);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s var(--tx-ease), transform 0.25s var(--tx-ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .tx-card:hover, .rx-card:hover { transform: none; }
}

/* Hide legacy blank labels */
.rx-media-blank-label,
.sr-only:has(+ *) {
  /* kept for a11y but blanks should not render labels */
}
.rx-media-blank {
  display: none !important;
}

.tx-crumbs {
  max-width: var(--tx-container);
  margin: 0 auto;
  padding: var(--tx-s4) var(--tx-gutter) 0;
  font-size: var(--tx-fs-sm);
  color: var(--tx-ink-500);
}
.tx-crumbs a { color: var(--tx-blue-600); text-decoration: none; }

/* Auth / legal pages using system */
.tx-auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--tx-canvas);
}
@media (min-width: 1024px) {
  .tx-auth-shell { grid-template-columns: 1fr 1fr; }
}
.tx-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--tx-s6);
}
.tx-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--tx-surface);
  border: 1px solid var(--tx-line);
  border-radius: 16px;
  padding: var(--tx-s6);
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04);
}
.tx-auth-proof {
  display: none;
  background: linear-gradient(180deg, var(--tx-blue-50), var(--tx-canvas));
  padding: var(--tx-s8);
  align-items: center;
}
@media (min-width: 1024px) {
  .tx-auth-proof { display: flex; }
}

/* 404 */
.tx-404 {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--tx-s8) var(--tx-gutter);
}
.tx-404 h1 { font-size: var(--tx-fs-display); margin-bottom: var(--tx-s3); }

main { min-height: 40vh; }

/* ========== Contrast lock (beats trinix-rox / premium white-on-light) ========== */
body.light-mode:not(.tx-app),
html[data-trinix-theme="light"] body:not(.tx-app) {
  color: #0b1220 !important;
}

.rx-hero {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 72%, #ffffff 100%) !important;
  color: #0b1220 !important;
}
.rx-hero img.rx-hero-media {
  opacity: 0.05 !important;
  filter: grayscale(0.2) !important;
}
.rx-hero .rx-shade {
  display: none !important;
  opacity: 0 !important;
}
.rx-hero .rx-kicker,
.rx-hero .tx-eyebrow {
  color: #003e89 !important;
  font-weight: 700 !important;
}
.rx-hero h1,
.rx-hero h1 * {
  color: #0b1220 !important;
  -webkit-text-fill-color: #0b1220 !important;
  text-shadow: none !important;
}
.rx-hero-text,
.rx-hero-copy {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.35rem 1.35rem 1.1rem;
  max-width: 38rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.9)) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.rx-hero-text > p,
.rx-hero p,
.rx-hero .rx-lead,
.rx-hero .rx-hero-text p {
  color: #0b1220 !important;
  -webkit-text-fill-color: #0b1220 !important;
  font-weight: 550 !important;
  opacity: 1 !important;
}
.rx-hero .rx-chip,
.rx-chip,
.rx-chip-row .rx-chip {
  color: #0b1220 !important;
  -webkit-text-fill-color: #0b1220 !important;
  background: #ffffff !important;
  border: 1.5px solid #64748b !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.08) !important;
}
.rx-hero .tx-rating-strip,
.tx-rating-strip {
  color: #0b1220 !important;
  font-weight: 600 !important;
}
.rx-hero .tx-btn--primary,
.rx-hero .rx-btn:not(.rx-btn-ghost):not(.tx-btn--secondary):not(.tx-btn--whatsapp),
body:not(.tx-app) .tx-site-header .btn-primary,
body:not(.tx-app) .tx-header-actions .btn-primary,
body:not(.tx-app) header .btn-primary,
body:not(.tx-app) a.btn-primary,
body:not(.tx-app) .mobile-menu .btn-primary {
  background: #003e89 !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
body:not(.tx-app) header.tx-header--pill .btn-primary,
body:not(.tx-app) .tx-header-actions .btn-primary {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 0.75rem !important;
  font-size: 0.78rem !important;
  border-radius: 999px !important;
}
body:not(.tx-app) .tx-header-actions .btn-primary:hover,
body:not(.tx-app) a.btn-primary:hover {
  background: #002e67 !important;
}
.rx-hero .tx-btn--secondary,
.rx-hero .rx-btn-ghost {
  background: #ffffff !important;
  color: #0b1220 !important;
  border: 1px solid #94a3b8 !important;
}
.rx-hero .tx-btn--whatsapp {
  background: #25d366 !important;
  color: #ffffff !important;
}

.rx-band,
.rx-band h2,
.rx-band h3,
.rx-card,
.rx-card h3,
.tx-card,
.tx-card h3,
.tx-step,
.tx-price-card,
.tx-stat .n {
  color: #0b1220 !important;
}
.rx-lead,
.rx-card p,
.rx-card-body p,
.tx-card p,
.tx-deck,
.tx-stat .l,
.tx-price-card .rx-lead,
.rx-note,
.tx-note,
.rx-band p,
.tx-section p,
body:not(.tx-app) main p {
  color: #1f2937 !important;
}
/* Marketing / light pages only — never force ink onto dark dashboard theme */
html[data-trinix-theme="light"] body:not(.tx-app) .text-gray-300,
html[data-trinix-theme="light"] body:not(.tx-app) .text-gray-400,
html[data-trinix-theme="light"] body:not(.tx-app) .text-gray-500,
html[data-trinix-theme="light"] body:not(.tx-app) .text-slate-400,
html[data-trinix-theme="light"] body:not(.tx-app) .text-slate-500,
html[data-trinix-theme="light"] body:not(.tx-app) .text-muted,
body.light-mode:not(.tx-app) .text-gray-300,
body.light-mode:not(.tx-app) .text-gray-400,
body.light-mode:not(.tx-app) .text-gray-500 {
  color: #1f2937 !important;
}
.rx-card-action {
  color: #1d4ed8 !important;
}

body:not(.tx-app) .tx-desk-nav a,
body:not(.tx-app) .tx-desk-nav li > a,
body:not(.tx-app) .tx-site-header nav a {
  color: #0b1220 !important;
  font-weight: 650 !important;
}
html[data-trinix-theme="dark"] body:not(.tx-app) .tx-desk-nav a,
html[data-trinix-theme="dark"] body:not(.tx-app) .tx-site-header nav a {
  color: #f1f5f9 !important;
}
/* Cream pill header keeps dark ink even in dark theme */
html[data-trinix-theme="dark"] body:not(.tx-app) header.tx-header--pill .tx-desk-nav a,
html[data-trinix-theme="dark"] body:not(.tx-app) header.tx-header--pill nav a,
html[data-trinix-theme="dark"] body:not(.tx-app) header.tx-header--pill .nav-login {
  color: #0c1222 !important;
}
html[data-trinix-theme="dark"] body:not(.tx-app) header.tx-header--pill .tx-logo-on-light {
  display: inline-block !important;
}
html[data-trinix-theme="dark"] body:not(.tx-app) header.tx-header--pill .tx-logo-on-dark {
  display: none !important;
}
body:not(.tx-app) .nav-login {
  color: #003e89 !important;
  font-weight: 650 !important;
}
body:not(.tx-app) .tx-region {
  color: #0b1220 !important;
  font-weight: 600 !important;
}

/* Dark bands keep light text */
.rx-band.rx-band-dark,
.rx-band.rx-band-dark h2,
.rx-band.rx-band-dark h3,
.rx-band.rx-band-dark p,
.rx-band.rx-band-dark .rx-lead,
.tx-section.is-dark,
.tx-section.is-dark h2 {
  color: #f8fafc !important;
}
.rx-band.rx-band-dark .rx-lead,
.rx-band.rx-band-dark a {
  color: #e2e8f0 !important;
}
.rx-band.rx-band-dark a:hover {
  color: #ffffff !important;
}

footer,
footer p,
footer .copyright,
footer .footer-link,
.tx-footer-brand p {
  color: #e2e8f0 !important;
}
footer .footer-section-title {
  color: #ffffff !important;
}
footer .footer-link:hover {
  color: #93c5fd !important;
}

/* Logo visibility helpers */
.tx-logo-on-light { display: inline-block; }
.tx-logo-on-dark { display: none; }
footer .tx-logo-on-light { display: none; }
footer .tx-logo-on-dark { display: inline-block; }
html[data-trinix-theme="dark"] .tx-site-header .tx-logo-on-light { display: none; }
html[data-trinix-theme="dark"] .tx-site-header .tx-logo-on-dark { display: inline-block; }

/* Dashboard / app readability — theme-aware, no blanket ink on dark UI */
html[data-trinix-theme="light"] .tx-app,
html[data-trinix-theme="light"] .tx-app .tx-main,
html[data-trinix-theme="light"] .tx-app .tx-panel-card,
html[data-trinix-theme="light"] .tx-app .tx-page-head h1,
html[data-trinix-theme="light"] .tx-app .tx-page-head p,
html[data-trinix-theme="light"] .tx-app label,
html[data-trinix-theme="light"] .tx-app .tx-note,
html[data-trinix-theme="light"] .tx-app table,
html[data-trinix-theme="light"] .tx-app td,
html[data-trinix-theme="light"] .tx-app th,
html[data-trinix-theme="light"] .tx-app .glass {
  color: var(--tx-text, #0b1220);
}
html[data-trinix-theme="light"] .tx-app .tx-note,
html[data-trinix-theme="light"] .tx-app .text-gray-400,
html[data-trinix-theme="light"] .tx-app .text-gray-500,
html[data-trinix-theme="light"] .tx-app .text-slate-400,
html[data-trinix-theme="light"] .tx-app .text-slate-500,
html[data-trinix-theme="light"] .tx-app .text-gray-300 {
  color: #1f2937 !important;
}
html[data-trinix-theme="dark"] .tx-app,
html[data-trinix-theme="dark"] .tx-app .tx-main,
html[data-trinix-theme="dark"] .tx-app .tx-panel-card,
html[data-trinix-theme="dark"] .tx-app .glass {
  color: var(--tx-text, #f1f5f9);
}
html[data-trinix-theme="dark"] .tx-app .text-gray-300,
html[data-trinix-theme="dark"] .tx-app .text-gray-400,
html[data-trinix-theme="dark"] .tx-app .text-gray-500,
html[data-trinix-theme="dark"] .tx-app .tx-note {
  color: #e2e8f0 !important;
}
html[data-trinix-theme="dark"] .tx-app h1,
html[data-trinix-theme="dark"] .tx-app h2,
html[data-trinix-theme="dark"] .tx-app h3,
html[data-trinix-theme="dark"] .tx-app h4 {
  color: #f8fafc !important;
}

html[data-trinix-theme="light"] .tx-app .tx-topbar,
html[data-trinix-theme="light"] .tx-site-header {
  background: #ffffff !important;
  color: #0b1220 !important;
}
html[data-trinix-theme="dark"] .tx-app .tx-topbar,
html[data-trinix-theme="dark"] .tx-site-header {
  background: #121a2a !important;
  color: #f1f5f9 !important;
}

.mobile-menu,
.mobile-menu a,
.mobile-dropdown-toggle {
  color: #0b1220 !important;
}
html[data-trinix-theme="dark"] .mobile-menu,
html[data-trinix-theme="dark"] .mobile-menu a,
html[data-trinix-theme="dark"] .mobile-dropdown-toggle {
  color: #f1f5f9 !important;
  background: #121a2a !important;
}

/* Comparison table */
.tx-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--tx-line);
  border-radius: 16px;
  background: var(--tx-surface);
}
.tx-cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--tx-fs-sm);
}
.tx-cmp-table th,
.tx-cmp-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--tx-line);
  text-align: left;
}
.tx-cmp-table thead th {
  background: var(--tx-canvas-2);
  position: sticky;
  top: 0;
  font-weight: 700;
  color: var(--tx-ink-900);
}
.tx-cmp-table tbody tr:nth-child(even) td { background: var(--tx-canvas); }
.tx-cmp-table .check { color: var(--tx-blue-600); font-weight: 700; }
.tx-cmp-table .dash { color: var(--tx-ink-300); }
