/* Nodra · briefing.css
   Formulário de briefing no mesmo visual do site v3 (tokens, header, botões e cards do landing.css).
   Sem dependências externas. Regras de texto: nada de hifenização automática. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* ---------- Tokens (iguais aos do site) ---------- */
:root {
  color-scheme: dark;

  --bg: #06080d;
  --bg-2: #0b0f17;
  --surface: #0f1420;
  --surface-2: #151b2a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #e9edf6;
  --muted: #8d96ab;
  --blue: #4255ff;
  --steel: #6f8cff;
  --ice: #b9d4ff;
  --grad: linear-gradient(120deg, #4255ff 0%, #6f8cff 45%, #b9d4ff 100%);

  --ok: #6ee7b7;
  --warn: #fcd34d;
  --err: #fca5a5;
  --field: #0a0e18;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);

  --gutter: clamp(16px, 5vw, 48px);
  --max: 1240px;
  --header-h: 64px;
  --faixa-h: 0px;
  --radius: 20px;
  --radius-lg: 28px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--faixa-h) + 24px);
  background: var(--bg);
  scrollbar-color: #283043 var(--bg);
  scrollbar-width: thin;
  hyphens: manual;
}
html.trilha-aberta { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Grão sutil sobre a página inteira (igual ao site) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #232a3a; border: 3px solid var(--bg); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #313a50; }
::selection { background: rgba(66, 85, 255, .6); color: #fff; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}
em { font-style: normal; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
  border-radius: 6px;
}
main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.quebra { overflow-wrap: anywhere; }

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ---------- Logo (igual ao site) ---------- */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}
.logo span { color: var(--steel); }
.logo small {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--muted);
  transform: translateY(-2px);
}

/* ---------- Botões (iguais aos do site) ---------- */
.btn {
  --magnet-x: 0px;
  --magnet-y: 0px;
  --glow-x: 50%;
  --glow-y: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transform: translate3d(var(--magnet-x), var(--magnet-y), 0);
  transition: transform .35s var(--ease-out), background-color .25s, border-color .25s, box-shadow .35s var(--ease-out), color .25s, opacity .25s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(140px circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, .32), transparent 65%);
  opacity: 0;
  transition: opacity .3s;
}
.btn:hover::before { opacity: 1; }
.btn .icon { width: 18px; height: 18px; }
.btn:disabled { cursor: not-allowed; opacity: .55; }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #5567ff 0%, #3d4ff5 100%);
  border-color: rgba(140, 155, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 30px -10px rgba(66, 85, 255, .75), 0 0 0 1px rgba(66, 85, 255, .25);
}
.btn-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 14px 40px -10px rgba(66, 85, 255, .95), 0 0 0 1px rgba(111, 140, 255, .5);
}
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost::before { background: radial-gradient(140px circle at var(--glow-x) var(--glow-y), rgba(185, 212, 255, .16), transparent 65%); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .07); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn-sm .icon { width: 16px; height: 16px; }
.btn-md { height: 44px; padding: 0 18px; font-size: 14.5px; gap: 8px; }
.btn-md .icon { width: 17px; height: 17px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15.5px; }
.btn-xl { height: 60px; padding: 0 30px; font-size: 17px; gap: 12px; }
.btn-xl .icon { width: 20px; height: 20px; }

/* Botão tracejado para "adicionar" */
.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px 0 14px;
  border: 1px dashed rgba(185, 212, 255, .32);
  border-radius: 999px;
  background: rgba(66, 85, 255, .05);
  color: #cfdcff;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.btn-add .icon { width: 18px; height: 18px; color: var(--ice); }
.btn-add:hover { border-color: rgba(185, 212, 255, .6); background: rgba(66, 85, 255, .12); color: #fff; }

.btn-icone {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s;
}
.btn-icone .icon { width: 18px; height: 18px; }
.btn-icone:hover { color: #fecaca; background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .25); }

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  animation: girar .8s linear infinite;
}
.btn[aria-busy="true"] .spinner { display: inline-block; }
.btn[aria-busy="true"] .nav-seta { display: none; }

/* ---------- Header (igual ao do site) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 8, 13, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), -webkit-backdrop-filter .35s, backdrop-filter .35s;
}
.site-header.is-scrolled::before,
.em-form .site-header::before,
.em-sucesso .site-header::before {
  background: rgba(8, 11, 18, .72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
}
.header-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-acoes { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rascunho {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
}
.rascunho .icon { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.2; }
.rascunho.is-pulso .icon { animation: pulso-ok .9s var(--ease-out); }
.ajuda-link { height: 44px; padding: 0 18px; }
.ajuda-link .icon { width: 17px; height: 17px; }
.topo-progresso {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  opacity: 0;
  transition: opacity .3s;
}
.em-form .topo-progresso { opacity: 1; }
.topo-progresso span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(111, 140, 255, .85);
  border-radius: 0 2px 2px 0;
  transition: width .6s var(--ease-out);
}
@media (max-width: 559.98px) {
  .ajuda-link { width: 44px; height: 44px; padding: 0; }
  .ajuda-link .icon { width: 19px; height: 19px; }
  .ajuda-txt { display: none; }
  .header-acoes { gap: 10px; }
}
@media (max-width: 379.98px) {
  .rascunho-longo { display: none; }
}

/* ---------- Rótulos ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ice);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--grad);
}

.icone-tile {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
  color: var(--ice);
  background:
    linear-gradient(180deg, rgba(111, 140, 255, .16), rgba(66, 85, 255, .04)) padding-box,
    linear-gradient(160deg, rgba(185, 212, 255, .45), rgba(66, 85, 255, .1) 60%) border-box;
  border: 1px solid transparent;
  box-shadow: 0 10px 30px -12px rgba(66, 85, 255, .6);
}
.icone-tile .icon { width: 21px; height: 21px; stroke-width: 1.6; }

/* ---------- Cards (base igual à do site) ---------- */
.card {
  --accent: var(--steel);
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 30%),
    var(--surface);
  transition: border-color .35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 10%, transparent), transparent 45%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 85%, #fff 15%), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.card.is-tracking::before,
.card.is-tracking::after { opacity: 1; }
.card:hover { border-color: var(--line-2); }

/* ---------- Telas ---------- */
.tela { position: relative; }

/* ---------- Boas-vindas ---------- */
.tela-inicio {
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(100svh, 1080px);
  padding: calc(var(--header-h) + 48px) 0 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(42% 52% at 76% 46%, rgba(66, 85, 255, .34), transparent 72%),
    radial-gradient(30% 34% at 86% 24%, rgba(185, 212, 255, .16), transparent 72%),
    radial-gradient(36% 42% at 64% 78%, rgba(111, 140, 255, .18), transparent 72%),
    radial-gradient(60% 50% at 10% 0%, rgba(66, 85, 255, .10), transparent 70%),
    var(--bg);
}
.hero-lines {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000 10%, transparent 72%);
  mask-image: radial-gradient(70% 70% at 70% 40%, #000 10%, transparent 72%);
}
/* Esfera em CSS: aparece só sem WebGL (ou se hero3d.js não carregar) */
.hero-orb {
  position: absolute;
  z-index: -3;
  left: 74%;
  top: 48%;
  width: min(38vw, 540px);
  aspect-ratio: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: fade 1.4s var(--ease) .9s forwards;
}
.has-webgl .hero-orb { display: none; }
.hero-orb i { position: absolute; inset: 0; border-radius: 50%; }
.hero-orb i:nth-child(1) {
  background: radial-gradient(circle at 34% 30%, rgba(185, 212, 255, .55), rgba(111, 140, 255, .28) 22%, rgba(66, 85, 255, .16) 45%, rgba(10, 14, 40, .2) 70%, transparent 71%);
  box-shadow: 0 0 120px 10px rgba(66, 85, 255, .28), inset -30px -40px 80px rgba(6, 8, 13, .55);
}
.hero-orb i:nth-child(2) {
  inset: -16% -30%;
  border: 1px solid rgba(185, 212, 255, .22);
  transform: rotate(-18deg) scaleY(.32);
}
.hero-orb i:nth-child(3) {
  inset: 6%;
  border: 1px dashed rgba(185, 212, 255, .16);
  animation: orbit 60s linear infinite;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 8, 13, .82) 0%, rgba(6, 8, 13, .5) 38%, rgba(6, 8, 13, 0) 64%),
    linear-gradient(180deg, rgba(6, 8, 13, .55) 0%, rgba(6, 8, 13, 0) 18%, rgba(6, 8, 13, 0) 72%, var(--bg) 100%);
}
.inicio-grade { pointer-events: none; }
.inicio-copy { max-width: 660px; pointer-events: auto; }
@media (min-width: 1024px) {
  .tela-inicio { padding-top: calc(var(--header-h) + 36px); padding-bottom: 56px; }
  .inicio-copy { max-width: 720px; }
  .tela-inicio h1 { font-size: clamp(3.5rem, 1.6rem + 3.4vw, 4.75rem); }
  .inicio-precisa { max-width: 700px; padding: 20px 22px 22px; }
  .precisa-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .precisa-lista li { flex-direction: column; gap: 12px; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 26px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(15, 20, 32, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13.5px;
  font-weight: 450;
  line-height: 1.3;
  color: #cdd5e6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #7cf5c8;
  box-shadow: 0 0 10px rgba(124, 245, 200, .8);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(124, 245, 200, .7);
  animation: ping 2.2s var(--ease-out) infinite;
}

.tela-inicio h1 {
  font-size: clamp(2.375rem, 1.3rem + 4.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.tela-inicio h1 em,
.titulo-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-right: .04em;
}
.tela-inicio h1 em { display: block; }
.inicio-lead {
  max-width: 560px;
  margin-top: 22px;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: #a9b2c6;
}
.inicio-tipo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-top: 24px;
  padding: 6px 16px 6px 6px;
  border: 1px solid rgba(111, 140, 255, .45);
  border-radius: 999px;
  background: rgba(66, 85, 255, .12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 14.5px;
  color: #dfe7ff;
  line-height: 1.35;
}
.inicio-tipo .icone-tile { width: 34px; height: 34px; border-radius: 999px; }
.inicio-tipo .icone-tile .icon { width: 17px; height: 17px; }
.inicio-tipo strong { color: #fff; font-weight: 600; }

.inicio-precisa {
  margin-top: 30px;
  padding: 22px 22px 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 40%),
    rgba(15, 20, 32, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.precisa-lista { display: grid; gap: 16px; margin-top: 16px; }
.precisa-lista li { display: flex; align-items: flex-start; gap: 14px; }
.precisa-lista .icone-tile { width: 40px; height: 40px; border-radius: 12px; }
.precisa-lista .icone-tile .icon { width: 19px; height: 19px; }
.precisa-txt { display: grid; gap: 2px; min-width: 0; padding-top: 1px; }
.precisa-txt strong { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.precisa-txt span { font-size: 14px; line-height: 1.5; color: var(--muted); }

.inicio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}
.inicio-meta li { display: inline-flex; align-items: center; gap: 8px; }
.inicio-meta .icon { width: 16px; height: 16px; color: var(--ice); }
.inicio-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
html:not(.js) .inicio-acoes .btn-primary,
html:not(.js) .inicio-meta { display: none; }

.inicio-copy > * { animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 100ms); }

/* Retomar rascunho */
.retomar {
  --angle: 0deg;
  position: relative;
  margin-top: 30px;
  padding: 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(66, 85, 255, .2), transparent 60%) padding-box,
    linear-gradient(180deg, #111829, #0b0f19) padding-box,
    conic-gradient(from var(--angle), rgba(255, 255, 255, .1) 0deg, rgba(255, 255, 255, .1) 200deg, #4255ff 260deg, #b9d4ff 300deg, #6f8cff 330deg, rgba(255, 255, 255, .1) 360deg) border-box;
  animation: spin 9s linear infinite, rise .8s var(--ease-out) both;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.retomar-cabeca { display: flex; align-items: flex-start; gap: 14px; }
.retomar h2 { font-size: 19px; letter-spacing: -.02em; line-height: 1.3; }
.retomar-txt { margin-top: 4px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.retomar-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.retomar-acoes .btn-ghost.is-confirmar { border-color: rgba(248, 113, 113, .55); color: #fecaca; background: rgba(248, 113, 113, .08); }

@media (max-width: 767.98px) {
  .tela-inicio { justify-content: flex-start; padding: calc(var(--header-h) + 32px) 0 56px; }
  .hero-shade {
    background: linear-gradient(180deg, rgba(6, 8, 13, .35) 0%, rgba(6, 8, 13, .12) 26%, rgba(6, 8, 13, .4) 60%, var(--bg) 100%);
  }
  .hero-bg {
    background:
      radial-gradient(80% 32% at 82% 14%, rgba(66, 85, 255, .36), transparent 72%),
      radial-gradient(50% 24% at 96% 44%, rgba(111, 140, 255, .16), transparent 72%),
      radial-gradient(70% 30% at 0% 100%, rgba(66, 85, 255, .12), transparent 72%),
      var(--bg);
  }
  .hero-orb { left: 70%; top: 18%; width: 78vw; }
  .hero-orb i:nth-child(1) { opacity: .55; }
  .pill { font-size: 12.5px; margin-bottom: 22px; }
  .inicio-copy { display: flex; flex-direction: column; }
  .inicio-copy > .pill, .inicio-copy > .inicio-tipo { align-self: flex-start; }
  .inicio-copy > .inicio-meta { order: 1; margin-top: 22px; }
  .inicio-copy > .inicio-acoes, .inicio-copy > .retomar { order: 2; margin-top: 22px; }
  .inicio-copy > .inicio-precisa { order: 3; margin-top: 32px; }
  .inicio-precisa { padding: 18px 16px 20px; }
  .inicio-acoes .btn { flex: 1 1 100%; }
  .retomar-acoes .btn { flex: 1 1 100%; }
}
@media (max-width: 399.98px) {
  .btn-xl { height: 56px; padding: 0 20px; font-size: 16px; }
  .inicio-meta { gap: 8px 16px; font-size: 13.5px; }
}

/* ---------- Tela do formulário ---------- */
/* z-index: a barra fixa de navegação fica dentro do painel (que isola o empilhamento) e precisa passar por cima do rodapé */
.tela-form {
  z-index: 2;
  padding: calc(var(--header-h) + 36px) 0 72px;
  min-height: 100svh;
}
.form-fundo {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(50% 40% at 85% 0%, rgba(66, 85, 255, .16), transparent 70%),
    radial-gradient(40% 30% at 0% 30%, rgba(66, 85, 255, .07), transparent 70%);
}
.form-fundo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(80% 50% at 60% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(80% 50% at 60% 0%, #000 10%, transparent 75%);
}
.form-grade { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) {
  .form-grade { grid-template-columns: 288px minmax(0, 1fr); gap: 40px; }
}
@media (min-width: 1280px) {
  .form-grade { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; width: min(1180px, 100% - 2 * var(--gutter)); }
}

/* Faixa de etapa no celular */
.faixa { display: none; }

/* Trilha de etapas */
.trilha { display: none; }
.trilha-cabeca { padding: 6px 4px 22px; }
.trilha-cabeca-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trilha-fechar {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  cursor: pointer;
  place-items: center;
}
.trilha-fechar .icon { width: 18px; height: 18px; }
.trilha-pos { margin-top: 12px; font-size: 14px; color: var(--muted); }
.trilha-pos strong { color: var(--text); font-weight: 600; }
.trilha-barra {
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, .07);
}
.trilha-barra span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(111, 140, 255, .7);
  transition: width .6s var(--ease-out);
}
.trilha-lista { display: grid; gap: 4px; }
.trilha-item { position: relative; }
.trilha-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 48px;
  bottom: -8px;
  width: 1px;
  background: var(--line-2);
  transition: background-color .4s;
}
.trilha-item.is-feita:not(:last-child)::after { background: linear-gradient(180deg, rgba(111, 140, 255, .7), rgba(111, 140, 255, .25)); }
.trilha-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  padding: 6px 12px 6px 6px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: none;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
button.trilha-btn:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
span.trilha-btn { cursor: default; }
.trilha-no {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg-2);
  color: #7f889e;
  transition: color .3s, background-color .3s, border-color .3s, box-shadow .3s;
}
.trilha-no .icon { width: 18px; height: 18px; }
.trilha-txt { display: grid; min-width: 0; line-height: 1.3; }
.trilha-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: #7f889e; }
.trilha-titulo { font-size: 14.5px; font-weight: 500; letter-spacing: -.005em; }
.trilha-selo {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}
.trilha-selo .icon { width: 10px; height: 10px; stroke-width: 3; }
.trilha-selo--pendente { background: #f59e0b; }
.is-feita .trilha-no { color: var(--ice); border-color: rgba(111, 140, 255, .4); background: rgba(66, 85, 255, .1); }
.is-feita .trilha-btn, .is-pendente .trilha-btn { color: #c3cbe0; }
.is-atual .trilha-btn { color: var(--text); background: rgba(255, 255, 255, .045); border-color: var(--line); }
.is-atual .trilha-no {
  color: #fff;
  border-color: rgba(185, 212, 255, .55);
  background: linear-gradient(180deg, #4a5cff, #2f3fd9);
  box-shadow: 0 0 0 4px rgba(66, 85, 255, .16), 0 8px 24px -6px rgba(66, 85, 255, .85);
}
.is-atual .trilha-num { color: var(--ice); }
.is-futura .trilha-titulo { color: #7f889e; }
.trilha-ajuda {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .02);
  font-size: 14px;
  color: var(--muted);
}
.trilha-ajuda a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 4px;
  color: var(--ice);
  font-weight: 500;
}
.trilha-ajuda a:hover { color: #fff; }
.trilha-ajuda .icon { width: 17px; height: 17px; }

@media (min-width: 1024px) {
  .trilha {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 32px);
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .trilha::-webkit-scrollbar { display: none; }
}

@media (max-width: 1023.98px) {
  :root { --faixa-h: 52px; }
  .tela-form { padding-top: var(--header-h); padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .faixa {
    position: sticky;
    top: var(--header-h);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: var(--faixa-h);
    margin: 0 0 24px;
    padding: 8px var(--gutter);
    border: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 11, 18, .82);
    -webkit-backdrop-filter: saturate(170%) blur(18px);
    backdrop-filter: saturate(170%) blur(18px);
    color: var(--text);
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
  }
  .faixa-txt { min-width: 0; }
  .faixa-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ice); }
  .faixa-sep { color: var(--muted); }
  .faixa-titulo { font-weight: 500; }
}
@media (max-width: 479.98px) {
  .faixa-txt { display: grid; gap: 1px; }
  .faixa-sep { display: none; }
  .faixa-num { font-size: 11px; }
}
@media (max-width: 1023.98px) {
  .faixa-acao {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    height: 34px;
    padding: 0 10px 0 12px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    font-size: 13px;
    color: #cfd6e6;
  }
  .faixa-acao .icon { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
  .faixa[aria-expanded="true"] .faixa-acao .icon { transform: rotate(180deg); }

  .trilha.is-aberta {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 45;
    display: block;
    padding: 18px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background:
      radial-gradient(80% 40% at 100% 0%, rgba(66, 85, 255, .18), transparent 70%),
      #06080d;
    animation: rise-curto .35s var(--ease-out) both;
  }
  .trilha-fechar { display: grid; }
}

/* Painel principal */
.painel {
  min-width: 0;
  padding: clamp(24px, 3.6vw, 52px);
  background:
    radial-gradient(70% 40% at 0% 0%, rgba(66, 85, 255, .07), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 160px),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 40px 120px -40px rgba(0, 0, 0, .85);
}
.painel:hover { border-color: var(--line); }
.painel > .palco { position: relative; z-index: 1; }
@media (max-width: 639.98px) {
  .painel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .painel::before, .painel::after { display: none; }
}

/* Cabeça da etapa */
.etapa-cabeca { display: flex; align-items: center; gap: 16px; }
.etapa-cabeca .icone-tile { width: 52px; height: 52px; border-radius: 15px; }
.etapa-cabeca .icone-tile .icon { width: 24px; height: 24px; }
.etapa-titulos { display: grid; gap: 6px; min-width: 0; }
.etapa-num { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); }
.etapa h2 {
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem);
  letter-spacing: -.035em;
  line-height: 1.1;
}
.etapa h2:focus { outline: none; }
.etapa h2:focus-visible { outline: 2px solid var(--ice); outline-offset: 6px; }
.etapa-sub {
  max-width: 62ch;
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
}
.etapa-aviso {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(111, 140, 255, .35);
  border-radius: 14px;
  background: rgba(66, 85, 255, .08);
  font-size: 14.5px;
  color: #dfe7ff;
  line-height: 1.5;
}
.etapa-aviso .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--ice); }
.etapa-divisor {
  height: 1px;
  margin: 30px 0 32px;
  background: linear-gradient(90deg, var(--line-2), rgba(255, 255, 255, .02));
}
@media (max-width: 639.98px) {
  .etapa-cabeca { gap: 14px; }
  .etapa-cabeca .icone-tile { width: 46px; height: 46px; border-radius: 13px; }
  .etapa-cabeca .icone-tile .icon { width: 22px; height: 22px; }
  .etapa-num { display: none; }
  .etapa-sub { font-size: 15.5px; margin-top: 14px; }
  .etapa-divisor { margin: 24px 0 28px; }
}

/* ---------- Campos ---------- */
.campos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
@media (min-width: 640px) {
  .campos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .campo { grid-column: 1 / -1; }
  .campo--meia { grid-column: auto; }
}
.campo { min-width: 0; }
.campo.is-entrando { animation: rise-curto .45s var(--ease-out) both; }

.rotulo {
  display: block;
  margin-bottom: 10px;
  font-size: 15.5px;
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -.005em;
  color: var(--text);
}
legend.rotulo { float: left; width: 100%; }
legend.rotulo + * { clear: both; }
.opcional { font-size: 13px; font-weight: 450; color: var(--muted); white-space: nowrap; }
.ajuda {
  margin: -4px 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.campo-erro {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--err);
}
.campo-erro .icon { width: 16px; height: 16px; margin-top: 2px; }
.campo.tem-erro .campo-erro { animation: tremer .35s var(--ease); }

/* Entrada de texto */
.entrada {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--field);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.entrada::placeholder { color: #747d93; opacity: 1; }
.entrada:hover { border-color: rgba(255, 255, 255, .22); }
.entrada:focus {
  outline: none;
  border-color: rgba(111, 140, 255, .95);
  background: #0c1120;
  box-shadow: 0 0 0 4px rgba(66, 85, 255, .22);
}
.tem-erro .entrada,
.entrada[aria-invalid="true"] { border-color: rgba(248, 113, 113, .7); }
.tem-erro .entrada:focus,
.entrada[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(248, 113, 113, .16); }
textarea.entrada { min-height: 120px; resize: vertical; }
input[type="date"].entrada { color-scheme: dark; max-width: 280px; }
input[type="date"].entrada::-webkit-calendar-picker-indicator { filter: invert(.8); cursor: pointer; }
.entrada-icone { position: relative; min-width: 0; }
.entrada-icone > .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
  transition: color .2s;
}
.entrada-icone:focus-within > .icon { color: var(--ice); }
.entrada-icone .entrada { padding-left: 46px; }
.contador-linha { display: flex; justify-content: flex-end; margin-top: 8px; }
.contador { font-family: var(--font-mono); font-size: 12px; color: #7f889e; }
.contador.is-perto { color: var(--warn); }

/* Controles escondidos (rádio e caixa nativos, acessíveis) */
.ctrl {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

/* Pílulas (escolha única) */
.pilulas { display: flex; flex-wrap: wrap; gap: 10px; }
.pilula, .chip { position: relative; display: inline-flex; max-width: 100%; }
.pilula-face, .chip-face {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  max-width: 100%;
  padding: 11px 18px 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: 15px;
  line-height: 1.35;
  color: #cfd6e6;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, background-color .2s, color .2s, box-shadow .3s var(--ease-out), transform .2s var(--ease-out);
}
.pilula-face:hover, .chip-face:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); color: #fff; }
.pilula-face:active, .chip-face:active { transform: scale(.98); }
.pilula-marca {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
  border: 1.5px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  transition: border-color .2s, background-color .2s;
}
.pilula-marca::after {
  content: "";
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform .25s var(--ease-out);
}
.ctrl:checked + .pilula-face,
.ctrl:checked + .chip-face {
  color: #fff;
  border-color: rgba(111, 140, 255, .85);
  background: rgba(66, 85, 255, .18);
  box-shadow: 0 0 0 1px rgba(66, 85, 255, .3), 0 10px 26px -14px rgba(66, 85, 255, .95);
}
.ctrl:checked + .pilula-face .pilula-marca { border-color: transparent; background: var(--blue); box-shadow: 0 0 0 1px rgba(185, 212, 255, .6); }
.ctrl:checked + .pilula-face .pilula-marca::after { transform: scale(1); }
.ctrl:focus-visible + .pilula-face,
.ctrl:focus-visible + .chip-face,
.ctrl:focus-visible + .opcao-face,
.ctrl:focus-visible + .passo-face,
.ctrl:focus-visible + .sn-face,
.ctrl:focus-visible + .caixa { outline: 2px solid var(--ice); outline-offset: 3px; }
.ctrl:disabled + .chip-face,
.ctrl:disabled + .opcao-face { opacity: .42; cursor: not-allowed; }

/* Chips (várias escolhas) */
.chips-grupo { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-face { border-radius: 14px; padding-left: 12px; }
.caixa {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border: 1.5px solid rgba(255, 255, 255, .3);
  border-radius: 6px;
  background: rgba(0, 0, 0, .15);
  color: #fff;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.caixa .icon { width: 13px; height: 13px; stroke-width: 3; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s var(--ease-out); }
.ctrl:checked + .chip-face .caixa,
.ctrl:checked + .caixa {
  border-color: transparent;
  background: var(--blue);
  box-shadow: 0 0 0 1px rgba(185, 212, 255, .55), 0 4px 12px -2px rgba(66, 85, 255, .8);
}
.ctrl:checked + .chip-face .caixa .icon,
.ctrl:checked + .caixa .icon { opacity: 1; transform: none; }
.limite { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.limite.is-cheio { color: var(--ice); }
.outro-caixa { margin-top: 14px; max-width: 520px; }
.outro-caixa .rotulo { font-size: 14.5px; margin-bottom: 8px; }

/* Cartões de opção */
.cartoes {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}
@media (min-width: 640px) {
  .cartoes--duas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cartoes--compacto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr)); gap: 10px; }
@media (max-width: 379.98px) {
  .cartoes--compacto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.opcao { position: relative; display: flex; min-width: 0; }
.opcao-face {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #141a27, #10151f) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07)) border-box;
  border-color: transparent;
  cursor: pointer;
  user-select: none;
  transition: transform .3s var(--ease-out), box-shadow .35s var(--ease-out), background .3s;
}
.opcao-face:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, #172032, #121826) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .1)) border-box;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
}
.opcao-face:active { transform: translateY(0) scale(.99); }
.opcao-icone {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  background: rgba(255, 255, 255, .04);
  color: #aab4ca;
  transition: color .25s, background .25s, border-color .25s, box-shadow .3s;
}
.opcao-icone .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.opcao-corpo { display: grid; gap: 5px; min-width: 0; padding-right: 22px; }
.opcao-titulo { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--text); }
.opcao-desc { font-size: 14px; line-height: 1.5; color: var(--muted); }
.opcao-check {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #fff;
  transition: background .25s, border-color .25s, box-shadow .3s;
}
.opcao--multi .opcao-check { border-radius: 7px; }
.opcao-check .icon { width: 13px; height: 13px; stroke-width: 3; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s var(--ease-out); }
.ctrl:checked + .opcao-face {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(66, 85, 255, .2), transparent 60%) padding-box,
    linear-gradient(180deg, #141b2e, #10162a) padding-box,
    var(--grad) border-box;
  box-shadow: 0 0 0 1px rgba(66, 85, 255, .18), 0 18px 44px -22px rgba(66, 85, 255, .9);
}
.ctrl:checked + .opcao-face .opcao-icone {
  color: #fff;
  border-color: rgba(185, 212, 255, .5);
  background: linear-gradient(180deg, #4a5cff, #2f3fd9);
  box-shadow: 0 8px 22px -8px rgba(66, 85, 255, .9);
}
.ctrl:checked + .opcao-face .opcao-check {
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 4px 14px -2px rgba(66, 85, 255, .8);
}
.ctrl:checked + .opcao-face .opcao-check .icon { opacity: 1; transform: none; }
.cartoes--compacto .opcao-face { gap: 12px; padding: 14px; border-radius: 16px; }
.cartoes--compacto .opcao-icone { width: 38px; height: 38px; border-radius: 11px; }
.cartoes--compacto .opcao-icone .icon { width: 19px; height: 19px; }
.cartoes--compacto .opcao-corpo { padding-right: 0; }
.cartoes--compacto .opcao-titulo { font-size: 14.5px; font-weight: 550; }
.cartoes--compacto .opcao-check { top: 14px; right: 14px; width: 20px; height: 20px; }
@media (max-width: 559.98px) {
  .cartoes:not(.cartoes--compacto) { gap: 10px; }
  .cartoes:not(.cartoes--compacto) .opcao-face { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px 16px 16px 14px; border-radius: 16px; }
  .cartoes:not(.cartoes--compacto) .opcao-icone { width: 40px; height: 40px; border-radius: 12px; flex: none; }
  .cartoes:not(.cartoes--compacto) .opcao-icone .icon { width: 20px; height: 20px; }
  .cartoes:not(.cartoes--compacto) .opcao-corpo { padding-right: 28px; padding-top: 1px; gap: 3px; }
  .cartoes:not(.cartoes--compacto) .opcao-titulo { font-size: 15.5px; }
  .cartoes:not(.cartoes--compacto) .opcao-desc { font-size: 14px; }
  .opcao-check { top: 16px; right: 14px; }
}

/* Cores */
.cores-lista { display: flex; flex-wrap: wrap; gap: 10px; }
.cor {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--field);
  transition: border-color .2s, box-shadow .2s;
  animation: rise-curto .35s var(--ease-out) both;
}
.cor:focus-within { border-color: rgba(111, 140, 255, .9); box-shadow: 0 0 0 4px rgba(66, 85, 255, .18); }
.cor.tem-erro-cor { border-color: rgba(248, 113, 113, .7); }
.cor-seletor {
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.cor-seletor::-webkit-color-swatch-wrapper { padding: 0; }
.cor-seletor::-webkit-color-swatch { border: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.cor-seletor::-moz-color-swatch { border: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.cor-seletor:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; border-radius: 50%; }
.cor-hex {
  width: 9ch;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--text);
}
.cor-hex:focus { outline: none; }
.cor .btn-icone { border-radius: 50%; width: 44px; height: 44px; }
.cores-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 14px; }
.cores-nota { margin-top: 12px; font-size: 14px; color: var(--muted); }

.check-linha {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  position: relative;
  font-size: 15px;
  color: #cfd6e6;
  cursor: pointer;
  user-select: none;
}
.check-linha:hover .caixa { border-color: rgba(255, 255, 255, .5); }

/* Escala */
.escala-corpo {
  display: grid;
  grid-template-columns: minmax(0, 112px) auto minmax(0, 112px);
  justify-content: start;
  align-items: center;
  gap: 16px;
}
.escala-polo { font-size: 14.5px; font-weight: 500; color: #c3cbe0; line-height: 1.35; }
.escala-polo--a { text-align: right; }
.escala-passos { position: relative; display: flex; gap: 14px; }
.escala-passos::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(111, 140, 255, .55), rgba(185, 212, 255, .55));
}
.passo { position: relative; display: inline-flex; }
.passo-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s, background .25s, color .2s, box-shadow .3s, transform .3s var(--ease-out);
}
.passo-face:hover { border-color: rgba(185, 212, 255, .5); color: #fff; transform: scale(1.06); }
.ctrl:checked + .passo-face {
  color: #fff;
  border-color: rgba(185, 212, 255, .7);
  background: linear-gradient(180deg, #5567ff, #3443e6);
  box-shadow: 0 0 0 5px rgba(66, 85, 255, .16), 0 8px 24px -6px rgba(66, 85, 255, .9);
  transform: scale(1.08);
}
.escala-leitura { margin-top: 12px; padding-left: 128px; font-size: 13.5px; color: var(--muted); }
.escala-leitura strong { color: var(--ice); font-weight: 500; }
@media (max-width: 559.98px) {
  .escala-corpo { grid-template-columns: 1fr 1fr; gap: 12px; }
  .escala-passos { grid-column: 1 / -1; grid-row: 1; justify-content: space-between; gap: 0; }
  .escala-polo { grid-row: 2; font-size: 14px; }
  .escala-polo--a { text-align: left; }
  .escala-polo--b { text-align: right; }
  .escala-leitura { padding-left: 0; }
}

/* Links */
.links-lista { display: grid; gap: 12px; }
.link-linha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 14px 10px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .02);
  animation: rise-curto .35s var(--ease-out) both;
}
.link-campos { display: grid; gap: 12px; min-width: 0; }
.mini-rotulo { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: #aab3c7; }
.link-linha .btn-icone { margin-top: 26px; }
@media (min-width: 768px) {
  .link-campos { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}
.links-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 12px; }
.links-conta { font-size: 13.5px; color: var(--muted); }

/* Drive */
.drive-linha { display: flex; gap: 10px; align-items: stretch; }
.drive-linha .entrada-icone { flex: 1; }
.drive-linha .btn { height: 52px; flex: none; }
@media (max-width: 559.98px) {
  .drive-linha { flex-direction: column; }
  .drive-linha .btn { width: 100%; }
}
.drive-rodape { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.selo {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 100%;
  padding: 9px 14px 9px 11px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  font-size: 14px;
  line-height: 1.45;
  color: #c3cbe0;
  animation: rise-curto .35s var(--ease-out) both;
}
.selo .icon { width: 17px; height: 17px; margin-top: 1px; }
.selo .spinner { display: inline-block; width: 15px; height: 15px; margin-top: 2px; border-color: rgba(185, 212, 255, .25); border-top-color: var(--ice); }
.selo--publico { border-color: rgba(110, 231, 183, .35); background: rgba(16, 185, 129, .08); color: #c9f7e4; }
.selo--publico .icon { color: var(--ok); }
.selo--restrito, .selo--invalido { border-color: rgba(252, 211, 77, .38); background: rgba(245, 158, 11, .08); color: #fde9b0; }
.selo--restrito .icon, .selo--invalido .icon { color: var(--warn); }
.link-abrir {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ice);
  transition: color .2s;
}
.link-abrir:hover { color: #fff; }
.link-abrir .icon { width: 16px; height: 16px; }

.guia {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .02);
  transition: border-color .25s, background-color .25s;
}
.guia[open] { border-color: rgba(111, 140, 255, .3); background: rgba(66, 85, 255, .04); }
.guia summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 16px;
  border-radius: 18px;
  list-style: none;
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
}
.guia summary::-webkit-details-marker { display: none; }
.guia summary > .icon { width: 19px; height: 19px; color: var(--ice); }
.guia summary .guia-seta { margin-left: auto; color: var(--muted); transition: transform .3s var(--ease-out); }
.guia[open] summary .guia-seta { transform: rotate(180deg); }
.guia-passos { display: grid; gap: 14px; padding: 2px 18px 20px; counter-reset: passo; }
.guia-passos li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.55;
  color: #c3cbe0;
}
.guia-passos li::before {
  counter-increment: passo;
  content: counter(passo);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(111, 140, 255, .45);
  border-radius: 50%;
  background: rgba(66, 85, 255, .12);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ice);
}
.guia-passos li span { padding-top: 3px; }

/* Sim ou não */
.simnao { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 440px; }
.sn { position: relative; display: flex; }
.sn-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  font-size: 16px;
  font-weight: 550;
  color: #cfd6e6;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, background .25s, color .2s, box-shadow .3s, transform .2s var(--ease-out);
}
.sn-face:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); color: #fff; }
.sn-face:active { transform: scale(.98); }
.sn-face .icon { width: 19px; height: 19px; color: var(--muted); transition: color .2s; }
.ctrl:checked + .sn-face {
  color: #fff;
  border-color: transparent;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(66, 85, 255, .22), transparent 60%) padding-box,
    linear-gradient(180deg, #141b2e, #10162a) padding-box,
    var(--grad) border-box;
  box-shadow: 0 14px 34px -20px rgba(66, 85, 255, .95);
}
.ctrl:checked + .sn-face .icon { color: var(--ice); }
.sn-detalhe { margin-top: 16px; animation: rise-curto .4s var(--ease-out) both; }
.sn-detalhe .rotulo { font-size: 14.5px; margin-bottom: 8px; }

/* Aviso */
.aviso {
  --av: #6f8cff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px 16px 16px;
  border: 1px solid color-mix(in srgb, var(--av) 34%, transparent);
  border-radius: 18px;
  background:
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--av) 12%, transparent), transparent 65%),
    color-mix(in srgb, var(--av) 4%, transparent);
}
.aviso--dica { --av: #2dd4bf; }
.aviso--atencao { --av: #fbbf24; }
.aviso-icone {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--av) 40%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--av) 12%, transparent);
  color: color-mix(in srgb, var(--av) 55%, #fff 45%);
}
.aviso-icone .icon { width: 19px; height: 19px; }
.aviso-corpo { display: grid; gap: 4px; padding-top: 1px; }
.aviso-titulo { font-size: 15px; font-weight: 600; letter-spacing: -.005em; color: #fff; }
.aviso-texto { font-size: 14.5px; line-height: 1.55; color: #c3cbe0; }
.aviso a, .consent-txt a { color: var(--ice); text-decoration: underline; text-decoration-color: rgba(185, 212, 255, .45); text-underline-offset: 3px; }
.aviso a:hover, .consent-txt a:hover { color: #fff; text-decoration-color: #fff; }

/* Consentimento */
.consent {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 20px 18px 18px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.consent:hover { border-color: rgba(255, 255, 255, .24); }
.consent .caixa { width: 26px; height: 26px; border-radius: 8px; }
.consent .caixa .icon { width: 15px; height: 15px; }
.consent-txt { font-size: 15px; line-height: 1.55; color: #d5dcea; padding-top: 2px; }
.consent:has(.ctrl:checked) { border-color: rgba(111, 140, 255, .55); background: rgba(66, 85, 255, .07); }
.tem-erro .consent { border-color: rgba(248, 113, 113, .6); }

/* ---------- Navegação entre etapas ---------- */
.navegacao {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.nav-avancar { margin-left: auto; min-width: 168px; }
.nav-voltar[hidden] + .nav-avancar { margin-left: auto; }
@media (max-width: 1023.98px) {
  .navegacao {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    margin: 0;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(8, 11, 18, .86);
    -webkit-backdrop-filter: saturate(170%) blur(18px);
    backdrop-filter: saturate(170%) blur(18px);
    box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, .8);
  }
  .nav-voltar { flex: none; padding: 0 18px; }
  .nav-avancar { flex: 1; min-width: 0; }
  .em-form .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  /* A rolagem até um erro para acima da barra fixa de Voltar e Continuar. */
  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
  .navegacao { justify-content: center; }
  .nav-avancar { flex: 0 1 360px; }
}
@media (max-width: 379.98px) {
  .nav-voltar span { display: none; }
  .nav-voltar { width: 52px; padding: 0; }
}

/* ---------- Revisão ---------- */
.revisao { display: grid; gap: 14px; }
.rev-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .02);
  overflow: hidden;
  transition: border-color .25s;
}
.rev-card:hover { border-color: var(--line-2); }
.rev-card--falta { border-color: rgba(252, 211, 77, .35); }
.rev-cabeca {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
}
.rev-cabeca .icone-tile { width: 38px; height: 38px; border-radius: 11px; box-shadow: none; }
.rev-cabeca .icone-tile .icon { width: 18px; height: 18px; }
.rev-titulos { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.rev-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #7f889e; }
.rev-titulo { font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.rev-editar { flex: none; height: 44px; }
.rev-lista { margin: 0; padding: 4px 18px 12px; }
.rev-item { display: grid; gap: 2px 24px; padding: 12px 0; }
.rev-item + .rev-item { border-top: 1px dashed rgba(255, 255, 255, .07); }
.rev-item dt { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.rev-item dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); white-space: pre-line; }
@media (min-width: 768px) {
  .rev-item { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}
.rev-cores { display: flex; flex-wrap: wrap; gap: 8px 14px; white-space: normal; }
.rev-cor { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13.5px; }
.rev-cor i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.rev-falta {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 18px 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(245, 158, 11, .08);
  font-size: 14px;
  line-height: 1.45;
  color: #fde9b0;
}
.rev-falta .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--warn); }
.rev-vazio { padding: 14px 18px 16px; font-size: 14px; color: var(--muted); }
.rev-final { margin-top: 34px; }
.rev-final-titulo { margin-bottom: 14px; font-size: 18px; letter-spacing: -.02em; }
@media (max-width: 379.98px) {
  .rev-editar span { display: none; }
  .rev-editar { width: 44px; padding: 0; }
}

/* Erro no envio */
.envio-status:empty { display: none; }
.envio-status { margin-top: 24px; }
.envio-erro {
  padding: 20px;
  border: 1px solid rgba(248, 113, 113, .42);
  border-radius: 20px;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(248, 113, 113, .1), transparent 60%),
    rgba(248, 113, 113, .04);
  animation: rise-curto .4s var(--ease-out) both;
}
.envio-erro:focus { outline: none; }
.envio-erro-cabeca { display: flex; align-items: flex-start; gap: 12px; }
.envio-erro-cabeca .icon { width: 22px; height: 22px; color: var(--err); flex: none; margin-top: 1px; }
.envio-erro-titulo { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.envio-erro-texto { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: #e3c9c9; }
.envio-erro-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.envio-erro textarea { margin-top: 14px; min-height: 160px; font-size: 13.5px; font-family: var(--font-mono); }
@media (max-width: 559.98px) {
  .envio-erro { padding: 18px 16px; }
  .envio-erro-acoes .btn { flex: 1 1 100%; }
}

/* ---------- Sucesso ---------- */
.tela-sucesso {
  isolation: isolate;
  overflow: hidden;
  min-height: min(100svh, 1100px);
  padding: calc(var(--header-h) + 56px) 0 88px;
}
.sucesso-fundo {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 36% at 50% 8%, rgba(66, 85, 255, .3), transparent 72%),
    radial-gradient(30% 30% at 80% 30%, rgba(185, 212, 255, .08), transparent 72%);
}
.sucesso-fundo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(50% 45% at 50% 10%, #000, transparent 80%);
  mask-image: radial-gradient(50% 45% at 50% 10%, #000, transparent 80%);
}
.sucesso { max-width: 760px; margin: 0 auto; text-align: center; }
.sucesso-selo {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8ea0ff, #4255ff 58%, #2a37c4);
  box-shadow: 0 0 0 10px rgba(66, 85, 255, .1), 0 0 0 22px rgba(66, 85, 255, .05), 0 0 70px rgba(66, 85, 255, .65);
  animation: selo .8s var(--ease-out) both;
}
.sucesso-selo .icon { width: 40px; height: 40px; color: #fff; stroke-width: 2.4; }
.sucesso-selo .icon use { stroke-dasharray: 24; stroke-dashoffset: 24; animation: tracar .6s var(--ease-out) .35s forwards; }
.sucesso .eyebrow { justify-content: center; }
.sucesso .eyebrow::after { content: ""; width: 18px; height: 1px; background: linear-gradient(270deg, #4255ff, #b9d4ff); }
.sucesso h1 {
  margin-top: 18px;
  font-size: clamp(2.125rem, 1.2rem + 3.4vw, 3.75rem);
  letter-spacing: -.045em;
  line-height: 1.04;
}
.sucesso h1:focus { outline: none; }
.sucesso h1 em { display: block; }
.sucesso-lead { max-width: 560px; margin: 20px auto 0; font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); }
.protocolo {
  --angle: 0deg;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 34px;
  padding: 22px clamp(18px, 4vw, 34px) 20px;
  border: 1px solid transparent;
  border-radius: 24px;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(66, 85, 255, .2), transparent 70%) padding-box,
    linear-gradient(180deg, #111829, #0a0e18) padding-box,
    conic-gradient(from var(--angle), rgba(255, 255, 255, .1) 0deg, rgba(255, 255, 255, .1) 200deg, #4255ff 260deg, #b9d4ff 300deg, #6f8cff 330deg, rgba(255, 255, 255, .1) 360deg) border-box;
  animation: spin 9s linear infinite;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
}
.protocolo-rotulo { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.protocolo-valor {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, .55rem + 3.4vw, 2.375rem);
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.15;
  white-space: nowrap;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.protocolo .btn { margin-top: 6px; }
.proximos {
  max-width: 600px;
  margin: 44px auto 0;
  padding: 26px clamp(18px, 3vw, 30px);
  text-align: left;
}
.proximos h2 { font-size: 18px; letter-spacing: -.02em; }
.proximos ol { display: grid; gap: 18px; margin-top: 18px; counter-reset: prox; }
.proximos li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; }
.proximos li::before {
  counter-increment: prox;
  content: "0" counter(prox);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ice);
}
.proximos strong { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
.proximos li > div > span { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.sucesso-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
@media (max-width: 559.98px) {
  .tela-sucesso { padding-top: calc(var(--header-h) + 36px); }
  .sucesso-acoes .btn { flex: 1 1 100%; }
  .proximos { padding: 22px 16px; }
}

/* ---------- Rodapé (versão curta do site) ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}
.footer-grid { display: grid; gap: 24px; }
.footer-brand p { margin-top: 14px; max-width: 30ch; font-size: 15px; color: var(--muted); }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-mail, .footer-whats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  color: #b5bdcf;
  overflow-wrap: anywhere;
  transition: color .2s;
}
.footer-whats .icon { width: 17px; height: 17px; }
.footer-mail:hover, .footer-whats:hover { color: #fff; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
  .footer-contact { align-items: flex-end; }
}
.privacidade {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .015);
}
.privacidade summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 16px;
  border-radius: 18px;
  list-style: none;
  font-size: 14.5px;
  font-weight: 500;
  color: #c3cbe0;
  cursor: pointer;
}
.privacidade summary::-webkit-details-marker { display: none; }
.privacidade summary > .icon { width: 17px; height: 17px; color: var(--ice); }
.privacidade-seta { margin-left: auto; color: var(--muted); transition: transform .3s var(--ease-out); }
.privacidade[open] .privacidade-seta { transform: rotate(180deg); }
.privacidade-corpo { display: grid; gap: 10px; padding: 0 18px 18px 45px; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 820px; }
.privacidade-corpo a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (max-width: 559.98px) {
  .privacidade-corpo { padding-left: 18px; }
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 28px;
  padding-block: 18px 22px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.footer-domain { font-family: var(--font-mono); font-size: 12.5px; }
.footer-cookies {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(141, 150, 171, .4);
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer-cookies:hover { color: var(--text); }

/* Preferências de cookies do script de medição: no celular, o botão flutuante sai da frente da barra de etapas
   (o mesmo controle fica no rodapé). */
@media (max-width: 1023.98px) {
  body.em-form > button[type="button"] { display: none !important; }
}

/* ---------- Armadilha para robôs ---------- */
.hp {
  position: absolute !important;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}
.hp * { width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; }

.noscript {
  position: relative;
  z-index: 60;
  width: min(720px, 100% - 2 * var(--gutter));
  margin: calc(var(--header-h) + 24px) auto 24px;
  padding: 20px;
  border: 1px solid rgba(252, 211, 77, .4);
  border-radius: 18px;
  background: #151b2a;
  display: grid;
  gap: 8px;
  font-size: 15px;
}
.noscript a { color: var(--ice); text-decoration: underline; }

.falha-carga { margin-top: 30px; }
.copia-temp { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* Folha de impressão: fica oculta na tela */
.impressao { display: none; }

/* ---------- Animações ---------- */
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes rise-curto {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes ping {
  0% { transform: scale(.6); opacity: .9; }
  80%, 100% { transform: scale(1.9); opacity: 0; }
}
@keyframes spin { to { --angle: 360deg; } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes tremer {
  0%, 100% { transform: none; }
  30% { transform: translateX(-3px); }
  60% { transform: translateX(2px); }
}
@keyframes pulso-ok {
  0% { transform: scale(.5); opacity: .2; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: none; }
}
@keyframes selo {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: none; }
}
@keyframes tracar { to { stroke-dashoffset: 0; } }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .inicio-copy > * { animation: none; }
  .retomar, .protocolo { animation: none; --angle: 300deg; }
  .pulse::after { display: none; }
  .sucesso-selo .icon use { stroke-dashoffset: 0; animation: none; }
  .btn { transform: none !important; }
}

@media (forced-colors: active) {
  .tela-inicio h1 em, .titulo-grad, .protocolo-valor { color: CanvasText; background: none; }
  .btn { border: 1px solid ButtonText; }
  .ctrl:checked + .pilula-face,
  .ctrl:checked + .chip-face,
  .ctrl:checked + .opcao-face,
  .ctrl:checked + .sn-face,
  .ctrl:checked + .passo-face { outline: 3px solid Highlight; }
}

/* ---------- Impressão: folha limpa só com o resumo ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  html, body { background: #fff !important; color: #111 !important; }
  body { font-size: 11pt; line-height: 1.45; overflow: visible; }
  body::after { display: none !important; }
  body > *:not(.impressao) { display: none !important; }
  .impressao { display: block !important; color: #111; font-family: var(--font-sans); }
  .imp-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 10pt; border-bottom: 1.5pt solid #111; }
  .imp-logo { font-size: 18pt; font-weight: 650; letter-spacing: -.04em; }
  .imp-logo span { color: #3443e6; }
  .imp-logo small { margin-left: 6pt; font-family: var(--font-mono); font-size: 7pt; letter-spacing: .22em; color: #555; }
  .imp-data { font-size: 9.5pt; color: #444; }
  .impressao h1 { margin: 16pt 0 4pt; font-size: 20pt; letter-spacing: -.02em; color: #111; }
  .imp-protocolo { font-size: 12pt; color: #222; }
  .imp-protocolo strong { font-family: var(--font-mono); font-size: 14pt; letter-spacing: .04em; color: #111; }
  .imp-etapa { margin-top: 14pt; break-inside: avoid-page; }
  .imp-etapa h2 { margin: 0 0 6pt; padding-bottom: 3pt; border-bottom: .75pt solid #bbb; font-size: 12.5pt; letter-spacing: -.01em; color: #111; }
  .imp-etapa dl { margin: 0; }
  .imp-etapa dl > div { display: grid; grid-template-columns: 38% 1fr; gap: 10pt; padding: 3.5pt 0; border-bottom: .5pt dotted #ccc; break-inside: avoid; }
  .imp-etapa dt { color: #555; font-size: 10pt; }
  .imp-etapa dd { margin: 0; color: #111; white-space: pre-line; overflow-wrap: anywhere; }
  .imp-rodape { margin-top: 18pt; padding-top: 8pt; border-top: .75pt solid #bbb; font-size: 9pt; color: #555; }
}
