/* SITE VISIBILITY LOCK v2 — also paints base theme if site.css lags */
:root {
  --bg: #030712;
  --text: #e8eef9;
  --muted: #8b95a8;
  --ok: #5dffb0;
  --primary: #5dffb0;
  --font-body: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
  --rail-inset: clamp(1.25rem, 4vw, 2.5rem);
}
html, body {
  margin: 0;
  min-height: 100%;
  background: #030712 !important;
  color: #e8eef9 !important;
  font-family: var(--font-body);
}
.reveal, .reveal.in, .flip-card, .vs-row, .roadmap-item,
.home-how.reveal, .home-voice.reveal, .feat-cards .flip-card,
#view-home .reveal, #view-home .hx-flow .hx-flow-list li {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* Last-loaded marketing lock. Reveals must never hide a page. */
.reveal,
.reveal.in,
.flip-card,
.feat-cards .flip-card,
#view-home .reveal,
.vs-row,
.roadmap-item,
#view-home .hx-flow .hx-flow-list li,
.home-how.reveal,
.home-voice.reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.topbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.6rem;
  padding: 0.7rem var(--rail-inset, var(--pad, 1.25rem));
}
.brand {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
}
.brand-mark {
  width: 2.45rem !important;
  height: 2.45rem !important;
  border-radius: 0.55rem;
  overflow: hidden;
  display: grid !important;
  place-items: center;
  background: #0a0f1c !important;
}
.brand-mark img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  display: block !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  padding: 0 !important;
  background: none !important;
}
.brand-name {
  color: #f3f7fc !important;
  font-weight: 700;
}
.nav-actions {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  justify-self: end;
  flex-wrap: wrap;
  max-width: 100%;
}
@media (min-width: 768px) {
  .topbar { grid-template-columns: 1fr auto 1fr; }
  .nav-desktop { display: flex !important; align-items: center; }
  .nav-burger { display: none !important; }
  .nav-mobile { display: none !important; }
  .nav-actions .nav-desk-only:not(.hidden) { display: inline-flex !important; }
}

/* Never let display:!important beat .hidden / [hidden] */
.hidden,
[hidden] {
  display: none !important;
}
.btn-primary:not(.hidden),
.btn-ghost:not(.hidden),
a.btn-primary:not(.hidden),
a.btn-ghost:not(.hidden) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.65rem 1.15rem;
  border-radius: 0.45rem;
  text-decoration: none;
}
.btn-primary:not(.hidden),
a.btn-primary:not(.hidden) {
  background: linear-gradient(165deg, #7bffc4 0%, #10b981 100%) !important;
  color: #04140c !important;
}

main { min-height: 70vh; }
.view:not(.hidden) { display: block; }

.page-hero {
  padding: 6.5rem var(--rail-inset, var(--pad, 1.25rem)) 1.75rem;
}
.page-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  color: #f4f7fb;
  line-height: 1.1;
}
.page-hero > p {
  margin: 0;
  max-width: 40rem;
  color: #c5cedc;
}

#view-home .hx-inner {
  display: grid !important;
  gap: 2.25rem;
  align-items: center;
}
@media (min-width: 1000px) {
  #view-home .hx-inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}
#view-home .hx-cta,
#view-home .hx-trust,
#view-home .hx-stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}
.hx-flow-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 800px) {
  .hx-flow-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.home-rail {
  width: min(100%, var(--rail-max, 70rem));
  margin-inline: auto;
  padding-inline: var(--pad, 1.25rem);
}

.feat-voice-rail {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .feat-voice-rail { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
}
.feat-voice-points,
.hx-trust {
  list-style: none;
  padding: 0;
}
.faq-list { display: grid; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.flip-grid,
.feature-grid,
.toy-grid {
  display: grid !important;
  gap: 1.15rem;
}
@media (min-width: 768px) {
  .flip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .flip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.pricing-grid {
  display: grid !important;
  gap: 1.15rem;
  width: min(100%, var(--rail-max, 70rem));
  margin-inline: auto;
  padding: 0 var(--pad, 1.25rem) 2rem;
}
@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.6rem 1.4rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.7rem;
  background: #0f172a;
}
.plan-price,
.plan-price-now {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #f4f7fb;
}
.plan-price-now {
  font-size: clamp(2.4rem, 4.5vw, 3.15rem) !important;
  font-weight: 750 !important;
  color: #ffffff !important;
  line-height: 0.95 !important;
}
.plan-price .plan-price-meta,
.plan-price .plan-price-currency,
.plan-price .plan-price-sep {
  font-size: 0.9rem !important;
  color: #c5cedc !important;
  font-weight: 600 !important;
}
.plan-features li::before,
.plan-features-check li::before,
.plan-ribbon-dot {
  content: none !important;
  display: none !important;
}
.plan-features-check li.is-on .plan-feat-ico {
  color: #5dffb0 !important;
}
.plan-features-check li.is-on .plan-feat-label {
  color: #e8eef9 !important;
}
.plan-features-check li.is-off .plan-feat-ico {
  color: #6b7280 !important;
}
.plan-features-check li.is-off .plan-feat-label {
  color: #8b95a8 !important;
}
.pricing-tools {
  display: grid;
  gap: 1.15rem;
  padding: 0 var(--pad, 1.25rem) 4.5rem;
  max-width: 68rem;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .pricing-tools { grid-template-columns: 1.35fr 1fr; }
}
.pricing-promo-input-wrap {
  display: flex !important;
  align-items: stretch;
  background: #060e20 !important;
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.pricing-promo-input-wrap input {
  flex: 1;
  min-width: 0;
  background: transparent !important;
  color: #e8eef9 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.auth-shell {
  min-height: calc(100dvh - 4rem);
  display: grid !important;
  place-items: center;
  padding: 6rem var(--pad, 1.25rem) 3rem;
}
.auth-panel {
  width: 100%;
  max-width: 26rem;
  display: grid;
  gap: 0.95rem;
  padding: 2rem 1.5rem;
  background: #131b2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
}
.auth-panel input,
.auth-panel select,
.auth-panel textarea {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.7rem 0.85rem;
  background: #060b16 !important;
  color: #e8eef9 !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 0.5rem;
}

.aff-pub-kpi,
.aff-pub-tiers {
  display: grid !important;
  gap: 0.85rem;
}
@media (min-width: 768px) {
  .aff-pub-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .aff-pub-tiers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.aff-pub-kpi-card,
.aff-pub-tier {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.7rem;
  background: #0f172a;
}
.aff-pub-kpi-card strong,
.aff-pub-tier strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #f4f7fb;
}

.site-footer,
.footer-row,
.footer-links,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.site-footer {
  flex-direction: column;
  padding: 2.5rem var(--rail-inset, var(--pad, 1.25rem)) 2rem;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #5dffb0;
  border: 2px solid #060b16;
}

/* Final: .hidden always wins over display:!important helpers above */
.hidden,
[hidden],
.nav-actions .hidden,
.nav-actions .nav-desk-only.hidden,
a.hidden,
button.hidden,
.btn-primary.hidden,
.btn-ghost.hidden {
  display: none !important;
}

.plan {
  min-height: 100%;
}
.plan .plan-cta-row,
.plan > .btn-primary,
.plan > .btn-ghost,
.plan > a.btn-primary {
  margin-top: auto;
}
.plan-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

/* Status node pills — first paint */
.status-nodes {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.55rem !important;
}
.status-node-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  padding: 0.42rem 0.78rem 0.42rem 0.62rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(125, 222, 165, 0.35) !important;
  background: rgba(125, 222, 165, 0.12) !important;
  color: #5dffb0 !important;
  font-size: 0.88rem !important;
  line-height: 1.2 !important;
}
.status-node-pill.bad {
  border-color: rgba(255, 180, 171, 0.45) !important;
  background: rgba(255, 180, 171, 0.12) !important;
  color: #ffb4ab !important;
}
.status-node-pill em {
  font-style: normal !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-size: 0.66rem !important;
  font-weight: 700 !important;
}
.status-node-pill .dot {
  width: 0.5rem !important;
  height: 0.5rem !important;
  border-radius: 50% !important;
  background: currentColor !important;
}
