/* ==========================================================================
   Mentor Fiscal — identidade visual
   Mobile-first, sem dependências externas (fontes do sistema), sem estilos inline.
   ========================================================================== */

:root {
  --ink: #0e2233;
  --ink-2: #1d3449;
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --surface: #ffffff;
  --line: #e1dbcd;
  --line-strong: #c4bba8;
  --text: #1b2733;
  --muted: #56616d;
  --accent: #0f5c4c;
  --accent-strong: #0a4639;
  --accent-soft: #e5efe9;
  --brass: #d6b26a;
  --brass-deep: #8a6420;
  --danger: #a3321f;
  --danger-soft: #fcefeb;
  --warning-soft: #fbf3df;
  --info-soft: #e8f0f6;
  --focus: #d18f1a;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;

  --radius: 12px;
  --radius-small: 8px;
  --shadow: 0 1px 2px rgba(14, 34, 51, 0.06), 0 8px 24px rgba(14, 34, 51, 0.06);
  --gutter: clamp(1rem, 4vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-strong);
  text-decoration-thickness: 2px;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--paper-2);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

main:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-small);
}

.skip-link:focus {
  top: 1rem;
  color: var(--paper);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-2);
}

/* ---------- Botões ---------- */

.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border: 1.5px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 0.98rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  color: var(--btn-fg);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: none;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-border: var(--accent);
}

.btn-primary:hover {
  --btn-bg: var(--accent-strong);
  --btn-border: var(--accent-strong);
  color: #fff;
}

.btn-accent {
  --btn-bg: var(--brass);
  --btn-fg: var(--ink);
  --btn-border: var(--brass);
}

.btn-ghost {
  --btn-bg: transparent;
}

.btn-ghost:hover {
  --btn-bg: var(--surface);
}

.btn-small {
  min-height: 38px;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
}

.btn-large {
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  font-size: 1.02rem;
}

.btn-link {
  min-height: 0;
  padding: 0.25rem 0.1rem;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.btn-link:hover {
  color: var(--accent-strong);
  transform: none;
}

.btn-danger {
  color: var(--danger);
}

/* ---------- Cabeçalho e rodapé ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(246, 243, 236, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  flex: none;
  color: var(--ink);
}

.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.005em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  display: none;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer {
  margin-top: 4rem;
  background: var(--ink);
  color: #d7dde3;
  font-size: 0.92rem;
}

.site-footer a {
  color: #f1e3c2;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  padding-block: 2.75rem 1.5rem;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.footer-tagline {
  color: #b9c3cc;
  max-width: 32ch;
}

.footer-institutional {
  display: grid;
  gap: 0.2rem;
  font-style: normal;
}

.footer-pending {
  color: #f1e3c2;
  font-size: 0.85rem;
}

.footer-pending code {
  background: rgba(255, 255, 255, 0.08);
  color: #f1e3c2;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.1rem 1.6rem;
  color: #9aa6b1;
  font-size: 0.84rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Página inicial ---------- */

.hero {
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(15, 92, 76, 0.09), transparent 70%),
    var(--paper);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.05rem, 5.2vw, 3.45rem);
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.hero h1 em {
  color: var(--accent);
}

.hero-copy > p:not(.eyebrow):not(.lead) {
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.spec-sheet {
  position: relative;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 39px, rgba(14, 34, 51, 0.05) 39px, rgba(14, 34, 51, 0.05) 40px),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 1.25rem;
}

.spec-sheet::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(var(--accent), var(--brass));
}

.spec-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.spec-tag {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.spec-ref {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.spec-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.spec-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.spec-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.9rem;
  border-bottom: 1px dashed var(--line);
  font-weight: 520;
}

.spec-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.95em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.spec-stamp {
  display: inline-block;
  margin: 0;
  padding: 0.45rem 0.8rem;
  border: 1.5px dashed var(--brass-deep);
  border-radius: var(--radius-small);
  color: var(--brass-deep);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.band {
  padding-block: clamp(2.75rem, 7vw, 5rem);
}

.band-muted {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.band-audience {
  padding-block: 2.5rem;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.section-heading {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
}

.section-intro {
  max-width: 62ch;
  margin-bottom: 2rem;
}

.section-intro p:not(.eyebrow) {
  color: var(--muted);
}

.audience-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.audience-list li {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  font-weight: 560;
  color: var(--ink-2);
}

.audience-index {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--brass-deep);
}

.scope-grid {
  display: grid;
  gap: 1rem;
}

.scope-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.1rem;
}

.scope-card h3 {
  font-size: 1.2rem;
}

.scope-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.scope-card li + li {
  margin-top: 0.3rem;
}

.split {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.split p:not(.eyebrow) {
  color: var(--muted);
  max-width: 48ch;
}

.chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 540;
  color: var(--ink-2);
}

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  counter-reset: none;
}

.process-step {
  position: relative;
  padding: 1.4rem 1.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.process-num {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
}

.process-step h3 {
  font-size: 1.2rem;
}

.process-step p {
  color: var(--muted);
}

.cta-band {
  background: var(--ink);
  color: #dde3e8;
  padding-block: clamp(2.75rem, 6vw, 4rem);
  margin-bottom: -4rem;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
}

.cta-band strong {
  color: #f1e3c2;
}

.cta-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.cta-inner p {
  max-width: 62ch;
  margin: 0;
}

/* ---------- Wizard ---------- */

.wizard-shell {
  max-width: 880px;
  padding-block: clamp(1.75rem, 5vw, 3rem) 1rem;
}

.wizard-intro h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
}

.wizard-presentation {
  color: var(--muted);
  max-width: 68ch;
}

.wizard-presentation .lead {
  color: var(--ink-2);
}

.draft-banner {
  display: grid;
  gap: 0.75rem;
  margin-block: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid #e6cf9b;
  border-left: 4px solid var(--brass);
  border-radius: var(--radius-small);
  background: var(--warning-soft);
}

.draft-banner p {
  margin: 0;
}

.draft-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wizard {
  margin-top: 1.5rem;
}

.stepper {
  margin-bottom: 1.25rem;
}

.stepper-status {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.stepper-progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  color: var(--accent);
}

.stepper-progress::-webkit-progress-bar {
  background: var(--line);
  border-radius: 999px;
}

.stepper-progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent), #2e7d68);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.stepper-progress::-moz-progress-bar {
  background: var(--accent);
  border-radius: 999px;
}

.stepper-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.25rem;
}

.stepper-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--muted);
  text-align: center;
  border-radius: var(--radius-small);
}

button.stepper-link {
  cursor: pointer;
}

button.stepper-link:hover .stepper-label {
  text-decoration: underline;
}

.stepper-num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 700;
}

.stepper-label {
  display: none;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.is-done .stepper-num {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.is-done .stepper-link {
  color: var(--accent);
}

.is-current .stepper-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(15, 92, 76, 0.15);
}

.is-current .stepper-link {
  color: var(--ink);
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.step-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.step-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.step-head h2 {
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  margin-bottom: 0.35rem;
}

.step-head h2:focus {
  outline: none;
}

.step-description {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.required-legend {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.req {
  color: var(--danger);
  font-weight: 700;
  margin-left: 0.1em;
}

.form-section + .form-section {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--line-strong);
}

.section-title {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  margin-bottom: 1.4rem;
}

.section-number {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--ink);
  color: var(--brass);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-wrap + .question-wrap {
  margin-top: 1.9rem;
}

.field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field-label {
  display: block;
  padding: 0;
  margin-bottom: 0.45rem;
  font-weight: 650;
  font-size: 1.03rem;
  line-height: 1.4;
  color: var(--ink);
}

.qnum {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.15em;
}

.field-hint {
  margin: -0.15rem 0 0.7rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.field-hint p {
  margin: 0 0 0.3rem;
}

.field-hint ul {
  margin: 0 0 0.4rem;
  padding-left: 1.2rem;
}

.field-hint .ui-hint {
  font-size: 0.86rem;
  font-style: italic;
}

.field-error {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin: 0 0 0.55rem;
  color: var(--danger);
  font-weight: 600;
  font-size: 0.93rem;
}

.field-error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: #fffefb;
  color: var(--text);
  font: 400 1rem/1.5 var(--sans);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
  min-height: 7.5rem;
}

input:hover,
textarea:hover {
  border-color: #a99f8a;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 92, 76, 0.16);
}

input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

.has-error > input,
.has-error > textarea,
.other-field.has-error input {
  border-color: var(--danger);
  background: #fffaf8;
}

.char-count {
  margin: 0.3rem 0 0;
  text-align: right;
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.options {
  display: grid;
  gap: 0.55rem;
}

.option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fffefb;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.option:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.option-control {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.12rem;
  border: 2px solid #8e8572;
  border-radius: 5px;
  background: var(--surface);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

input[type="radio"] + .option-control {
  border-radius: 50%;
}

.option-text {
  font-weight: 520;
  line-height: 1.4;
}

.option input:checked + .option-control {
  border-color: var(--accent);
  background: var(--accent);
}

.option input[type="checkbox"]:checked + .option-control::after {
  content: "";
  width: 0.62rem;
  height: 0.34rem;
  margin-top: -0.12rem;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}

.option input[type="radio"]:checked + .option-control::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #fff;
}

.option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.option:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.has-error .option {
  border-color: #e3b3a8;
}

.other-field {
  margin-top: 0.7rem;
  padding: 0.85rem 0.95rem;
  border-left: 3px solid var(--brass);
  background: var(--paper);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
}

.other-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.93rem;
}

.not-applicable {
  margin: 0;
  padding: 0.8rem 1rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.93rem;
}

.option-consent {
  border-color: var(--line-strong);
}

.alert,
.error-summary {
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-small);
  border: 1px solid;
  border-left-width: 5px;
}

.alert:focus,
.error-summary:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.alert p:last-child,
.error-summary ul {
  margin-bottom: 0;
}

.alert-title,
.error-summary-title {
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.alert-error,
.error-summary {
  background: var(--danger-soft);
  border-color: #eab9ad;
  border-left-color: var(--danger);
}

.alert-warning {
  background: var(--warning-soft);
  border-color: #e6cf9b;
  border-left-color: var(--brass-deep);
}

.alert-info {
  background: var(--info-soft);
  border-color: #b9cfe0;
  border-left-color: #2b5d85;
}

.error-summary ul {
  padding-left: 1.2rem;
}

.error-summary a {
  color: var(--danger);
  font-weight: 600;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-note {
  margin: 1.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.wizard-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin: 1.75rem calc(-1 * clamp(1.25rem, 4vw, 2.5rem)) calc(-1 * clamp(1.25rem, 4vw, 2.5rem));
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem) calc(0.9rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  border-radius: 0 0 calc(var(--radius) + 4px) calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.96);
}

.wizard-actions .btn-ghost {
  margin-right: auto;
}

.wizard-state {
  display: none;
}

.privacy-note {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.privacy-note p {
  max-width: 64ch;
  margin-inline: auto;
}

.clear-draft {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.clear-draft-confirm {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Revisão ---------- */

.review {
  margin-bottom: 2.25rem;
}

.review-title {
  font-size: 1.35rem;
}

.review-intro {
  color: var(--muted);
}

.review-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 0.4rem;
  background: #fffefb;
}

.review-step + .review-step {
  margin-top: 0.9rem;
}

.review-step-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.review-step-head h4 {
  margin: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.review-step-num {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
}

.review-section-title {
  margin: 0.9rem 0 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.review-list {
  margin: 0 0 0.6rem;
}

.review-item {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0;
  border-top: 1px dashed var(--line);
}

.review-item dt {
  font-size: 0.88rem;
  color: var(--muted);
}

.review-item dd {
  margin: 0;
  font-weight: 550;
  overflow-wrap: anywhere;
}

.review-item dd ul {
  margin: 0;
  padding-left: 1.1rem;
}

.answer-text {
  white-space: pre-line;
}

.answer-muted {
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
}

/* ---------- Sucesso, erro, política ---------- */

.success {
  padding-block: clamp(2.5rem, 8vw, 5rem);
}

.success-card {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.success-card h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.success-card h1:focus {
  outline: none;
}

.success-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}

.success-reference {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-small);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.9rem;
}

.success-closing {
  color: var(--accent);
}

.success-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.error-page {
  max-width: 640px;
  padding-block: clamp(3rem, 10vw, 6rem);
}

.legal {
  max-width: 780px;
  padding-block: clamp(2rem, 6vw, 3.5rem);
}

.legal h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.6rem);
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

.legal-facts {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
}

.legal-facts div {
  display: grid;
  gap: 0.1rem;
}

.legal-facts dt {
  font-size: 0.82rem;
  color: var(--muted);
}

.legal-facts dd {
  margin: 0;
  font-weight: 550;
}

.draft-policy {
  margin-bottom: 2rem;
}

/* ---------- Telas maiores ---------- */

@media (min-width: 640px) {
  .options-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stepper-label {
    display: block;
  }

  .audience-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-item {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1rem;
  }

  .legal-facts div {
    grid-template-columns: 12rem 1fr;
  }

  .draft-banner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 760px) {
  .nav-link {
    display: inline;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 0.8fr;
  }

  .footer-links {
    grid-column: -2 / -1;
  }

  .process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
  }

  .cta-inner {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  }

  .audience-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .scope-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wizard-actions {
    position: static;
    background: transparent;
    border-radius: 0;
    margin-inline: 0;
    margin-bottom: 0;
    padding-inline: 0;
    padding-bottom: 0;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .option-control,
  .stepper-num {
    border: 2px solid CanvasText;
  }

  .option input:checked + .option-control {
    background: Highlight;
  }
}

@media print {
  .site-header,
  .site-footer,
  .stepper,
  .wizard-actions,
  .privacy-note,
  .cta-band {
    display: none;
  }
}
