/* Diagnóstico NR-1 — réplica vanilla CSS dos tokens do projeto original */
:root {
  --background: #ffffff;
  --foreground: #0f1b3d;
  --card: #ffffff;
  --card-foreground: #0f1b3d;
  --primary: #1a3a8c;
  --primary-foreground: #ffffff;
  --primary-glow: #2d8ad3;
  --secondary: #eef2fb;
  --secondary-foreground: #25366b;
  --muted: #f1f4fa;
  --muted-foreground: #5b6a86;
  --accent: #93dbe1;
  --accent-foreground: #1c2c50;
  --success: #16a472;
  --success-foreground: #ffffff;
  --warning: #d99728;
  --destructive: #d6442a;
  --border: #e4e8f0;
  --input: #e4e8f0;
  --ring: #2d8ad3;
  --gradient-hero: linear-gradient(135deg, #112c70 0%, #2d80c4 60%, #93dbe1 100%);
  --gradient-soft: linear-gradient(180deg, #f7f9fd 0%, #ecf1f8 100%);
  --gradient-cta: linear-gradient(135deg, var(--primary), var(--primary-glow));
  --shadow-elegant: 0 20px 50px -20px rgba(26,58,140,0.35);
  --shadow-card: 0 4px 16px -6px rgba(26,58,140,0.12);
  --radius: 0.75rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "cv02","cv03","cv04","cv11";
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Sora", "Inter", sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(228,232,240,0.6);
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: .5rem;
  font-family: "Sora", sans-serif; font-size: 1.125rem; font-weight: 600;
  color: var(--foreground);
}
.brand img { width: 42px; height: 36px; object-fit: contain; }
.brand .glow { color: var(--primary-glow); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  border: 1px solid transparent; border-radius: 0.5rem;
  padding: .55rem 1rem; font-size: .875rem; font-weight: 500;
  transition: opacity .2s, transform .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn-cta {
  background-image: var(--gradient-cta); color: var(--primary-foreground);
  box-shadow: var(--shadow-card);
}
.btn-cta:hover { opacity: .95; transform: translateY(-1px); }
.btn-cta.shadow-elegant { box-shadow: var(--shadow-elegant); }
.btn-lg { padding: .75rem 1.25rem; font-size: .95rem; }
.btn-outline {
  background: transparent; color: var(--foreground); border-color: var(--border);
}
.btn-outline:hover { background: var(--secondary); }
.btn-outline.primary { border-color: rgba(26,58,140,0.2); }
.btn-inverse {
  background: var(--background); color: var(--primary); box-shadow: var(--shadow-elegant);
}
.btn-inverse:hover { background: rgba(255,255,255,0.9); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Sections base */
section { padding: 5rem 0; }
.section-tag {
  font-size: .72rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--primary-glow);
}
.section-head { max-width: 720px; margin: 0 auto; text-align: center; }
.section-head h2 {
  margin-top: .75rem; font-size: 1.875rem; font-weight: 600;
  line-height: 1.2;
}
@media(min-width: 768px) { .section-head h2 { font-size: 2.25rem; } }
.section-head p { margin-top: 1rem; color: var(--muted-foreground); }

/* HERO */
.hero { position: relative; overflow: hidden; padding: 4rem 0; }
@media(min-width: 768px) { .hero { padding: 6rem 0; } }
.hero-bg-soft { position: absolute; inset: 0; background: var(--gradient-soft); }
.hero-blob {
  position: absolute; top: -10rem; right: -10%;
  width: 480px; height: 480px; border-radius: 50%;
  background: var(--gradient-hero); opacity: .3; filter: blur(80px);
}
.hero-grid {
  position: relative; display: grid; gap: 3rem;
}
@media(min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; } }
.hero h1 {
  font-size: 2.25rem; font-weight: 600; line-height: 1.05; color: var(--foreground);
}
@media(min-width: 768px) { .hero h1 { font-size: 3rem; } }
@media(min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
.gradient-text {
  background-image: var(--gradient-cta);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-lead { margin-top: 1.25rem; max-width: 36rem; font-size: 1.125rem; color: var(--muted-foreground); }
.hero-sub { margin-top: .75rem; max-width: 36rem; font-size: .875rem; color: var(--muted-foreground); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-trust {
  margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  font-size: .75rem; color: var(--muted-foreground);
}
.hero-trust span { display: inline-flex; align-items: center; gap: .35rem; }

/* Hero dashboard mock */
.dash-wrap { position: relative; }
.dash-wrap::before {
  content: ""; position: absolute; inset: -1.5rem; border-radius: 1.5rem;
  background: var(--gradient-hero); opacity: .2; filter: blur(60px);
}
.dash-card {
  position: relative; border: 1px solid rgba(228,232,240,0.6); background: var(--card);
  border-radius: 1.5rem; padding: 1.25rem; box-shadow: var(--shadow-elegant);
}
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; }
.dash-head .label { font-size: .75rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .08em; }
.dash-head .title { margin-top: .15rem; font-family: "Sora", sans-serif; font-weight: 600; font-size: 1.1rem; }
.badge-success {
  background: rgba(22,164,114,0.15); color: var(--success);
  border-radius: 999px; padding: .15rem .6rem; font-size: .72rem; font-weight: 500;
}
.dash-score { margin-top: 1.25rem; background: rgba(241,244,250,0.6); border-radius: 1rem; padding: 1rem; }
.dash-score-row { display: flex; justify-content: space-between; align-items: baseline; }
.dash-score-row .big { font-family: "Sora", sans-serif; font-size: 1.875rem; font-weight: 600; }
.dash-score-row .desc { font-size: .75rem; color: var(--muted-foreground); }
.bar { margin-top: .75rem; height: .625rem; background: var(--background); border-radius: 999px; overflow: hidden; }
.bar > div { height: 100%; background-image: var(--gradient-cta); border-radius: 999px; }
.bar-labels { display: flex; justify-content: space-between; margin-top: .4rem; font-size: .65rem; color: var(--muted-foreground); }
.dash-grid { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.dash-mini { border: 1px solid var(--border); background: var(--background); border-radius: .75rem; padding: .75rem; }
.dash-mini .l { font-size: .7rem; color: var(--muted-foreground); }
.dash-mini .v { margin-top: .25rem; display: flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 500; }
.dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 999px; }
.dot.ok { background: var(--success); }
.dot.warn { background: var(--warning); }
.plan-card { margin-top: 1rem; border: 1px solid var(--border); border-radius: .75rem; padding: .75rem; }
.plan-card .h { font-size: .75rem; color: var(--muted-foreground); }
.plan-row { margin-top: .5rem; }
.plan-row + .plan-row { margin-top: .5rem; }
.plan-row .top { display: flex; justify-content: space-between; font-size: .75rem; }
.plan-row .track { margin-top: .25rem; height: .375rem; background: var(--muted); border-radius: 999px; overflow: hidden; }
.plan-row .track > div { height: 100%; background: var(--primary-glow); border-radius: 999px; }

/* Card grids */
.grid-cards { display: grid; gap: 1rem; }
@media(min-width: 640px) { .grid-cards.cols-2 { grid-template-columns: 1fr 1fr; } }
@media(min-width: 1024px) {
  .grid-cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media(min-width: 768px) {
  .grid-cards.md-2 { grid-template-columns: 1fr 1fr; }
  .grid-cards.md-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  border: 1px solid rgba(228,232,240,0.6); background: var(--card);
  border-radius: 1rem; padding: 1.25rem; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card.shadow { box-shadow: var(--shadow-card); }
.card.hoverable:hover { transform: translateY(-2px); border-color: rgba(45,138,211,0.4); box-shadow: var(--shadow-card); }
.card h3 { margin-top: 1rem; font-size: 1rem; font-weight: 600; font-family: "Sora", sans-serif; }
.card h3.lg { font-size: 1.125rem; }
.card p { margin-top: .35rem; font-size: .875rem; color: var(--muted-foreground); line-height: 1.55; }
.icon-pill {
  display: inline-flex; width: 2.5rem; height: 2.5rem; border-radius: .75rem;
  background: rgba(147,219,225,0.25); color: var(--primary);
  align-items: center; justify-content: center;
}
.icon-pill.cta { background-image: var(--gradient-cta); color: var(--primary-foreground); }
.icon-pill.lg { width: 3rem; height: 3rem; border-radius: 1rem; }

.section-gradient-soft { background: var(--gradient-soft); }

/* Step cards (DiagnosticIntro) */
.steps-row { display: grid; gap: 1.25rem; }
@media(min-width: 768px) { .steps-row { grid-template-columns: repeat(3, 1fr); } }
.step-card { border: 1px solid rgba(228,232,240,0.6); background: var(--card); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-card); }
.step-card .top { display: flex; align-items: center; gap: .75rem; }
.step-card .top span.tag { font-family: "Sora", sans-serif; font-size: .875rem; font-weight: 600; color: var(--primary-glow); }
.step-card h3 { margin-top: 1rem; font-family: "Sora", sans-serif; font-size: 1rem; font-weight: 600; }
.step-card p { margin-top: .4rem; font-size: .875rem; color: var(--muted-foreground); }
.center-action { margin-top: 2.5rem; display: flex; justify-content: center; }

/* Form */
.form-card {
  margin-top: 2.5rem;
  border: 1px solid rgba(228,232,240,0.6); background: var(--card);
  border-radius: 1.5rem; padding: 1.5rem; box-shadow: var(--shadow-elegant);
  max-width: 720px; margin-left: auto; margin-right: auto;
}
@media(min-width: 768px) { .form-card { padding: 2.5rem; } }
.form-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; font-size: .875rem; color: var(--muted-foreground); }
.progress { height: .5rem; background: var(--muted); border-radius: 999px; overflow: hidden; margin-bottom: 2rem; }
.progress > div { height: 100%; background-image: var(--gradient-cta); transition: width .3s; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .875rem; font-weight: 500; }
.input, .select {
  width: 100%; padding: .55rem .75rem; font-size: .875rem;
  border: 1px solid var(--input); background: var(--background);
  border-radius: .5rem; color: var(--foreground); font-family: inherit;
}
.input:focus, .select:focus { outline: 2px solid var(--ring); outline-offset: 0; border-color: transparent; }
.field .err { font-size: .75rem; color: var(--destructive); }
.grid-2 { display: grid; gap: 1rem; }
@media(min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.radio-group { display: grid; gap: .5rem; }
@media(min-width: 768px) { .radio-group.cols-2 { grid-template-columns: 1fr 1fr; } }
.radio-option {
  display: flex; align-items: center; gap: .75rem;
  border: 1px solid rgba(228,232,240,0.6); border-radius: .75rem;
  padding: .75rem 1rem; cursor: pointer; transition: border-color .15s, background .15s;
}
.radio-option:hover { border-color: rgba(26,58,140,0.4); background: rgba(241,244,250,0.5); }
.radio-option input { accent-color: var(--primary); }
.radio-option.checked { border-color: var(--primary); background: rgba(26,58,140,0.05); }
.radio-option span { font-size: .875rem; }
.maturity-q {
  border: 1px solid rgba(228,232,240,0.6); background: var(--background);
  border-radius: 1rem; padding: 1.25rem;
}
.maturity-q + .maturity-q { margin-top: 1.5rem; }
.maturity-q .q { font-weight: 500; color: var(--foreground); }
.maturity-q .q .n { color: var(--primary-glow); margin-right: .35rem; }
.maturity-q .radio-group { margin-top: .75rem; }
.disclaimer {
  background: rgba(241,244,250,0.6); border-radius: .75rem; padding: 1rem;
  font-size: .75rem; color: var(--muted-foreground); margin-top: 1.5rem;
}
.form-nav {
  margin-top: 2rem; display: flex; gap: .75rem;
  flex-direction: column-reverse;
}
@media(min-width: 640px) { .form-nav { flex-direction: row; justify-content: space-between; } }

/* HowItHelps */
.flow-list { display: grid; gap: .75rem; max-width: 64rem; margin: 3rem auto 0; }
@media(min-width: 768px) { .flow-list { grid-template-columns: 1fr 1fr; } }
@media(min-width: 1024px) { .flow-list { grid-template-columns: repeat(4, 1fr); } }
.flow-list li { list-style: none; border: 1px solid rgba(228,232,240,0.6); background: var(--card); border-radius: 1rem; padding: 1rem; box-shadow: var(--shadow-card); }
.flow-list li .num { font-family: "Sora", sans-serif; font-size: 1.5rem; font-weight: 600; color: var(--primary-glow); }
.flow-list li p { margin-top: .25rem; font-size: .875rem; font-weight: 500; color: var(--foreground); }

/* Differentials list */
.diff-list { display: grid; gap: .75rem; max-width: 56rem; margin: 2.5rem auto 0; }
@media(min-width: 640px) { .diff-list { grid-template-columns: 1fr 1fr; } }
.diff-list li { list-style: none; display: flex; gap: .75rem; border: 1px solid rgba(228,232,240,0.6); background: var(--card); border-radius: 1rem; padding: 1rem; }
.diff-list li .check {
  flex-shrink: 0; width: 1.5rem; height: 1.5rem; border-radius: 999px;
  background: rgba(22,164,114,0.15); color: var(--success);
  display: inline-flex; align-items: center; justify-content: center;
}
.diff-list li span.t { font-size: .875rem; }

/* Security cards (row layout) */
.sec-list { display: grid; gap: 1rem; margin-top: 3rem; }
@media(min-width: 640px) { .sec-list { grid-template-columns: 1fr 1fr; } }
@media(min-width: 1024px) { .sec-list { grid-template-columns: repeat(3, 1fr); } }
.sec-card { display: flex; align-items: center; gap: 1rem; border: 1px solid rgba(228,232,240,0.6); background: var(--card); border-radius: 1rem; padding: 1.25rem; box-shadow: var(--shadow-card); }
.sec-card .icon-pill { width: 2.75rem; height: 2.75rem; }
.sec-card p { font-size: .875rem; font-weight: 500; }

/* Final CTA */
.final-cta {
  position: relative; overflow: hidden;
  background-image: var(--gradient-hero); color: var(--primary-foreground);
  border-radius: 1.5rem; padding: 3.5rem 2rem; text-align: center;
  box-shadow: var(--shadow-elegant);
}
@media(min-width: 768px) { .final-cta { padding: 5rem 3.5rem; } }
.final-cta::after {
  content: ""; position: absolute; inset: 0; opacity: .2; pointer-events: none;
  background:
    radial-gradient(circle at 30% 20%, white 0, transparent 40%),
    radial-gradient(circle at 80% 80%, white 0, transparent 35%);
}
.final-cta .inner { position: relative; max-width: 720px; margin: 0 auto; }
.final-cta h2 { font-family: "Sora", sans-serif; font-size: 1.875rem; font-weight: 600; }
@media(min-width: 768px) { .final-cta h2 { font-size: 2.25rem; } }
.final-cta p { margin-top: 1rem; font-size: 1rem; }
@media(min-width: 768px) { .final-cta p { font-size: 1.125rem; } }
.final-cta .actions { margin-top: 2rem; display: flex; justify-content: center; }
.final-cta .note { margin-top: 1rem; font-size: .875rem; }

/* Footer */
.site-footer { border-top: 1px solid rgba(228,232,240,0.6); padding: 3rem 0; background: var(--background); }
.footer-grid { display: grid; gap: 2.5rem; }
@media(min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-brand p { margin-top: .75rem; max-width: 22rem; font-size: .875rem; color: var(--muted-foreground); }
.footer-col .h { font-size: .72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }
.footer-col ul { margin-top: .75rem; padding: 0; list-style: none; display: grid; gap: .5rem; font-size: .875rem; }
.footer-col a:hover { color: var(--primary-glow); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(228,232,240,0.6); font-size: .75rem; color: var(--muted-foreground); }
.footer-bottom p + p { margin-top: .5rem; }

/* Obrigado page */
.result-card {
  margin: 3rem auto 0; max-width: 720px;
  border: 1px solid rgba(228,232,240,0.6); background: var(--card);
  border-radius: 1.5rem; padding: 2rem; box-shadow: var(--shadow-elegant);
}
@media(min-width: 768px) { .result-card { padding: 3rem; } }
.result-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(22,164,114,0.15); color: var(--success);
  border-radius: 999px; padding: .25rem .75rem; font-size: .75rem; font-weight: 500;
}
.result-top { display: flex; flex-direction: column; gap: 1rem; }
@media(min-width: 768px) { .result-top { flex-direction: row; justify-content: space-between; align-items: center; } }
.result-top .label-up { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--primary-glow); }
.result-top h2 { margin-top: .25rem; font-family: "Sora", sans-serif; font-size: 1.5rem; font-weight: 600; }
@media(min-width: 768px) { .result-top h2 { font-size: 1.875rem; } }
.score-right { text-align: right; }
.score-right .l { font-size: .75rem; color: var(--muted-foreground); }
.score-right .v { font-family: "Sora", sans-serif; font-size: 1.5rem; font-weight: 600; }
.score-right .v small { font-size: 1rem; color: var(--muted-foreground); }
.level-bar { margin-top: 1.5rem; height: .75rem; background: var(--muted); border-radius: 999px; overflow: hidden; }
.level-bar > div { height: 100%; border-radius: 999px; transition: width .35s; }
.level-1 { background: var(--warning); }
.level-2 { background: var(--primary-glow); }
.level-3 { background: var(--accent); }
.level-4 { background: var(--success); }
.level-labels { margin-top: .5rem; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-size: .68rem; color: var(--muted-foreground); }
.level-desc { margin-top: 1.5rem; background: rgba(241,244,250,0.6); border-radius: 1rem; padding: 1.25rem; font-size: .875rem; }
.next-steps { margin-top: 1.5rem; }
.next-steps .h { font-size: .875rem; font-weight: 600; }
.next-steps ul { margin-top: .75rem; padding: 0; list-style: none; display: grid; gap: .5rem; }
.next-steps li { display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; }
.next-steps li svg { margin-top: .15rem; flex-shrink: 0; color: var(--success); }
.result-actions { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
@media(min-width: 640px) { .result-actions { flex-direction: row; } }

.icon { width: 1rem; height: 1rem; }
.icon-lg { width: 1.25rem; height: 1.25rem; }
