/* Nexora: só o que o kit não traz. Mobile-first: a base é o celular, os @media só acrescentam. */
:root { --nx-navy: #0a1020; --nx-blue: #2456e6; --nx-cyan: #22d3ee; --nx-wa: #128c4b; }
html { color-scheme: light; -webkit-tap-highlight-color: color-mix(in srgb, var(--nx-blue) 20%, transparent); }
a, button, summary, label { touch-action: manipulation; }
/* o foco por teclado nunca fica sob o header fixo nem sob o botão do WhatsApp */
:is(input, textarea, summary, .nx-form .btn) { scroll-margin-top: calc(var(--nav) + 16px); scroll-margin-bottom: 96px; }
.nav.is-open .nav__links { overscroll-behavior: contain; }
p { text-wrap: pretty; }
.nx-num, .nx-stats dd { font-variant-numeric: tabular-nums; }
.nx-logo { width: 32px; height: 32px; margin-right: 10px; border-radius: 50%; flex: none; }
.nav__logo { display: inline-flex; align-items: center; }
.hero .dot { background: var(--nx-cyan); }
h1, h2 { text-wrap: balance; }

/* divisão em duas colunas: empilhada no celular */
.nx-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.nx-split > .section-head { margin-bottom: 0; }

/* hero: janela do produto */
.nx-stage { container: nx-stage / size; position: relative; overflow: hidden; display: flex; background: var(--nx-navy); border: 2px solid var(--nx-navy); border-radius: var(--r-lg); }
.nx-win { flex: 1; min-width: 0; display: flex; flex-direction: column; color: #e8edf8; }
.nx-win__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgb(255 255 255 / .1); font: 400 13px/1 var(--font-mono); color: #aab3c7; }
.nx-win__bar i { width: 9px; height: 9px; border-radius: 50%; background: #34405a; }
.nx-win__bar i:first-child { background: var(--nx-cyan); }
.nx-win__bar span { margin-left: 10px; }
.nx-code { display: none; margin: 0; padding: 18px 20px; overflow: hidden; font: 400 14px/1.65 var(--font-mono); white-space: pre; }
.nx-code b { font-weight: 400; color: #8fafff; }
.nx-code em { font-style: normal; color: var(--nx-cyan); }
.nx-code u { text-decoration: none; color: #8fafff; }
.nx-code s { text-decoration: none; color: #fff; }
.nx-preview { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: var(--s-3) var(--s-4); overflow: hidden; background: #f5f7fb; color: var(--nx-navy); }
.nx-preview__nav { display: flex; gap: 14px; font-size: 13px; color: #4a5670; }
.nx-preview__brand { margin-right: auto; font-weight: 500; color: var(--nx-navy); }
.nx-preview__cart { color: var(--nx-blue); font-weight: 500; }
.nx-preview__title { margin: var(--s-3) 0; font: 300 20px/1.1 var(--font-display); letter-spacing: -.02em; }
.nx-products { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.nx-products div { display: grid; grid-template-rows: minmax(36px, 1fr) auto; gap: 6px; min-width: 0; min-height: 0; font-size: 13px; }
.nx-products span { display: none; }
.nx-products i { display: block; min-height: 0; border-radius: 5px; background: #dbe5fb; }
.nx-products div:nth-child(2) i { background: #c9f3fa; }
.nx-products div:nth-child(3) i { background: var(--nx-navy); }
.nx-products b { padding: 5px 0; border-radius: 99px; background: var(--nx-blue); color: #fff; font: 500 13px/1.2 var(--font-text); text-align: center; }
.nx-float { display: none; background: var(--nx-navy); border-color: var(--nx-navy); color: #fff; }
.nx-float :is(.ly-float__row, .ly-float__title, .ly-live, span) { color: #fff; }
.nx-float .ly-live::before { background: var(--nx-cyan); }

/* serviços */
.nx-map { --wire: 20px; display: flex; flex-direction: column; align-items: center; padding: var(--s-5); background: var(--p-surface); border-radius: var(--r-lg); }
.nx-node { display: grid; place-items: center; min-height: 44px; padding: 0 var(--s-5); background: #fff; border: 1px solid #c4cfe3; border-radius: var(--r-sm); font-weight: 500; }
.nx-node--main { width: min(100%, 240px); min-height: 60px; border-color: var(--nx-navy); background: var(--nx-navy); color: #fff; font: 400 24px/1 var(--font-display); }
.nx-wire { display: block; height: var(--wire); border-left: 2px dashed var(--nx-blue); }
.nx-outs { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); width: 100%; padding-top: var(--wire); }
.nx-outs::before { content: ""; position: absolute; top: 0; left: calc(100% / 6); right: calc(100% / 6); border-top: 2px dashed var(--nx-blue); }
.nx-outs .nx-node { position: relative; padding: 0 var(--s-1); }
.nx-outs .nx-node::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: var(--wire); border-left: 2px dashed var(--nx-blue); }
.nx-list { margin: 0; padding: 0; list-style: none; }
.nx-list li > div { min-width: 0; }
.nx-float .ly-live::before { animation-iteration-count: 2; }
.nx-list li { display: flex; gap: var(--s-4); padding: 14px 0; border-bottom: 1px solid var(--line); }
.nx-list li:first-child { padding-top: 0; }
.nx-list h3 { margin: 0 0 2px; font: 500 var(--t-lead)/1.3 var(--font-text); letter-spacing: -.01em; }
.nx-list p { margin: 0; color: var(--muted); }
.nx-ic { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--nx-blue); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.nx-list .nx-ic { margin-top: 2px; }

/* diferenciais e etapas */
.nx-diffs { display: grid; gap: var(--s-3); margin: 0 0 var(--s-6); padding: 0; list-style: none; font-weight: 500; }
.nx-diffs li { display: flex; align-items: center; gap: var(--s-3); }
.nx-diffs .nx-ic { stroke: var(--nx-cyan); }
.nx-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.nx-steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid rgb(255 255 255 / .22); }
.nx-step { grid-row: span 2; font: 300 40px/.95 var(--font-display); letter-spacing: -.04em; color: var(--nx-cyan); font-variant-numeric: tabular-nums; }
.nx-steps h3 { margin: 0 0 var(--s-1); font: 500 var(--t-lead)/1.3 var(--font-text); }
.nx-steps p { margin: 0; color: var(--p-inv-muted); }
.nx-marquee .mo-mq__track { color: var(--p-inv-muted); }

/* prova social */
.nx-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin: 0 0 var(--s-6); }
.nx-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-top: var(--s-3); border-top: 2px solid var(--nx-navy); }
.nx-stats dd { margin: 0 0 var(--s-1); font: 300 26px/1.1 var(--font-display); letter-spacing: -.02em; color: var(--nx-blue); }
.nx-stats dt { display: flex; align-items: center; gap: var(--s-2); color: var(--muted); }
.nx-quotes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
.nx-quotes figure { display: flex; flex-direction: column; gap: var(--s-3); margin: 0; padding: var(--s-5); background: var(--p-surface); border-radius: var(--r-lg); }
.nx-quotes figure:last-child { background: var(--nx-navy); color: #f5f7fb; }
.nx-quotes figure:last-child .nx-ic { stroke: var(--nx-cyan); }
.nx-ic--quote { width: 28px; height: 28px; }
.closing .close__word { overflow: visible; font-size: clamp(64px, 12vw, 176px); line-height: 1.05; }

/* conversa de exemplo ao lado do FAQ */
.nx-faq-side .section-head { margin-bottom: var(--s-5); }
.nx-chat { display: grid; gap: var(--s-2); padding: var(--s-4); background: var(--p-surface); border-radius: var(--r-lg); }
.nx-bubble { max-width: 86%; margin: 0; padding: var(--s-2) var(--s-3); background: #fff; border-radius: 12px 12px 12px 4px; }
.nx-bubble--me { justify-self: end; background: var(--nx-navy); color: #fff; border-radius: 12px 12px 4px 12px; }
.nx-quotes blockquote { margin: 0; font: 300 var(--t-h3)/1.25 var(--font-display); letter-spacing: -.015em; }
.nx-quotes figcaption { font-size: var(--t-small); }

/* FAQ em acordeão */
.nx-faq details { border-bottom: 1px solid var(--line); }
.nx-faq summary { position: relative; display: block; min-height: 44px; padding: 16px 40px 16px 0; font: 500 var(--t-lead)/1.35 var(--font-text); cursor: pointer; list-style: none; touch-action: manipulation; }
.nx-faq summary::-webkit-details-marker { display: none; }
.nx-faq summary::before, .nx-faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; background: var(--nx-blue); transition: transform .2s ease; }
.nx-faq summary::after { transform: rotate(90deg); }
.nx-faq details[open] summary::after { transform: rotate(0); }
.nx-faq summary:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 4px; }
.nx-faq p { margin: 0; padding: 0 40px 18px 0; color: var(--ink); }

/* contato */
.nx-contact { background: var(--p-surface); }
.nx-direct { display: grid; gap: var(--s-1); margin: 0; padding: 0; list-style: none; font-size: var(--t-lead); overflow-wrap: anywhere; }
.nx-direct li { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.nx-direct a { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; }
.nx-form { grid-template-columns: minmax(0, 1fr); padding: var(--s-5); background: #fff; border-radius: var(--r-lg); box-shadow: rgb(0 55 112 / .08) 0 8px 24px, rgb(0 55 112 / .04) 0 2px 6px; }
.nx-form > .field { grid-column: 1 / -1; }
.nx-form textarea { min-height: 104px; }
.nx-form ::placeholder { color: #5b667e; opacity: 1; }
.nx-form .btn { width: 100%; }
.nx-form .btn[aria-busy="true"] { opacity: .8; cursor: progress; }
.nx-form .btn[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; margin-left: var(--s-2); border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 50%; animation: nx-spin .8s linear infinite; }
@keyframes nx-spin { to { transform: rotate(360deg); } }
.nx-form[data-state="sending"] .form__status { color: var(--muted); }
.nx-form[data-state="success"] .form__status { padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: #e3f7ec; color: #0b5d33; font-weight: 500; }
.nx-form[data-state="error"] .form__status { padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: #fdeceb; color: #9b1c13; font-weight: 500; }
.nx-lgpd { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }

/* WhatsApp flutuante */
.nx-wa { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 9; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--nx-wa); color: #fff; box-shadow: rgb(10 16 32 / .28) 0 6px 18px; transition: transform .18s ease, background-color .18s ease; touch-action: manipulation; }
.nx-wa svg { width: 28px; height: 28px; }
.nx-wa:focus-visible { outline: 3px solid var(--nx-cyan); outline-offset: 3px; }
.nx-wa:active { transform: scale(.96); }

/* entrada sutil ao rolar: só deslocamento, o conteúdo nunca fica invisível */
.js-reveal [data-reveal] { transform: translateY(14px); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.js-reveal [data-reveal].is-in { transform: none; }

@media (hover: hover) {
  .nx-list li:hover .nx-ic { transform: translateY(-2px); }
  .nx-faq summary:hover { color: var(--nx-blue); }
  .nx-wa:hover { transform: translateY(-2px); background: #0e7a40; }
}

/* tablet */
@media (min-width: 640px) {
  .nx-code { display: block; }
  .nx-products span { display: block; }
  .nx-products div { grid-template-rows: minmax(36px, 1fr) auto auto; }
  .nx-preview { padding: var(--s-4) var(--s-5); }
  .nx-preview__title { margin: var(--s-4) 0 var(--s-3); font-size: 24px; }
  .nx-diffs { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .nx-split:not(.nx-split--text) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; }
  .nx-map { --wire: 44px; justify-content: center; }
  .nx-faq-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
  .nx-faq-side .section-head { margin-bottom: 0; }
  .nx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); margin-bottom: var(--s-5); }
  .nx-steps li { display: block; padding-top: var(--s-4); }
  .nx-step { display: block; margin-bottom: var(--s-3); font-size: 56px; }
  .nx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-bottom: var(--s-7); }
  .nx-stats dd { font-size: 32px; }
  .nx-quotes figure { padding: var(--s-7); }
  .closing .close__word { font-size: 26vw; }
  .nx-form { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--s-6); }
  .nx-form > .field:not(.field--full) { grid-column: auto; }
  .nx-wa { width: 56px; height: 56px; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); }
}

/* desktop */
@media (min-width: 1024px) {
  .closing .close__word { font-size: clamp(64px, 12vw, 176px); }
  .nx-faq-side { display: block; }
  .nx-faq-side .section-head { margin-bottom: var(--s-5); }
  .nx-split, .nx-split:not(.nx-split--text) { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); }
  .nx-split > :first-child { grid-column: 1 / span 5; }
  .nx-split > :last-child { grid-column: 7 / -1; }
  .nx-map { min-height: 440px; }
  .nx-preview { padding-bottom: 136px; }
  .nx-float { display: block; }
  .hero--split h1 { font-size: clamp(44px, 3.9vw, 56px); line-height: 1.03; }
  .nx-diffs { margin-bottom: var(--s-7); }
  .nx-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: var(--s-7); }
  .nx-step { margin-bottom: var(--s-6); font-size: clamp(72px, 7vw, 104px); }
  .nx-stats dd { font-size: 48px; }
  .nx-faq summary { padding-block: 21px; }
  .nx-quotes { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); }
  .nx-quotes figure { grid-column: 1 / span 7; gap: var(--s-4); }
  .nx-quotes figure:last-child { grid-column: 8 / -1; }
}

/* janela baixa: mostra só a prévia da loja, sem cortar o conteúdo */
@container nx-stage (max-height: 400px) {
  .nx-code { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { transform: none; transition: none; }
  .nx-form .btn[aria-busy="true"]::after { animation-duration: 2.4s; }
  .nx-ic, .nx-wa, .nx-faq summary::before, .nx-faq summary::after { transition: none; }
}
