/* Home (index.html). Tokens de cor vêm do site.css; aqui só layout,
   tipografia e movimento. Sem sombras nem gradientes (style guide). */

.nx {
  background: var(--bg);
  color: var(--text);
}
.nx a {
  text-decoration: none;
}
.nx .lp-cur {
  font-size: 0.5em;
  letter-spacing: 0;
  vertical-align: 0.6em;
  margin-inline: 1px;
}

/* Tipografia */
.nx-display {
  font-size: clamp(56px, 10.4vw, 152px);
  line-height: 0.92;
  font-weight: 560;
  letter-spacing: -0.06em;
  text-wrap: balance;
}
.nx-display-sm {
  font-size: clamp(44px, 7vw, 104px);
}
.nx-h2 {
  max-width: 14ch;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  font-weight: 560;
  letter-spacing: -0.045em;
}
/* O Onest não tem glifos japoneses: a fonte de sistema que entra no lugar
   precisa de mais peso e quase nenhum tracking negativo. */
html[lang="ja"] .nx {
  font-family: var(--font), "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif;
}
html[lang="ja"] .nx-display,
html[lang="ja"] .nx-h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.nx-lead {
  max-width: 44ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

/* Hero */
.nx-hero {
  padding-top: clamp(56px, 9vw, 120px);
}
.nx-hero .nx-display {
  max-width: 12ch;
}
.nx-hero-foot {
  margin-top: clamp(32px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}
.nx-hero-sub {
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
.nx-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

/* Uma única entrada (título, apoio, comparação). Com a página oculta à espera
   da tradução, ela só começa quando a página aparece. */
@keyframes nx-rise {
  from {
    opacity: 0;
    transform: translateY(var(--rise, 12px));
  }
}
:is(html:not([data-lang-pending]), html[data-lang-ready]) .nx-in {
  animation: nx-rise 450ms var(--ease-out) backwards;
}
.nx-in-1 {
  --rise: 16px;
}
:is(html:not([data-lang-pending]), html[data-lang-ready]) .nx-in-2 {
  --rise: 8px;
  animation-delay: 50ms;
}
:is(html:not([data-lang-pending]), html[data-lang-ready]) .nx-in-3 {
  --rise: 20px;
  animation-duration: 550ms;
  animation-delay: 100ms;
}

/* Antes/depois: as duas camadas ocupam o quadro; a limpa é recortada pela
   posição do divisor (o script escreve clip-path e transform direto). */
.nx-compare {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
  height: clamp(440px, 50vw, 640px);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
}
.nx-feed {
  position: absolute;
  inset: 0;
  padding: clamp(16px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.nx-feed-clean {
  background: var(--bg);
  clip-path: inset(0 0 0 50%);
  padding-inline: clamp(24px, 4vw, 64px);
  padding-top: clamp(24px, 3vw, 48px);
}
.nx-grid {
  display: grid;
  gap: 24px 16px;
}
.nx-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.nx-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}
.nx-v {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nx-th {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--well);
}
/* Ilustrações chapadas (sprite de <symbol> no próprio HTML): leem como
   miniaturas de verdade sem foto nem gradiente. */
.nx-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.nx-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
:root[data-theme="dark"] .nx-feed-clean .nx-art {
  opacity: 0.92;
}
.nx-dur,
.nx-tag {
  position: absolute;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.nx-dur {
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
}
.nx-tag {
  left: 8px;
  top: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
}
.nx-tag-red {
  background: #cc0000;
}
.nx-tag-ok {
  background: #2ba640;
}
.nx-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72%;
  height: 4px;
  background: #ff0033;
}
.nx-v-t {
  font-size: 14px;
  font-weight: 550;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nx-v-meta {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.nx-v-meta > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nx-av {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--a);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}
.nx-v-c {
  font-size: 12px;
  color: var(--text-2);
}
.nx-feed-clean .nx-v-meta {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
}
.nx-feed-clean .nx-av {
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.nx-feed-clean .nx-v-t {
  font-size: 16px;
}
.nx-feed-clean .nx-v-c {
  font-size: 14px;
}
.nx-shelf-t {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}
.nx-shelf-t svg {
  width: 22px;
  height: 22px;
  color: #ff0033;
}
.nx-shorts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.nx-s {
  position: relative;
  aspect-ratio: 9 / 14;
  border-radius: 12px;
  overflow: hidden;
  background: var(--well);
}
.nx-s span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.nx-label {
  position: absolute;
  top: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  transition: opacity 200ms var(--ease-out);
}
.nx-label-before {
  left: 16px;
}
.nx-label-after {
  right: 16px;
}
.nx-compare.is-left .nx-label-before,
.nx-compare.is-right .nx-label-after {
  opacity: 0;
}
/* O elemento tem a largura do quadro e anda por transform; a linha é a borda
   esquerda dele (porcentagem de translateX é relativa ao próprio elemento). */
.nx-handle {
  position: absolute;
  inset: 0;
  z-index: 3;
  transform: translateX(50%);
  pointer-events: none;
}
.nx-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: var(--text);
}
.nx-handle span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  transition: transform 200ms var(--ease-out);
}
.nx-handle svg {
  width: 20px;
  height: 20px;
}
.nx-compare.is-dragging .nx-handle span {
  transform: scale(0.92);
}
.nx-compare:has(.nx-range:focus-visible) .nx-handle span {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.nx-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-appearance: none;
  appearance: none;
}

.nx-product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}
.nx-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.nx-row ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nx-pro,
.nx-made-tags li b {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--pro-tint);
  color: var(--pro-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

/* Loop: forma de onda com a região A-B. As barras de dentro do loop são uma
   segunda cópia em laranja, recortada pela região. */
.nx-practice {
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* overflow-x: clip porque a agulha é uma camada da largura toda deslocada por
   translateX: sem isso ela empurra a página para o lado no celular. */
.nx-wave {
  position: relative;
  height: 160px;
  overflow-x: clip;
}
.nx-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 3px;
}
.nx-bars i {
  flex: 1;
  height: var(--v);
  min-height: 4px;
  border-radius: 2px;
  background: var(--border-2);
}
.nx-bars-on {
  clip-path: inset(0 37% 0 50%);
}
.nx-bars-on i {
  background: var(--loop-cta);
}
.nx-region {
  position: absolute;
  inset: -8px 0;
  border-radius: 8px;
  background: var(--loop-band);
  opacity: 0.45;
  clip-path: inset(0 37% 0 50%);
}
.nx-head {
  position: absolute;
  inset: -12px 0;
  pointer-events: none;
}
.nx-head::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  border-radius: 2px;
  background: var(--text);
}
.nx-times {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}
.nx-times [data-loop-range] {
  color: var(--loop-strong);
  font-weight: 600;
}
.nx-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.nx-controls > :first-child {
  grid-column: 1 / -1;
}
.nx-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.nx-control-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}
.nx-seg {
  display: flex;
  padding: 3px;
  border-radius: 12px;
  background: var(--well);
}
.nx-seg button {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nx-seg button:hover {
    color: var(--text);
  }
}
.nx-seg button:active {
  transform: scale(0.96);
}
.nx-seg button[aria-checked="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.nx-pitch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  background: var(--well);
}
.nx-pitch button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    background-color 150ms ease,
    transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nx-pitch button:hover {
    background: var(--surface);
  }
}
.nx-pitch button:active {
  transform: scale(0.9);
}
.nx-pitch svg {
  width: 16px;
  height: 16px;
}
.nx-pitch output {
  min-width: 104px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Privacidade */
.nx-private {
  margin-top: var(--section-space);
  padding-block: var(--section-space);
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}
.nx-private .nx-h2 {
  max-width: 12ch;
}
.nx-facts {
  margin: clamp(40px, 6vw, 72px) 0 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.nx-facts > div {
  padding-top: 20px;
  border-top: 2px solid var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nx-facts h3 {
  font-size: 24px;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.nx-facts p {
  max-width: 32ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
}

/* Preços: tabela de verdade (as colunas são comparáveis linha a linha). */
.nx-pricing {
  padding-top: var(--section-space);
}
.nx-pricing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.nx-pricing-head .nx-h2 {
  max-width: 17ch;
}
.nx-pricing-head .nx-lead {
  max-width: 36ch;
}
.nx-ledger {
  border-bottom: 1px solid var(--border);
}
.nx-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--border);
}
.nx-ledger .nx-row > * {
  padding: 24px 24px 24px 0;
}
.nx-ledger .nx-row > .is-pro {
  padding-left: 24px;
  background: color-mix(in srgb, var(--pro-tint) 45%, transparent);
}
.nx-row-head > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 32px;
}
.nx-plan {
  font-size: 16px;
  font-weight: 600;
}
.nx-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text-2);
  font-size: 16px;
}
.nx-price strong {
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 560;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.nx-row-name {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}
.nx-row ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  color: var(--text-2);
}
.nx-row li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
}
.nx-row li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 5px;
  background: var(--check-free);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat;
}
.nx-row ul.is-pro li::before {
  background: var(--pro-text);
}
.nx-row-foot > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* Dúvidas: <details> nativo, altura animada onde há ::details-content. */
.nx-faq {
  padding-top: var(--section-space);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px clamp(32px, 6vw, 96px);
}
.nx-faq-list {
  border-bottom: 1px solid var(--border);
}
.nx-faq details {
  border-top: 1px solid var(--border);
}
@supports selector(::details-content) {
  .nx-faq details {
    interpolate-size: allow-keywords;
  }
  .nx-faq details::details-content {
    block-size: 0;
    overflow-y: clip;
    transition:
      block-size 300ms var(--ease-out),
      content-visibility 300ms allow-discrete;
  }
  .nx-faq details[open]::details-content {
    block-size: auto;
  }
}
.nx-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}
.nx-faq summary::-webkit-details-marker {
  display: none;
}
.nx-faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--text-2);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M6 0h2v14H6zM0 6h14v2H0z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M6 0h2v14H6zM0 6h14v2H0z'/></svg>") center / contain no-repeat;
  transition: transform 240ms var(--ease-out);
}
.nx-faq details[open] summary::after {
  transform: rotate(45deg);
}
.nx-faq details p {
  max-width: var(--measure);
  padding-bottom: 28px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}
.nx-faq details a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Fechamento */
.nx-close {
  padding-block: var(--section-space) clamp(72px, 10vw, 120px);
}
.nx-close .nx-display {
  max-width: 11ch;
}
.nx-close-row {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.nx-pick {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 16px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 160ms var(--ease-out);
}
.nx-pick:active {
  transform: scale(0.98);
}
.nx-pick img {
  grid-row: span 2;
}
.nx-pick-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nx-pick-desc {
  grid-column: 2;
  font-size: 14px;
  color: var(--text-2);
}
.nx-pick-cta {
  grid-column: 3;
  grid-row: 1 / span 2;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ink-contrast);
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .nx-pick:hover {
    border-color: var(--border-2);
    background: var(--bg-2);
  }
}
.nx-pick.is-unavailable {
  cursor: default;
}
.nx-pick.is-unavailable .nx-pick-cta {
  background: var(--well);
  color: var(--text-3);
}

/* Telas menores */
@media (max-width: 1000px) {
  .nx-hide-md {
    display: none;
  }
  .nx-shorts {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .nx-faq {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .nx-hero-sub,
  .nx-lead {
    font-size: 16px;
  }
  .nx-hide-sm {
    display: none;
  }
  .nx-compare {
    height: 520px;
    border-radius: 20px;
  }
  .nx-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nx-shorts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .nx-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
  .nx-feed-clean .nx-v-t {
    font-size: 14px;
  }
  .nx-feed-clean .nx-v-c {
    font-size: 12px;
  }
  .nx-v-meta,
  .nx-feed-clean .nx-v-meta {
    grid-template-columns: minmax(0, 1fr);
  }
  .nx-av {
    display: none;
  }
  .nx-facts,
  .nx-close-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .nx-controls {
    grid-template-columns: minmax(0, 1fr);
  }
  .nx-pitch output {
    flex: 1;
  }
  .nx-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .nx-row > :first-child {
    grid-column: 1 / -1;
    padding-bottom: 0;
  }
  .nx-row-head > :first-child,
  .nx-row-foot > :first-child {
    display: none;
  }
  .nx-ledger .nx-row > * {
    padding-right: 12px;
  }
  .nx-ledger .nx-row > .is-pro {
    padding-left: 12px;
  }
  .nx-row ul {
    font-size: 14px;
  }
  .nx-pick {
    padding: 20px;
  }
}

/* ===== Páginas de produto (/feed, /loop) ===== */
.nx-hero .nx-product {
  margin-bottom: 24px;
}
/* Nas páginas de produto o título é uma frase mais longa: menor e mais largo,
   para caber em duas linhas e deixar a demo aparecer. */
.nx-hero .nx-product + .nx-display {
  max-width: 16ch;
  font-size: clamp(48px, 7.6vw, 112px);
}
.nx-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* Demo do Feed: painel de controles + grade de cards. */
.nx-demo {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
}
.nx-demo-side {
  padding: 28px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.nx-demo-main {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 560px;
  background: var(--bg);
}
.nx-toggles {
  display: grid;
  gap: 2px;
}
.nx-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.nx-switch {
  position: relative;
  flex: none;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--toggle-off);
  transition: background-color 200ms ease;
}
.nx-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--toggle-off-contrast);
  transition: transform 220ms var(--ease-out);
}
.nx-toggle[aria-pressed="true"] .nx-switch {
  background: var(--toggle-on);
}
.nx-toggle[aria-pressed="true"] .nx-switch::after {
  transform: translateX(16px);
  background: var(--toggle-on-contrast);
}
.nx-toggle:active .nx-switch::after {
  width: 19px;
}
.nx-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
  align-content: start;
}
/* Saindo: fora do fluxo para os outros já ocuparem o lugar (FLIP no feed.js). */
.nx-v.is-leaving {
  position: absolute;
  pointer-events: none;
}
.nx-th-short {
  display: grid;
  place-items: center;
}
.nx-th-short .nx-art {
  position: static;
  width: auto;
  height: 100%;
  aspect-ratio: 9 / 14;
}
/* Os rótulos vêm em caixa alta nas traduções; na tela, só a inicial. */
.nx-tag,
.nx-badges span {
  text-transform: lowercase;
}
.nx-tag::first-letter,
.nx-badges span::first-letter {
  text-transform: uppercase;
}
/* Passos: é uma sequência de verdade, então leva número. */
.nx-steps-wrap {
  padding-top: clamp(96px, 14vw, 176px);
}
.nx-steps {
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  counter-reset: step;
}
.nx-steps li {
  counter-increment: step;
  padding-top: 20px;
  border-top: 2px solid var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nx-steps li::before {
  content: counter(step);
  margin-bottom: 12px;
  font-size: 36px;
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.nx-steps h3 {
  font-size: 20px;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.nx-steps p {
  max-width: 34ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
}

.nx-guides {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--text-3);
}
.nx-guides .nx-link {
  font-size: 14px;
}

.nx-close-note {
  margin-top: 20px;
  font-size: 18px;
  color: var(--text-2);
}
.nx-close .nx-hero-ctas {
  margin-top: clamp(32px, 4vw, 48px);
}

/* Demo do Loop */
.nx-uses {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.nx-uses .nx-seg {
  flex: none;
}
.nx-uses .nx-seg button {
  flex: none;
  padding: 0 16px;
  overflow: visible;
}
.nx-uses p {
  flex: 1;
  min-width: 260px;
  font-size: 16px;
  color: var(--text-2);
}
.nx-demo-loop {
  margin-top: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
}
.nx-demo-loop .nx-demo-main {
  min-height: 0;
  gap: 24px;
}
.nx-demo-loop .nx-demo-side {
  border-right: 0;
  border-left: 1px solid var(--border);
  order: 2;
}
.nx-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--well);
}
.nx-video .nx-art {
  transition: transform 450ms var(--ease-in-out);
}
.nx-video.is-mirrored .nx-art {
  transform: scaleX(-1);
}
.nx-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
}
.nx-badges span {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.nx-wave-wrap {
  position: relative;
}
.nx-demo-loop .nx-wave {
  z-index: 1;
  height: 96px;
}
.nx-sec-band {
  position: absolute;
  top: -8px;
  bottom: -8px;
  border-radius: 8px;
  background: var(--loop-band);
  opacity: 0.18;
  pointer-events: none;
}
.nx-sec-hit {
  position: absolute;
  top: -8px;
  bottom: -8px;
  z-index: 2;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.nx-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}
.nx-readout span:first-child {
  color: var(--loop-strong);
  font-weight: 600;
}
.nx-rows {
  display: grid;
  gap: 6px;
}
.nx-rows button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 160ms var(--ease-out);
}
.nx-rows button:active {
  transform: scale(0.97);
}
.nx-rows button span + span {
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.nx-rows button[aria-pressed="true"] {
  border-color: var(--loop-strong);
  background: color-mix(in srgb, var(--loop-strong) 10%, transparent);
}
.nx-control-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.nx-control-head span + span {
  font-size: 12px;
  color: var(--text-3);
}
.nx-demo-loop .nx-pitch output {
  flex: 1;
  min-width: 0;
}

/* Tecla N: o jeito real de marcar trecho no Loop. Profundidade com borda
   inferior mais grossa (sem sombra); apertar encurta a borda e desce 2px. */
.nx-mark {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nx-key {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border-2);
  border-bottom-width: 4px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 100ms var(--ease-out),
    color 150ms ease,
    border-color 150ms ease;
}
.nx-key:active,
.nx-key.is-down {
  transform: translateY(2px);
  border-bottom-width: 2px;
}
.nx-key.is-armed {
  border-color: var(--loop-strong);
  color: var(--loop-strong);
}
.nx-mark p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
}
.nx-key.is-armed + p {
  color: var(--loop-strong);
}

/* Feito para praticar: uma linha por uso, palavra grande à esquerda. A do uso
   aberto na demo fica laranja. */
.nx-made {
  padding-top: clamp(96px, 14vw, 176px);
}
.nx-made-list {
  margin-top: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--border);
}
.nx-made-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px clamp(32px, 6vw, 96px);
  align-items: start;
  padding-block: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--border);
}
.nx-made-name {
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.95;
  font-weight: 560;
  letter-spacing: -0.055em;
  transition: color 300ms ease;
}
.nx-made-row.is-current .nx-made-name {
  color: var(--loop-strong);
}
.nx-made-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: 8px;
}
.nx-made-body > p {
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
.nx-made-tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nx-made-tags li {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
}
@media (max-width: 1000px) {
  .nx-demo,
  .nx-demo-loop {
    grid-template-columns: minmax(0, 1fr);
  }
  .nx-demo-side {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .nx-demo-loop .nx-demo-side {
    order: 0;
    border-left: 0;
    border-bottom: 0;
    border-top: 1px solid var(--border);
  }
  .nx-demo-main {
    min-height: 0;
  }
  .nx-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .nx-steps {
    gap: 32px;
  }
}
@media (max-width: 760px) {
  .nx-made-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .nx-demo-side,
  .nx-demo-main {
    padding: 20px;
  }
  .nx-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .nx-v.is-extra {
    display: none;
  }
}
/* ===== /feed ===== */
.nx-hero {
  position: relative;
}
.nx-cards .nx-v-meta {
  grid-template-columns: 24px minmax(0, 1fr) auto;
}
.nx-dots {
  width: 28px;
  height: 28px;
  margin-top: -4px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition:
    background-color 150ms ease,
    transform 160ms var(--ease-out);
}
.nx-dots svg {
  width: 18px;
  height: 18px;
}
.nx-dots:hover,
.nx-dots[aria-expanded="true"] {
  background: var(--well);
  color: var(--text);
}
.nx-dots:active {
  transform: scale(0.9);
}
.nx-v.is-dim {
  opacity: 0.35;
}
.nx-v {
  transition: opacity 300ms var(--ease-out);
}

/* /feed: topo com o popup de verdade (captura), sem demo. */
.nx-fhero {
  padding-top: clamp(56px, 8vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px clamp(32px, 6vw, 96px);
  align-items: center;
}
.nx-fhero-copy {
  display: grid;
  gap: 28px;
  justify-items: start;
}
.nx-fhero .nx-display {
  font-size: clamp(48px, 7.4vw, 112px);
}
/* Objeto solto sobre a página: sombra permitida (DESIGN.md › Surfaces). Sem
   rotação: girar uma captura cheia de linhas de 1px deixa tudo serrilhado. */
.nx-fhero-shot {
  justify-self: center;
  width: min(100%, 340px);
  height: auto;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
}

/* /feed: história fixa. Os capítulos rolam; o feed fica preso ao lado. */
.nx-story {
  margin-top: var(--section-space);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 0 clamp(32px, 5vw, 80px);
}
.nx-story-chapters {
  padding-bottom: 30vh;
}
.nx-story-ch {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  opacity: 0.28;
  transition: opacity 300ms ease;
}
.nx-story-ch.is-active {
  opacity: 1;
}
.nx-story-n {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}
.nx-story-ch h2 {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 560;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.nx-story-ch h2 + p {
  max-width: 36ch;
  color: var(--text-2);
  text-wrap: pretty;
}
.nx-story-sticky {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
}
/* A cena cabe na janela: o feed de 3 colunas é mais alto que ela, então a
   última fileira some num esmaecimento, como um feed que continua, e sobe
   para a vista quando vídeos saem. */
.nx-story-stage {
  position: relative;
  max-height: calc(100svh - var(--header-h) - 104px);
  padding: clamp(16px, 2vw, 28px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  overflow: clip;
}
.nx-story-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 96px;
  background: linear-gradient(transparent, var(--surface));
  pointer-events: none;
}
.nx-story-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}
.nx-story-count {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}
.nx-story-grid {
  gap: 24px 16px;
}
.nx-story-grid .nx-v-t {
  font-size: 14px;
}
.nx-story-grid .nx-v {
  transition: opacity 600ms ease;
}
/* Marca de "o filtro pegou este": véu vermelho sobre a miniatura, que sai
   junto com o vídeo. Por opacidade (fica no compositor). */
.nx-story-grid .nx-th::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--cta) 62%, transparent);
  opacity: 0;
  transition: opacity 260ms var(--ease-out);
}
.nx-story-grid .nx-v.is-marked .nx-th::after {
  opacity: 1;
}
.nx-story-grid .nx-dots {
  pointer-events: none;
}
/* Com o menu aberto, o resto do feed recua e o vídeo do canal fica em foco. */
.nx-story-stage.is-menu .nx-v:not([data-target]) {
  opacity: 0.3;
}
.nx-story-menu {
  position: absolute;
  z-index: 2;
  min-width: 240px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.55);
  font-size: 14px;
  transform-origin: top right;
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 220ms var(--ease-out),
    transform 220ms var(--ease-out);
}
.nx-story-menu.is-open {
  opacity: 1;
  transform: none;
}
.nx-story-menu li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 16px;
  white-space: nowrap;
  transition: background-color 200ms ease;
}
.nx-story-menu li:not(.is-ours) + .is-ours {
  margin-top: 6px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}
.nx-story-menu li.is-hot {
  background: color-mix(in srgb, var(--text) 12%, transparent);
}
.nx-story-menu svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.nx-story-progress {
  margin-top: 16px;
  display: flex;
  gap: 6px;
}
.nx-story-progress i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transition: background-color 300ms ease;
}
.nx-story-progress i.is-on {
  background: var(--cta);
}
@media (max-width: 900px) {
  .nx-fhero,
  .nx-story {
    grid-template-columns: minmax(0, 1fr);
  }
  .nx-fhero-shot {
    width: min(80%, 300px);
  }
  /* No celular o feed fica no topo e os capítulos passam por baixo dele. */
  .nx-story-sticky {
    order: -1;
    top: calc(var(--header-h) + 8px);
    z-index: 1;
    padding-bottom: 8px;
    background: var(--bg);
  }
  .nx-story-ch {
    min-height: 60vh;
  }
  .nx-story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nx-story-stage::after {
    height: 32px;
  }
}
@media (max-width: 560px) {
  .nx-story-grid .nx-v-meta {
    display: none;
  }
  .nx-story-grid {
    gap: 8px;
  }
}

@media (max-width: 760px) {
  .nx-cards .nx-v-meta {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* ===== Home ===== */

/* Comparação de ponta a ponta: o conteúdo de cada lado alinha com a grade
   da página, o quadro vai até a borda da janela. */
.nx-bleed {
  margin-top: clamp(40px, 5vw, 72px);
}
.nx-bleed .nx-compare {
  margin-top: 0;
  height: clamp(560px, 80vh, 860px);
  border-inline: 0;
  border-radius: 0;
  --edge: max(var(--pad), calc((100% - var(--wrap)) / 2));
  /* A altura corta o feed no meio de uma linha; o esmaecimento faz o corte
     ler como "o feed continua", não como cartão quebrado. */
  -webkit-mask-image: linear-gradient(#000 calc(100% - 120px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 120px), transparent);
}
.nx-bleed .nx-feed {
  padding: 72px var(--edge) 40px;
}
.nx-bleed .nx-feed-clean {
  padding-inline: calc(var(--edge) + clamp(0px, 3vw, 48px));
  padding-top: 88px;
}
.nx-bleed .nx-label {
  top: 24px;
  padding: 6px 14px;
  font-size: 14px;
}
.nx-bleed .nx-label-before {
  left: var(--edge);
}
.nx-bleed .nx-label-after {
  right: var(--edge);
}
.nx-bleed .nx-handle span {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
}
/* No celular o quadro é alto: no meio, o pegador cairia abaixo da dobra. */
@media (max-width: 760px) {
  .nx-bleed .nx-handle span {
    top: min(50%, 200px);
  }
}

/* Feed: o que ele tira, em letras grandes. O traço vermelho é a peneira:
   corta cada palavra uma vez, quando a seção aparece. Sem JS, já vem cortado. */
.nx-strike {
  padding-top: var(--section-space);
}
.nx-strike-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: end;
}
.nx-strike-head .nx-h2 {
  max-width: 12ch;
}
.nx-strike-head .nx-product {
  margin-bottom: 20px;
}
.nx-strike-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.nx-xlist {
  margin: clamp(48px, 6vw, 88px) 0 0;
  padding: clamp(32px, 4vw, 56px) 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.06em 0.42em;
  border-block: 1px solid var(--border);
  font-size: clamp(40px, 6.6vw, 104px);
  line-height: 1.04;
  font-weight: 560;
  letter-spacing: -0.05em;
}
.nx-xlist li {
  color: var(--text-3);
  transition: color 420ms ease var(--d, 0ms);
}
/* Sem JS (lista não dividida em palavras): risco nativo. */
.nx-xlist:not(.is-split) li {
  text-decoration: line-through;
  text-decoration-color: var(--cta);
  text-decoration-thickness: 0.075em;
}
/* Com JS cada palavra tem o próprio traço, então item que quebra linha fica
   cortado inteiro, e o corte anda palavra por palavra. */
.nx-w {
  position: relative;
  display: inline-block;
}
.nx-w::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  top: 0.55em;
  height: 0.075em;
  border-radius: 0.04em;
  background: var(--cta);
  transform-origin: left center;
  transition: transform 420ms var(--ease-in-out) var(--d, 0ms);
}
.nx-x {
  transition: color 420ms ease;
}
.nx-xlist li.is-pending {
  color: var(--text);
}
.nx-xlist li.is-pending .nx-w::after {
  transform: scaleX(0);
}
/* Passar o mouse "desfaz" o filtro daquela palavra. */
@media (hover: hover) and (pointer: fine) {
  .nx-xlist li.is-done .nx-x:hover {
    color: var(--text);
  }
  .nx-xlist li.is-done .nx-x:hover .nx-w::after {
    transform: scaleX(0);
    transform-origin: right center;
  }
}

/* Canais e regras: um card de vídeo com o menu ⋮ aberto, mostrando onde as
   ações ficam no YouTube. O menu fica sempre aberto: é uma ilustração. */
.nx-strike-more {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px clamp(32px, 6vw, 96px);
  align-items: center;
}
.nx-ctx {
  position: relative;
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}
.nx-ctx .nx-th {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}
.nx-ctx-meta {
  position: relative;
  margin-top: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}
.nx-ctx-meta .nx-av {
  display: grid;
  width: 36px;
  height: 36px;
  font-size: 14px;
}
.nx-ctx-meta p {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.nx-ctx-meta .nx-ctx-by {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-3);
}
.nx-ctx-dots {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--well);
}
.nx-ctx-dots svg {
  width: 18px;
  height: 18px;
}
/* Menu flutuante: sombra permitida (DESIGN.md › Surfaces). Ancorado na linha
   do título, sobe a partir do ⋮ mesmo quando o título quebra linha. */
.nx-ctx-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 4px);
  min-width: 240px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.35);
  font-size: 14px;
}
/* Itens todos iguais, como num menu de verdade: as ações do Vidsieve se
   separam só pela linha. */
.nx-ctx-menu li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  line-height: 20px;
  color: var(--text);
  white-space: nowrap;
}
/* Um só conjunto (Material, preenchido), o mesmo dos ícones da extensão. */
.nx-ctx-menu svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.nx-ctx-menu li:not(.is-ours) + .is-ours {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
/* Hover de menu de verdade, sem transição (como o do YouTube). */
@media (hover: hover) and (pointer: fine) {
  .nx-ctx-menu li:hover {
    background: var(--well);
  }
}
.nx-ctx-label {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
}
.nx-ctx-copy h3 {
  font-size: 30px;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.nx-ctx-copy h3 + p {
  margin-top: 12px;
  max-width: var(--measure);
  color: var(--text-2);
  text-wrap: pretty;
}
.nx-ctx-also {
  margin: 32px 0 0;
}
.nx-ctx-rules {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--border);
}
.nx-ctx-rules li {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

/* Loop: palco escuro nos dois temas (uma sala de ensaio à noite). Os tokens
   são redefinidos aqui, então os componentes de dentro se ajustam sozinhos. */
.nx-night {
  --bg: #15110d;
  --bg-2: #1b1611;
  --surface: #1d1813;
  --well: #2a231c;
  --border: rgba(255, 240, 225, 0.1);
  --border-2: rgba(255, 240, 225, 0.2);
  --text: #f4eee6;
  --text-2: #c9bfb2;
  --text-3: #94897c;
  --ink: #f4eee6;
  --ink-contrast: #15110d;
  --loop-strong: #ee9658;
  --loop-band: rgba(238, 150, 88, 0.32);
  margin-top: var(--section-space);
  padding-block: var(--section-space);
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
}
.nx-night .nx-product {
  color: var(--loop-strong);
}
.nx-night .nx-practice {
  margin-top: clamp(48px, 6vw, 88px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.nx-night .nx-wave {
  height: clamp(160px, 18vw, 260px);
}
.nx-night .nx-bars {
  gap: 4px;
}
.nx-night .nx-controls {
  grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) auto;
  grid-template-areas: "play sec speed pitch";
}
.nx-night .nx-controls > :nth-child(1) {
  grid-area: play;
}
.nx-night .nx-controls > :nth-child(2) {
  grid-area: sec;
}
.nx-night .nx-controls > :nth-child(3) {
  grid-area: speed;
}
.nx-night .nx-controls > :nth-child(4) {
  grid-area: pitch;
}

/* Demo do Loop na home: som, alças A/B, notas acesas e indicador deslizante.
   Tudo preso a .nx-practice: /loop e /feed usam as mesmas classes de onda. */
.nx-play {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--loop-cta);
  color: var(--loop-cta-on);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.nx-play:active {
  transform: scale(0.97);
}
.nx-play:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.nx-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.nx-play-off,
.nx-play[aria-pressed="true"] .nx-play-on {
  display: none;
}
.nx-play[aria-pressed="true"] .nx-play-off {
  display: block;
}
.nx-practice .nx-bars-on i {
  opacity: 0.4;
}
.nx-bars-lit i {
  background: var(--loop-cta);
}
.nx-reps {
  margin-left: 8px;
  color: var(--text-3);
  font-weight: 400;
}
/* Alça: linha fina com um pegador no topo. A área de toque tem 44px e deixa
   a rolagem vertical com o navegador. */
.nx-ab {
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: 0;
  width: 44px;
  margin-left: -22px;
  touch-action: pan-y;
  cursor: ew-resize;
  outline: none;
}
.nx-ab::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 21px;
  width: 2px;
  border-radius: 1px;
  background: var(--loop-strong);
  opacity: 0.7;
}
.nx-ab::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 16px;
  width: 12px;
  height: 18px;
  border-radius: 4px;
  background: var(--loop-strong);
  transition: transform 160ms var(--ease-out);
}
.nx-ab:focus-visible::after {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text);
}
.is-dragging .nx-ab:focus::after {
  transform: scaleY(1.15);
}
@media (hover: hover) and (pointer: fine) {
  .nx-ab:hover::after {
    transform: scaleY(1.15);
  }
}
.nx-practice .nx-seg {
  position: relative;
  overflow: hidden;
}
.nx-seg-pill {
  position: absolute;
  top: 3px;
  left: 0;
  height: 36px;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  pointer-events: none;
}
.nx-practice.is-ready .nx-seg-pill {
  transition:
    transform 250ms var(--ease-out),
    width 250ms var(--ease-out),
    opacity 150ms ease;
}
.nx-practice .nx-seg button {
  position: relative;
}
.nx-practice .nx-seg button[aria-checked="true"] {
  background: transparent;
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  .nx-practice.is-ready .nx-seg-pill {
    transition: opacity 150ms ease;
  }
}
.nx-night-tags {
  margin-top: 32px;
}
.nx-night-tags + .nx-note {
  margin-top: 16px;
}

/* Privacidade: o zero (requisições de rede) é a imagem da seção. */
.nx-night + .nx-private {
  margin-top: 0;
  border-top: 0;
}
.nx-private-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(32px, 6vw, 96px);
  align-items: center;
}
.nx-zero {
  margin-left: -0.06em;
  font-size: clamp(220px, 34vw, 520px);
  line-height: 0.74;
  font-weight: 560;
  letter-spacing: -0.08em;
  font-variant-numeric: tabular-nums;
}
.nx-private-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.nx-private .nx-facts {
  width: 100%;
  margin: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.nx-private .nx-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 8px 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.nx-private .nx-facts h3 {
  font-size: 20px;
}

/* Fechamento: a marca em tamanho de cartaz, cortada pela borda direita. O
   tamanho sai da altura da seção: mais alta que ela, a marca era cortada em
   cima e embaixo e parecia quebrada. */
.nx-close {
  position: relative;
  overflow: hidden;
}
.nx-close > .nx-wrap {
  position: relative;
}
.nx-close-mark {
  position: absolute;
  top: 50%;
  right: 0;
  width: auto;
  height: min(calc(100% - 64px), 62vw, 860px);
  transform: translate(22%, -50%);
  pointer-events: none;
}
.nx-close .nx-display {
  max-width: 9ch;
}
.nx-close .nx-close-row {
  max-width: 560px;
  grid-template-columns: minmax(0, 1fr);
}
.nx-close .nx-pick {
  background: var(--bg);
}

@media (max-width: 1000px) {
  .nx-strike-head,
  .nx-private-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .nx-night .nx-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "play play" "sec sec" "speed pitch";
  }
  .nx-night .nx-controls > :nth-child(1) {
    align-items: flex-start;
  }
  .nx-close-mark {
    height: min(calc(100% - 64px), 90vw);
    transform: translate(33%, -50%);
    opacity: 0.14;
  }
}
@media (max-width: 760px) {
  .nx-close-mark {
    display: none;
  }
  .nx-bleed .nx-compare {
    height: 560px;
  }
  .nx-bleed .nx-feed,
  .nx-bleed .nx-feed-clean {
    padding: 64px 20px 24px;
  }
  .nx-bleed .nx-label {
    font-size: 12px;
  }
  /* Só as ações do Vidsieve: com os itens do YouTube o menu cobre o vídeo. */
  .nx-ctx-menu {
    min-width: 0;
  }
  .nx-ctx-menu li:not(.is-ours) {
    display: none;
  }
  .nx-ctx-menu li:not(.is-ours) + .is-ours {
    margin-top: 0;
    padding-top: 8px;
    border-top: 0;
  }
  .nx-strike-more,
  .nx-private .nx-facts > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .nx-night .nx-controls {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "play" "sec" "speed" "pitch";
  }
  .nx-zero {
    font-size: 200px;
  }
  .nx-close .nx-pick {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .nx-close .nx-pick-cta {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: start;
    margin-top: 16px;
  }
}
