/*
 * Home (index.html) — nova landing (#184), portada de docs/artifacts/2026-09-27-nova-lp.dc.html.
 * O layout de cada bloco vive nos atributos style do mockup (a CSP permite 'unsafe-inline' em
 * style-src); aqui ficam os tokens que o styles.css não tem, os componentes do design system
 * (Button, Badge, Pill), os estados interativos e o que no mockup dependia de JS (largura).
 */

:root {
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --color-text-muted: #a1a1aa;
  --color-surface-2: #efefef;
  --color-surface-3: #e5e5e5;
  --color-border-strong: #d4d4d8;
  --color-info: #2563eb;
  --color-error: #d92d20;
  --color-warning: #f59e0b;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

::selection {
  background: #0a0a0a;
  color: #fff;
}

main a,
.home-header a {
  color: var(--color-text);
  text-decoration: none;
}

main a:hover,
.home-header a:hover {
  color: var(--color-info);
}

/* ---- Button (DS) ---------------------------------------------------------------------- */
.nl-btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.nl-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

a.nl-btn--primary,
.nl-btn--primary {
  background: var(--color-text);
  color: #fff;
}

a.nl-btn--primary:hover,
.nl-btn--primary:not(:disabled):hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

a.nl-btn--secondary,
.nl-btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
}

a.nl-btn--secondary:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

a.nl-btn--ghost,
.nl-btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

a.nl-btn--ghost:hover,
.nl-btn--ghost:not(:disabled):hover {
  background: var(--color-surface);
  color: var(--color-text);
}

.nl-btn--sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 10px;
}

.nl-btn--lg {
  height: 52px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: 24px;
}

.nl-btn--block {
  width: 100%;
}

.nl-btn__icon {
  width: 16px;
  height: 16px;
}

/* No card escuro (Plus), o secundário vira claro sobre escuro. */
article[style*="background:var(--color-text)"] .nl-btn--secondary {
  background: #fff;
}

/* ---- Badge e Pill (DS) ---------------------------------------------------------------- */
.nl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.nl-badge--success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border-color: rgba(16, 185, 129, 0.2);
}

.nl-badge--warning {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.2);
}

.nl-badge--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.nl-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
}

.nl-pill--open {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--color-success);
}

.nl-pill--closed {
  background: rgba(217, 45, 32, 0.08);
  border-color: rgba(217, 45, 32, 0.25);
  color: var(--color-error);
}

.nl-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 6px;
}

/* ---- Header --------------------------------------------------------------------------- */
.home-nav {
  display: flex;
}

.home-nav a {
  color: var(--color-text-subtle);
}

/* ---- Hero: demo de resposta ----------------------------------------------------------- */
.nps-demo {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 360px;
}

.nps-demo__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--color-text-subtle);
}

.nps-demo__brand {
  font-weight: 600;
  color: var(--color-text);
}

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

.nps-demo__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nps-demo__body[hidden] {
  display: none;
}

.nps-demo__body--done {
  justify-content: center;
}

.nps-demo__q {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.35;
  margin: 0;
}

.nps-demo__note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-subtle);
  margin: 0;
}

.nps-demo__scale {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 4px;
}

.nps-demo__scale button {
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
}

.nps-demo__scale button:hover {
  background: var(--color-surface);
}

.nps-demo__scale button[aria-checked="true"] {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
}

.nps-demo__legend {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-subtle);
}

.nps-demo__text {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  resize: vertical;
}

.nps-demo__text:focus {
  outline: 2px solid var(--color-text);
  outline-offset: 1px;
}

.nps-demo__foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nps-demo__foot [hidden] {
  display: none;
}

@media (max-width: 420px) {
  .nps-demo__scale {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* ---- Fluxos --------------------------------------------------------------------------- */
[data-fx] {
  opacity: 0.38;
}

[data-fx].is-active {
  opacity: 1;
}

[data-flow-panel] {
  display: none;
}

[data-flow-panel].is-active {
  display: block;
}

.flow-chip {
  flex: 0 0 auto;
  border-radius: 9999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
}

.flow-chip.is-active {
  border-color: #0a0a0a;
  background: #0a0a0a;
  color: #fff;
}

.flow-chips {
  scrollbar-width: none;
}

.flow-chips::-webkit-scrollbar {
  display: none;
}

.flow-dot {
  height: 6px;
  width: 6px;
  border-radius: 9999px;
  background: var(--color-border-strong);
  transition: all 0.2s;
}

.flow-dot.is-active {
  width: 20px;
  background: #0a0a0a;
}

.flow-qr {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fff;
  image-rendering: pixelated;
}

.only-narrow {
  display: none;
}

@media (min-width: 960px) {
  .home-stage {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 959px) {
  .home-nav {
    display: none;
  }

  .only-narrow {
    display: block;
  }

  .only-wide {
    display: none;
  }
}

/* ---- Preços --------------------------------------------------------------------------- */
.cycle-btn {
  border: none;
  border-radius: 9px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  background: transparent;
  color: var(--color-text-subtle);
}

.cycle-btn.is-active {
  font-weight: 600;
  background: #0a0a0a;
  color: #fff;
}

[data-annual-only][hidden] {
  display: none;
}

/* ---- FAQ ------------------------------------------------------------------------------ */
.home-faq__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--color-text-subtle);
  transition: transform 0.2s;
}

.home-faq__q[aria-expanded="true"] .home-faq__icon {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nl-btn,
  .flow-dot,
  .home-faq__icon,
  [data-fx] {
    transition: none;
  }
}
