/* ==========================================================
   NovaFlow v2 — reposicionamento (diagnóstico e sob medida)
   e novas ferramentas gratuitas. Carregar depois de styles.css.
   ========================================================== */

:root {
  --nf-navy: #10172b;
  --nf-blue: #2d63ed;
  --nf-violet: #6937ec;
  --nf-ok: #12a463;
  --nf-ok-bg: #e9f9f1;
  --nf-warn: #b7791f;
  --nf-warn-bg: #fff6e5;
  --nf-bad: #d83a3a;
  --nf-bad-bg: #fdeeee;
  --nf-card: #ffffff;
  --nf-line: #e6eaf2;
}

/* ---------- Hero: visual de fluxo ---------- */

.nf-flow {
  position: relative;
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin-left: auto;
  width: 100%;
}

.nf-flow-glow {
  position: absolute;
  inset: 8% 0 0 10%;
  background: radial-gradient(circle at 60% 50%, rgba(105, 55, 236, 0.22), transparent 60%);
  filter: blur(30px);
  z-index: 0;
}

.nf-flow-card {
  position: relative;
  z-index: 1;
  background: var(--nf-card);
  border: 1px solid var(--nf-line);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 22px 50px rgba(37, 56, 105, 0.12);
}

.nf-flow-before {
  width: 84%;
  background: #fbfcff;
}

.nf-flow-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f1f3f8;
  color: #5b6680;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nf-flow-card h3 {
  margin: 10px 0 10px;
  font-size: 18px;
}

.nf-flow-before ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: #5b6680;
  font-size: 15px;
}

.nf-flow-before li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nf-flow-before li i {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef1f7;
  font-style: normal;
  font-size: 13px;
  color: #6b7590;
  flex-shrink: 0;
}

.nf-flow-arrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 30px;
}

.nf-flow-arrow span {
  width: 2px;
  height: 34px;
  background: linear-gradient(var(--nf-blue), var(--nf-violet));
  border-radius: 2px;
  position: relative;
}

.nf-flow-arrow span::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: -4px;
  border: 5px solid transparent;
  border-top: 7px solid var(--nf-violet);
}

.nf-flow-arrow small {
  font-weight: 700;
  font-size: 13px;
  color: var(--nf-violet);
  background: #f3efff;
  border: 1px solid #e2d8ff;
  padding: 5px 12px;
  border-radius: 999px;
}

.nf-flow-after {
  margin-left: auto;
  width: 94%;
  border-color: #dcd3ff;
}

.nf-flow-after-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.nf-flow-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--nf-violet), var(--nf-blue));
  flex-shrink: 0;
}

.nf-flow-after-head strong {
  display: block;
  font-size: 16px;
}

.nf-flow-after-head small {
  color: #7a849c;
  font-size: 12px;
}

.nf-flow-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--nf-ok);
  background: var(--nf-ok-bg);
  padding: 4px 10px;
  border-radius: 999px;
}

.nf-flow-live span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nf-ok);
  animation: nfBlink 1.6s infinite;
}

.nf-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.nf-flow-steps li {
  display: grid;
  grid-template-columns: 28px 1fr 22px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f9ff;
  border: 1px solid #edf0f8;
  font-size: 14.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  animation: nfStepIn 0.5s ease forwards;
}

.nf-flow-steps li:nth-child(1) { animation-delay: 0.3s; }
.nf-flow-steps li:nth-child(2) { animation-delay: 0.9s; }
.nf-flow-steps li:nth-child(3) { animation-delay: 1.5s; }
.nf-flow-steps li:nth-child(4) { animation-delay: 2.1s; }

.nf-flow-steps b {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #e8eeff;
  color: var(--nf-blue);
  font-size: 13px;
}

.nf-flow-steps em {
  font-style: normal;
  color: var(--nf-ok);
  font-weight: 800;
  text-align: center;
}

.nf-flow-steps em.nf-pulse {
  color: var(--nf-violet);
  font-size: 22px;
  line-height: 1;
  animation: nfBlink 1.2s infinite;
}

@keyframes nfStepIn {
  to { opacity: 1; transform: none; }
}

@keyframes nfBlink {
  50% { opacity: 0.25; }
}

/* ---------- Ferramentas gratuitas (home) ---------- */

.nf-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.nf-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: #fff;
  border: 1px solid var(--nf-line);
  border-radius: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nf-tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.nf-tool-featured {
  border: 1.5px solid #cbbcff;
  box-shadow: 0 18px 40px rgba(105, 55, 236, 0.12);
}

.nf-tool-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nf-violet), var(--nf-blue));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.nf-tool-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--nf-violet);
  background: #f3efff;
}

.nf-tool-icon svg {
  width: 26px;
  height: 26px;
}

.nf-tool-card h3 {
  margin: 18px 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.nf-tool-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.nf-tool-card ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 14px;
  color: #3e4a63;
}

.nf-tool-card li {
  position: relative;
  padding-left: 22px;
}

.nf-tool-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--nf-blue);
  font-weight: 800;
}

.nf-tool-card .button {
  margin-top: auto;
  width: 100%;
}

/* ---------- Seção "sem pacote pronto" ---------- */

.nf-custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.nf-custom h2 {
  margin: 18px 0 16px;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.nf-custom p {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 28px;
}

.nf-custom-list {
  display: grid;
  gap: 16px;
}

.nf-custom-item {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid var(--nf-line);
  background: #fff;
}

.nf-custom-item > span {
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--nf-blue), var(--nf-violet));
}

.nf-custom-item strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.nf-custom-item p {
  margin: 0;
  font-size: 15px;
}

/* ---------- FAQ ---------- */

.nf-faq {
  max-width: 820px;
}

.nf-faq details {
  background: #fff;
  border: 1px solid var(--nf-line);
  border-radius: 18px;
  padding: 0 24px;
  margin-bottom: 12px;
}

.nf-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 30px 20px 0;
  font-weight: 700;
  font-size: 17px;
  position: relative;
}

.nf-faq summary::-webkit-details-marker { display: none; }

.nf-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--nf-blue);
  font-weight: 500;
}

.nf-faq details[open] summary::after { content: "–"; }

.nf-faq details p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* ==========================================================
   PÁGINAS DAS FERRAMENTAS
   ========================================================== */

.nf-tool-page {
  background:
    radial-gradient(circle at 85% 0%, rgba(105, 55, 236, 0.08), transparent 40%),
    radial-gradient(circle at 0% 30%, rgba(45, 99, 237, 0.06), transparent 35%),
    #f7f9ff;
  min-height: 100vh;
}

.nf-tool-hero {
  padding: 64px 0 36px;
  text-align: center;
}

.nf-tool-hero h1 {
  margin: 18px auto 14px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  max-width: 820px;
}

.nf-tool-hero p.nf-lead {
  max-width: 680px;
  margin: 0 auto;
  font-size: 18px;
  color: var(--muted);
}

.nf-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.nf-panel {
  background: #fff;
  border: 1px solid var(--nf-line);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(37, 56, 105, 0.08);
  padding: 30px;
}

.nf-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 38px 20px;
  border: 2px dashed #c9d3ee;
  border-radius: 20px;
  background: #fbfcff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.nf-drop:hover,
.nf-drop.is-over {
  border-color: var(--nf-blue);
  background: #f2f6ff;
}

.nf-drop { position: relative; }
.nf-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 0;
}

.nf-drop-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--nf-blue), var(--nf-violet));
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.28);
}

.nf-drop-icon svg { width: 28px; height: 28px; }

.nf-drop strong { font-size: 18px; }

.nf-drop small { color: var(--muted); font-size: 14px; }

.nf-file-chosen {
  margin-top: 4px;
  font-weight: 700;
  color: var(--nf-blue);
  word-break: break-all;
}

.nf-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.nf-actions-row .button { flex: 1 1 220px; }

.nf-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: #6b7590;
  text-align: center;
}

.nf-error {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--nf-bad-bg);
  color: var(--nf-bad);
  font-weight: 600;
  font-size: 14px;
}

.nf-error:empty { display: none; }

/* Carregamento */
.nf-loading {
  margin-top: 22px;
  padding: 22px;
  border-radius: 18px;
  background: #f6f8ff;
  border: 1px solid #e3e9fb;
}

.nf-loading strong { display: block; margin-bottom: 12px; }

.nf-progress {
  height: 8px;
  background: #e3e8f6;
  border-radius: 99px;
  overflow: hidden;
}

.nf-progress > div {
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--nf-blue), var(--nf-violet));
  transition: width 0.5s ease;
}

.nf-steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: #7a849c;
}

.nf-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nf-steps li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #c9d1e6;
  flex-shrink: 0;
}

.nf-steps li.is-active { color: var(--nf-navy); font-weight: 600; }

.nf-steps li.is-active::before {
  border-color: var(--nf-blue);
  border-top-color: transparent;
  animation: nfSpin 0.8s linear infinite;
}

.nf-steps li.is-done { color: var(--nf-ok); }

.nf-steps li.is-done::before {
  content: "✓";
  border: 0;
  background: var(--nf-ok);
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
}

@keyframes nfSpin { to { transform: rotate(360deg); } }

/* Resultado */
.nf-results { padding: 10px 0 70px; }

.nf-results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.nf-results-head h2 {
  margin: 6px 0 4px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.nf-results-head p { margin: 0; color: var(--muted); }

.nf-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nf-violet);
}

.nf-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
}

.nf-status.ok { background: var(--nf-ok-bg); color: var(--nf-ok); }
.nf-status.warn { background: var(--nf-warn-bg); color: var(--nf-warn); }
.nf-status.bad { background: var(--nf-bad-bg); color: var(--nf-bad); }

.nf-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.nf-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.nf-card {
  background: #fff;
  border: 1px solid var(--nf-line);
  border-radius: 20px;
  padding: 22px;
  min-width: 0;
}

.nf-card + .nf-card,
.nf-block { margin-top: 18px; }

.nf-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nf-card p { margin: 0; color: #3e4a63; }

.nf-muted { color: var(--muted) !important; font-size: 14px; }

.nf-metric {
  background: #fff;
  border: 1px solid var(--nf-line);
  border-radius: 18px;
  padding: 16px 18px;
  min-width: 0;
}

.nf-metric span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.nf-metric strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.nf-metric small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: #7a849c;
  line-height: 1.4;
}

.nf-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  margin: 0;
}

.nf-fields div { min-width: 0; }

.nf-fields dt {
  font-size: 12.5px;
  font-weight: 700;
  color: #7a849c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nf-fields dd {
  margin: 2px 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.nf-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.nf-alerts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.nf-alerts li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
}

.nf-alerts li i {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  color: #fff;
}

.nf-alerts strong { display: block; font-size: 15px; line-height: 1.35; }
.nf-alerts small { color: #5b6680; font-size: 13.5px; }

.nf-alerts .ok { background: #f3fcf7; border-color: #d3f1e2; }
.nf-alerts .ok i { background: var(--nf-ok); }
.nf-alerts .atencao { background: #fffaf0; border-color: #f6e3bd; }
.nf-alerts .atencao i { background: #e09b2d; }
.nf-alerts .critico { background: #fff5f5; border-color: #f6d0d0; }
.nf-alerts .critico i { background: var(--nf-bad); }

.nf-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--nf-line);
  border-radius: 14px;
}

.nf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 460px;
}

.nf-table th,
.nf-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eef1f7;
  vertical-align: top;
}

.nf-table th {
  background: #f7f9ff;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5b6680;
}

.nf-table td.num,
.nf-table th.num { text-align: right; white-space: nowrap; }

.nf-table tr:last-child td { border-bottom: 0; }

.nf-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.nf-list li {
  position: relative;
  padding-left: 22px;
  color: #3e4a63;
}

.nf-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nf-blue);
}

.nf-list.check li::before {
  content: "✓";
  width: auto;
  height: auto;
  background: none;
  color: var(--nf-ok);
  font-weight: 800;
  top: 0;
  left: 0;
}

.nf-list.warn li::before { background: #e09b2d; }

.nf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nf-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f4ff;
  border: 1px solid #dfe6fb;
  color: #2a3a66;
  font-size: 13.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.nf-chip.violet {
  background: #f4f0ff;
  border-color: #e3d9ff;
  color: #4b2bb0;
}

.nf-insight {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--nf-line);
  background: #fff;
}

.nf-insight i {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 16px;
}

.nf-insight.oportunidade i { background: var(--nf-ok-bg); color: var(--nf-ok); }
.nf-insight.atencao i { background: var(--nf-warn-bg); color: var(--nf-warn); }
.nf-insight.informacao i { background: #eef2ff; color: var(--nf-blue); }

.nf-insight strong { display: block; margin-bottom: 3px; line-height: 1.35; }
.nf-insight p { margin: 0; font-size: 14.5px; color: #4a5670; }

.nf-chart-card { display: flex; flex-direction: column; }

.nf-chart-card h3 { margin-bottom: 4px; }

.nf-chart-card .nf-muted { margin: 0 0 12px; }

.nf-chart-box {
  position: relative;
  height: 280px;
  width: 100%;
}

.nf-cta {
  margin-top: 22px;
  padding: 28px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(130deg, #1d3fb8 0%, var(--nf-blue) 45%, var(--nf-violet) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.nf-cta h3 { margin: 0 0 6px; font-size: 21px; }
.nf-cta p { margin: 0; color: rgba(255, 255, 255, 0.86); max-width: 560px; }

.nf-cta .button {
  background: #fff;
  color: var(--nf-blue);
  box-shadow: none;
}

.nf-gauge {
  --valor: 0;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--nf-violet) calc(var(--valor) * 1%), #e9edf7 0);
  flex-shrink: 0;
}

.nf-gauge > div {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
}

.nf-gauge strong { font-size: 30px; line-height: 1; letter-spacing: -0.03em; }
.nf-gauge small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.nf-score-row {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nf-bar {
  height: 10px;
  border-radius: 99px;
  background: #e9edf7;
  overflow: hidden;
  margin-top: 8px;
}

.nf-bar > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--nf-blue), var(--nf-violet));
}

.nf-session {
  margin-top: 18px;
}

.nf-hidden { display: none !important; }

.nf-footer {
  padding: 30px 0;
  border-top: 1px solid var(--nf-line);
  background: #fff;
  color: #6b7590;
  font-size: 14px;
}

.nf-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nf-footer a { color: var(--nf-blue); font-weight: 600; }

/* Header simplificado das ferramentas */
.nf-tool-page .header .nav-actions { display: flex; }

.nf-back {
  font-weight: 600;
  color: #465269;
  font-size: 15px;
}

.nf-back:hover { color: var(--nf-blue); }

/* ---------- Responsivo ---------- */

@media (max-width: 1100px) {
  .nf-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 950px) {
  .nf-flow { margin: 10px auto 0; }
  .nf-custom-grid { grid-template-columns: 1fr; gap: 34px; }
  .nf-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nf-grid-3 { grid-template-columns: 1fr; }
  .nf-tool-page .header .nav-actions { display: flex !important; }
  .nf-tool-page .header .nav-actions .nf-back { display: none; }
}

@media (max-width: 700px) {
  .nf-tools-grid { grid-template-columns: 1fr; }
  .nf-grid-2 { grid-template-columns: 1fr; }
  .nf-fields { grid-template-columns: 1fr; }
  .nf-panel { padding: 20px; }
  .nf-tool-hero { padding: 40px 0 24px; }
  .nf-tool-hero p.nf-lead { font-size: 16px; }
  .nf-flow-before, .nf-flow-after { width: 100%; }
  .nf-flow-card { padding: 18px; }
  .nf-flow-steps li { font-size: 13.5px; }
  .nf-score-row { flex-direction: column; align-items: flex-start; }
  .nf-chart-box { height: 240px; }
  .nf-tool-page .header .nav-actions .button { padding: 0 14px; font-size: 14px; min-height: 40px; }
}

@media (max-width: 420px) {
  .nf-grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .nf-metric { padding: 12px 14px; }
  .nf-metric strong { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .nf-flow-steps li { animation: none; opacity: 1; transform: none; }
  .nf-flow-live span, .nf-flow-steps em.nf-pulse { animation: none; }
}

.nf-tool-card .button { padding: 0 14px; white-space: nowrap; font-size: 15px; }

@media (max-width: 520px) {
  .nf-tool-page .header .brand-name { display: none; }
}

.nf-grid-2 > .nf-card,
.nf-grid-3 > .nf-card,
.nf-grid-4 > .nf-card { margin-top: 0; }
.nf-card h3 { flex-wrap: wrap; }
.nf-note a { color: var(--nf-blue); font-weight: 600; text-decoration: underline; }

/* Currículo: checklist e versão revisada */
.nf-checklist { display: grid; gap: 8px; }
.nf-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #eef1f7;
  background: #fbfcff;
  cursor: pointer;
  font-size: 14.5px;
  color: #3e4a63;
  line-height: 1.45;
}
.nf-check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #6937ec;
  cursor: pointer;
}
.nf-check.is-done span { text-decoration: line-through; color: #8a93a8; }
.nf-cv-sec { padding: 16px 0; border-top: 1px solid #eef1f7; }
.nf-cv-sec:first-of-type { border-top: 0; padding-top: 4px; }
.nf-cv-sec h4 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nf-blue);
}
.nf-cv-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.nf-cv-sec p { color: #3e4a63; }
.nf-cv-exp { margin-bottom: 14px; }
.nf-cv-exp:last-child { margin-bottom: 0; }
.nf-cv-exp > strong { display: block; font-size: 16px; }
.nf-cv-exp > span { display: block; margin: 2px 0 8px; font-size: 13.5px; }
.nf-link-btn {
  border: 1px solid #dfe6fb;
  background: #f1f4ff;
  color: var(--nf-blue);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.nf-link-btn:hover { background: #e6ecff; }

/* ==========================================================
   Nov/2026 — retenção das ferramentas gratuitas
   ========================================================== */

/* Teste em 1 toque com arquivo de exemplo */
.nf-quick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  margin-bottom: 4px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f3efff 0%, #eef3ff 100%);
  border: 1px solid #ddd3ff;
}

.nf-quick-text strong { display: block; font-size: 17px; color: var(--nf-navy); }
.nf-quick-text span { display: block; margin-top: 2px; font-size: 14.5px; color: #4a5670; line-height: 1.45; }

.nf-quick-btn {
  flex: none;
  color: #fff;
  background: linear-gradient(135deg, var(--nf-blue), var(--nf-violet));
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.28);
  white-space: nowrap;
}

.nf-quick-btn:hover { filter: brightness(1.06); }
.nf-quick-btn:disabled, .nf-inline-ex:disabled { opacity: 0.7; cursor: wait; transform: none; }

.nf-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  color: #7a849c;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nf-or::before, .nf-or::after { content: ""; flex: 1; height: 1px; background: var(--nf-line); }

.nf-inline-ex {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: var(--nf-blue);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* Ferramentas na home: 3 cartões, logo depois do topo */
.nf-tools-grid.nf-tools-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.nf-tool-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--nf-violet);
}

.nf-tools-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: -26px 0 36px;
  font-size: 14px;
  font-weight: 600;
  color: #465269;
}

.nf-tools-trust span::before { content: "✓ "; color: var(--nf-ok); font-weight: 800; }

@media (max-width: 950px) {
  .nf-tools-grid.nf-tools-3 { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 700px) {
  .nf-quick { flex-direction: column; align-items: stretch; text-align: left; padding: 18px; }
  .nf-quick-btn { width: 100%; white-space: normal; }
  .nf-tools-trust { margin-top: -30px; }
}

/* Âncoras não ficam escondidas atrás do cabeçalho fixo */
section[id] { scroll-margin-top: 92px; }
