/* =====================================================================
   Formulários CIMPOR — estilos partilhados por todos os formulários.
   O tema é escolhido com <html data-theme="cimpor|energy">.
   ===================================================================== */

/* ---------- Tokens (Manual de Normas Gráficas CIMPOR 2026) ---------- */
:root {
  --navy: #1B305B;          /* Pantone 295 C · RGB 27-48-91 */
  --navy-900: #122447;
  --navy-600: #2A4C86;
  --accent: #41BAAE;        /* cor de apoio (linhas e ícones do manual) */
  --accent-rgb: 65, 186, 174;
  --accent-ink: #122447;    /* texto sobre a cor de apoio */
  --ink: #1D2433;
  --muted: #5E6675;
  --line: #D8DDE6;
  --line-strong: #A9B3C5;
  --surface: #F3F5F8;
  --tint: #EDF1F7;
  --error: #C8243A;
  --white: #fff;
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* CIMPOR Energy: mesmo azul da marca-mãe, verde do logótipo ENERGY como cor de apoio */
[data-theme="energy"] {
  --accent: #05C167;
  --accent-rgb: 5, 193, 103;
  --accent-ink: #06281A;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; } /* sem zoom por duplo toque */
body {
  margin: 0;
  font-family: 'Barlow', Arial, Helvetica, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.splashing { background: var(--navy); }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(340px, 38%) 1fr;
}

/* Painel da marca (versão a negativo sobre fundo escuro) */
.brand {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 52px 56px 44px;
  color: var(--white);
  background: linear-gradient(140deg, var(--navy-600) 0%, var(--navy) 48%, var(--navy-900) 100%);
}
.brand__watermark {
  position: absolute;
  width: 155%;
  right: -62%;
  bottom: -14%;
  color: var(--white);
  opacity: .06;
  pointer-events: none;
}
.brand__logo { position: relative; width: 168px; height: auto; color: var(--white); display: block; }
[data-theme="energy"] .brand__logo { width: 216px; }
.topbar__home:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.brand__body { position: relative; margin: auto 0; padding: 48px 0; }
.brand__title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rule { display: block; width: 56px; height: 2px; margin: 28px 0 32px; background: var(--accent); }

.stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.stepper li {
  display: flex; align-items: center; gap: 14px;
  font-size: .98rem;
  color: rgba(255, 255, 255, .55);
  transition: color .25s;
}
.stepper__dot {
  flex: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  transition: background .25s, border-color .25s;
}
.stepper__dot svg { width: 14px; height: 14px; opacity: 0; transition: opacity .2s; }
.stepper li.is-active { color: var(--white); font-weight: 500; }
.stepper li.is-active .stepper__dot { border-color: var(--accent); box-shadow: inset 0 0 0 5px var(--navy), inset 0 0 0 12px var(--accent); }
.stepper li.is-done { color: rgba(255, 255, 255, .85); }
.stepper li.is-done .stepper__dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stepper li.is-done .stepper__dot svg { opacity: 1; }

.brand__foot { position: relative; display: grid; gap: 18px; }
.brand__site { margin: 0; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.panel__foot { display: none; }

/* Créditos */
.credit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.credit__mube { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; color: var(--navy); text-decoration: none; border-radius: 4px; transition: opacity .15s; }
.credit__mube:hover { opacity: .75; }
.credit__mube:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.credit__mube img { width: 24px; height: auto; display: block; }
.credit__bp { display: block; width: auto; height: 32px; filter: brightness(0); opacity: .72; }
.credit--dark { color: rgba(255, 255, 255, .6); }
.credit--dark .credit__mube { color: var(--white); }
.credit--dark .credit__bp { filter: none; opacity: 1; }

/* Painel do formulário */
.panel { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; min-width: 0; }
.chrome { position: sticky; top: 0; z-index: 10; background: var(--white); }
.topbar { display: none; }
.progress { height: 4px; background: var(--surface); }
.progress__bar { height: 100%; width: 0; background: var(--accent); transition: width .5s var(--ease); }
.panel__meta {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 1.5em;
  padding: 22px 56px 0;
  font-size: .88rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.menu-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; margin-left: -8px; border-radius: 6px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .15s, background .15s; }
.menu-link svg { width: 16px; height: 16px; }
.menu-link:hover { color: var(--navy); background: var(--surface); }
.menu-link:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .55); outline-offset: 2px; }

.form { flex: 1; display: flex; align-items: center; padding: 24px 56px 64px; }

/* ---------- Passos ---------- */
.step { width: 100%; max-width: 620px; margin: 0 auto; animation: stepIn .45s var(--ease) both; }
.step[data-dir="back"] { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 16px;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }

.step__context { margin: 0 0 8px; font-size: 1.05rem; color: var(--muted); }
.step__title {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  outline: none;
}
.step__lead { margin: 14px 0 0; font-size: 1.1rem; color: var(--muted); max-width: 52ch; }
.step__hint {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 14px 0 0;
  color: var(--muted);
}
.counter {
  flex: none;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: .85rem; font-weight: 600;
  background: var(--surface);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: background .2s, color .2s;
}
.counter.is-full { background: var(--navy); color: var(--white); }
.counter.is-flash { animation: flash .5s; }
@keyframes flash { 0%, 100% { transform: none; } 30% { transform: scale(1.12); } }

.step__body { margin-top: 30px; }

/* Opções (cartões) */
.options { display: grid; gap: 10px; }
.option {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 62px;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .1s, opacity .2s;
}
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.option:hover { border-color: var(--line-strong); background: var(--surface); }
.option:active { transform: scale(.993); }
.option:has(input:focus-visible) { outline: 3px solid rgba(var(--accent-rgb), .55); outline-offset: 2px; }
.option:has(input:checked) { border-color: var(--navy); background: var(--tint); box-shadow: inset 0 0 0 1px var(--navy); }
.option:has(input:disabled) { opacity: .42; cursor: not-allowed; }
.option:has(input:disabled):hover { background: var(--white); border-color: var(--line); }

.option__key {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-size: .82rem; font-weight: 600;
  color: var(--muted);
  background: var(--white);
  transition: background .15s, border-color .15s, color .15s;
}
.option:has(input:checked) .option__key { background: var(--navy); border-color: var(--navy); color: var(--white); }
.option__label { flex: 1; font-size: 1.06rem; font-weight: 500; line-height: 1.3; }
.option__check { flex: none; width: 22px; height: 22px; color: var(--navy); opacity: 0; transform: scale(.5); transition: opacity .18s, transform .25s var(--ease); }
.option:has(input:checked) .option__check { opacity: 1; transform: none; }

/* Escala numérica (ex.: 1 a 10) */
.scale { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.scale__item { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.scale__item input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.scale__item span {
  display: grid; place-items: center;
  height: 60px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 1.2rem; font-weight: 600;
  color: var(--navy); background: var(--white);
  font-variant-numeric: tabular-nums;
  user-select: none;
  transition: border-color .15s, background .15s, color .15s, transform .1s;
}
.scale__item:hover span { border-color: var(--line-strong); background: var(--surface); }
.scale__item:active span { transform: scale(.96); }
.scale__item input:focus-visible + span { outline: 3px solid rgba(var(--accent-rgb), .55); outline-offset: 2px; }
.scale__item input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--white); }
.scale__ends { display: flex; justify-content: space-between; gap: 16px; margin: 12px 0 0; font-size: .92rem; color: var(--muted); }

.other { padding: 2px 0 6px; animation: stepIn .3s var(--ease) both; }

/* Campos de texto */
.fields { display: grid; gap: 22px; }
.field__label { display: block; margin-bottom: 8px; font-size: .95rem; font-weight: 600; color: var(--navy); }
.field__label .optional { font-weight: 400; color: var(--muted); }
.input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  font-size: 1.06rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #8A93A3; }
.input:hover { border-color: var(--line-strong); }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .28); }
textarea.input { height: auto; min-height: 132px; padding: 14px 16px; line-height: 1.45; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--error); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(200, 36, 58, .15); }

.error {
  display: flex; align-items: flex-start; gap: 7px;
  margin: 8px 0 0;
  font-size: .92rem; font-weight: 500;
  color: var(--error);
}
.error:empty { display: none; }
.error::before {
  content: "!";
  flex: none;
  width: 17px; height: 17px; margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: .7rem; font-weight: 700;
  color: var(--white); background: var(--error);
}
.step__error { margin-top: 16px; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Consentimento */
.consent {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.consent:hover { border-color: var(--line-strong); background: var(--surface); }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent:has(input:focus-visible) { outline: 3px solid rgba(var(--accent-rgb), .55); outline-offset: 2px; }
.consent:has(input:checked) { border-color: var(--navy); background: var(--tint); box-shadow: inset 0 0 0 1px var(--navy); }
.checkbox {
  flex: none;
  width: 26px; height: 26px; margin-top: 1px;
  display: grid; place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--white);
  color: var(--white);
  transition: background .15s, border-color .15s;
}
.checkbox svg { width: 16px; height: 16px; opacity: 0; transform: scale(.5); transition: opacity .15s, transform .2s var(--ease); }
.consent:has(input:checked) .checkbox { background: var(--navy); border-color: var(--navy); }
.consent:has(input:checked) .checkbox svg { opacity: 1; transform: none; }
.consent__text { font-size: 1.02rem; line-height: 1.45; }
.fineprint { margin: 16px 0 0; font-size: .9rem; color: var(--muted); }

/* Botões */
.step__nav { display: flex; align-items: center; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 8px;
  font-size: 1.02rem; font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, color .15s, transform .1s, box-shadow .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .6); outline-offset: 2px; }
.btn--primary { background: var(--navy); color: var(--white); box-shadow: 0 6px 18px -8px rgba(27, 48, 91, .55); }
.btn--primary:hover { background: var(--navy-600); }
.btn--primary svg { transition: transform .2s var(--ease); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--navy); padding: 0 18px; }
.btn--ghost:hover { background: var(--surface); }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.kbd-hint { margin-left: 8px; font-size: .88rem; color: var(--muted); }
.kbd-hint kbd {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  font: inherit; font-size: .8rem; font-weight: 600;
  background: var(--surface);
}
@media (hover: none) { .kbd-hint, .option__key { display: none; } }

/* Ecrã inicial */
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .92rem;
  background: var(--surface);
}
.facts svg { width: 17px; height: 17px; color: var(--navy); }

/* Ecrã final */
.done__icon {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent);
  animation: pop .6s var(--ease) both .1s;
}
.done__icon svg { width: 36px; height: 36px; }
.done__icon path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .45s ease-out forwards .45s; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.countdown { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Animação inicial ----------
   O logótipo é revelado por recorte (clip-path) e escala uniforme:
   nunca é aplicada transparência nem deformação à marca (Manual, p. 10). */
.splash {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  color: var(--white);
  cursor: pointer;
}
.splash__bg {
  position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(140deg, var(--navy-600) 0%, var(--navy) 48%, var(--navy-900) 100%);
  transition: opacity .75s ease .2s;
}
.splash__bg::after {
  content: ""; position: absolute; inset: -50%;
  background: linear-gradient(115deg, transparent 44%, rgba(255, 255, 255, .07) 50%, transparent 56%);
  animation: sheen 2.6s ease-in-out .2s both;
}
@keyframes sheen { from { transform: translateX(-35%); } to { transform: translateX(35%); } }
.splash__mark {
  position: absolute; width: 120vmax; right: -48vmax; bottom: -32vmax;
  color: var(--white);
  animation: markIn 2.8s var(--ease) both;
}
@keyframes markIn { from { opacity: 0; transform: scale(1.18) rotate(-5deg); } to { opacity: .06; transform: none; } }

.splash__center { position: relative; display: flex; flex-direction: column; align-items: center; }
.splash__logo {
  position: relative;
  width: min(440px, 72vw);
  aspect-ratio: 339.75 / 66.96;
  transform-origin: 0 0;
  transition: transform .85s cubic-bezier(.65, 0, .25, 1);
}
.splash__logo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* símbolo "constrói-se" de baixo para cima */
.splash__sym { animation: symIn .85s cubic-bezier(.3, .8, .2, 1) .25s both; }
@keyframes symIn { from { clip-path: inset(100% 0 0 0); transform: translateY(14%); } to { clip-path: inset(0 0 0 0); transform: none; } }
/* logótipo desliza a partir do símbolo */
.splash__word { animation: wordIn .8s cubic-bezier(.3, .8, .2, 1) .85s both; }
@keyframes wordIn { from { clip-path: inset(0 64% 0 0); transform: translateX(-4%); } to { clip-path: inset(0 0 0 0); transform: none; } }

/* CIMPOR Energy: a abertura é a animação do logótipo em vídeo (ou o seu último fotograma) */
[data-theme="energy"] .splash__bg { background: var(--navy); }
[data-theme="energy"] .splash__bg::after { content: none; }
.splash__video, .splash__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .3s;
}
.splash.is-video .splash__video, .splash.is-static .splash__poster { opacity: 1; }

.splash__rule {
  width: 56px; height: 2px; margin-top: clamp(28px, 4vw, 40px);
  background: var(--accent);
  transform: scaleX(0);
  animation: ruleIn .6s var(--ease) 1.4s both;
  transition: opacity .3s;
}
@keyframes ruleIn { to { transform: scaleX(1); } }
.splash__tag {
  margin: 16px 0 0; padding-left: .32em;
  font-size: .85rem; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  animation: tagIn .8s var(--ease) 1.55s both;
  transition: opacity .3s;
}
@keyframes tagIn { from { opacity: 0; letter-spacing: .7em; } to { opacity: 1; letter-spacing: .32em; } }

.splash.is-skip *, .splash.is-skip *::after { animation-duration: 0s !important; animation-delay: 0s !important; }
.splash.is-leaving { pointer-events: none; }
.splash.is-leaving .splash__bg { opacity: 0; }
.splash.is-leaving .splash__rule, .splash.is-leaving .splash__tag { opacity: 0; }

/* Enquanto a abertura corre, o conteúdo espera para entrar a seguir */
body.splashing .step,
body.splashing .brand__body,
body.splashing .brand__foot { animation: none !important; opacity: 0; }
.brand__body, .brand__foot { animation: stepIn .7s var(--ease) both .15s; }
body.logo-flying .brand__logo,
body.logo-flying .topbar__logo { visibility: hidden; }

/* ---------- CIMPOR Energy: fundo da marca no painel lateral ----------
   Fundo recriado a partir da imagem oficial enviada pela CIMPOR; o logótipo
   é o vetor, no canto superior esquerdo, sobre a zona azul. */
[data-theme="energy"] .brand { background: var(--navy) url("energy-fundo.jpg") center top / cover no-repeat; }
[data-theme="energy"] .brand__watermark { display: none; }
[data-theme="energy"] .brand__body { margin: 0; padding: 44px 0 0; }
[data-theme="energy"] .brand__foot { margin-top: auto; }
/* fibras em movimento: vídeo em loop por cima da imagem fixa, só quando está mesmo a tocar */
.fundo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  opacity: 0; transition: opacity .6s; pointer-events: none;
}
.fundo.is-on { opacity: 1; }
.fundo--pagina { position: fixed; z-index: -1; height: 100lvh; }
/* o rodapé assenta na zona verde da imagem: texto escuro */
[data-theme="energy"] .brand__site { color: rgba(6, 40, 26, .78); }
[data-theme="energy"] .brand .credit { color: rgba(6, 40, 26, .78); }
[data-theme="energy"] .brand .credit__mube { color: var(--navy-900); }
[data-theme="energy"] .brand .credit__bp { filter: brightness(0); opacity: .8; }

/* ---------- Mobile / tablet vertical ---------- */
@media (max-width: 880px) {
  .app { grid-template-columns: 1fr; }
  .brand { display: none; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    padding-top: max(14px, env(safe-area-inset-top));
    color: var(--white);
    background: var(--navy);
  }
  .topbar__logo { width: 112px; height: auto; display: block; }
  .topbar__home { display: block; border-radius: 4px; }
  [data-theme="energy"] .topbar__logo { width: 124px; }
  .topbar__count { font-size: .88rem; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
  .panel__meta { display: none; }
  .form { align-items: flex-start; padding: 32px 20px 0; }
  .step { display: flex; flex-direction: column; min-height: calc(100dvh - 120px); }
  .step__nav {
    position: sticky; bottom: 0;
    margin-top: auto;
    padding: 28px 0 max(16px, env(safe-area-inset-bottom));
    background: linear-gradient(rgba(255, 255, 255, 0), var(--white) 32%);
  }
  .step__body { margin-bottom: 8px; }
  .scale { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .scale__item span { height: 58px; }
  .step__nav .btn--primary { flex: 1; }
  .kbd-hint { display: none; }
  .panel__foot { display: block; padding: 20px 20px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .panel__foot .credit { justify-content: center; }

  /* CIMPOR Energy: imagem da marca em fundo, logótipo no topo e formulário num cartão */
  html[data-theme="energy"] { background: var(--navy); }
  [data-theme="energy"] body { background: transparent; }
  [data-theme="energy"] body::before {
    content: ""; position: fixed; z-index: -1; left: 0; top: 0; width: 100%; height: 100lvh;
    background: var(--navy) url("energy-fundo.jpg") center top / cover no-repeat;
  }
  [data-theme="energy"] .chrome { position: static; background: none; }
  [data-theme="energy"] .progress { display: none; }
  [data-theme="energy"] .topbar {
    align-items: flex-start;
    padding: clamp(28px, 10vw, 84px) clamp(20px, 11.7vw, 96px) clamp(24px, 6.5vw, 56px);
    padding-top: max(clamp(28px, 10vw, 84px), env(safe-area-inset-top));
    background: none;
  }
  [data-theme="energy"] .topbar__logo { width: clamp(170px, 47vw, 380px); }
  [data-theme="energy"] .form { padding: 0 clamp(16px, 5vw, 48px); }
  [data-theme="energy"] .step {
    min-height: 0;
    padding: 30px clamp(20px, 5vw, 36px) 0;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 28px 56px -28px rgba(6, 20, 45, .6);
  }
  [data-theme="energy"] .step__nav { position: static; margin-top: 28px; padding: 0 0 28px; background: none; }
  [data-theme="energy"] .panel__foot { border-top: 0; padding-top: 28px; }
  [data-theme="energy"] .panel__foot .credit { width: fit-content; margin: 0 auto; padding: 10px 20px; border-radius: 24px; background: var(--white); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
