:root {
  /* Cores da marca do cliente. Fonte: clientes/<slug>.json */
  --bg: #f1f5f6;
  --surface: #ffffff;
  --ink: #06252e;
  --ink-soft: #4a6670;
  --green: #00424f;
  --green-deep: #002a35;
  --accent: #1c8c88;
  --accent-soft: #d9ecea;
  --border: #d3e2e4;
  --error: #b3261e;
  --ok: #2f6b4f;
  --radius: 14px;
  --touch: 48px;
}

/* Base comum a todas as paginas de captura da Visionar.
   As cores vem do bloco :root que o build gera a partir de clientes/<slug>.json. */

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}

.page {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 18px 40px;
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
}

.brand {
  text-align: center;
  margin-bottom: 22px;
}

.brand__logo {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 10px;
  border-radius: 12px;
  object-fit: contain;
}

/* Avatar que ja e circular (foto de perfil com fundo proprio) nao fica bem
   dentro de um quadrado, e logo retangular nao fica bem dentro de um circulo:
   o formato vem de marca.logoRedondo no JSON do cliente. */
.brand__logo--redondo {
  border-radius: 50%;
  object-fit: cover;
}

.brand__where {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.hero {
  margin-bottom: 26px;
}

.hero__title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(26px, 7vw, 32px);
  line-height: 1.18;
  margin: 0 0 12px;
  color: var(--green-deep);
  overflow-wrap: anywhere;
}

.hero__text {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.hero__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__list li {
  font-size: 13px;
  background: var(--accent-soft);
  color: var(--green);
  padding: 6px 10px;
  border-radius: 999px;
}

.quiz {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
  box-shadow: 0 6px 24px rgba(51, 35, 26, 0.06);
}

.quiz__progress {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.question__title {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.question__helper {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 15px;
}

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

.option {
  width: 100%;
  min-height: var(--touch);
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.option:hover,
.option:focus-visible {
  border-color: var(--accent);
  outline: none;
  background: #fff8f0;
}

.option[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--accent-soft);
}

.option__label {
  display: block;
  font-weight: 600;
}

.option__label::first-letter {
  text-transform: uppercase;
}

.option__desc {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  gap: 10px;
}

.link-button {
  background: none;
  border: none;
  padding: 10px 4px;
  min-height: 44px;
  font: inherit;
  font-size: 15px;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field__label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.field__hint {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field__input {
  width: 100%;
  min-height: var(--touch);
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font: inherit;
  font-size: 17px;
  background: var(--surface);
  color: var(--ink);
}

.field__input:focus-visible {
  outline: none;
  border-color: var(--accent);
}

.field__input[aria-invalid="true"] {
  border-color: var(--error);
}

textarea.field__input {
  min-height: 84px;
  resize: vertical;
}

.field__error {
  display: block;
  color: var(--error);
  font-size: 14px;
  margin-top: 6px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 6px 0 16px;
}

.check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--green);
}

.check a {
  color: var(--green);
}

.check__link {
  margin: -6px 0 16px 32px;
  font-size: 14px;
}

.check__link a {
  display: inline-block;
  padding: 8px 0;
  color: var(--green);
}

.honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cta {
  width: 100%;
  min-height: 54px;
  border: none;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.cta:hover,
.cta:focus-visible {
  background: var(--green-deep);
  outline: none;
}

.cta:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* O botao do WhatsApp usa o verde da marca com filete dourado, nao o verde
   do aplicativo: a pagina inteira fala na cor do M Moura. */
.cta--wa {
  background: var(--green-deep);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.cta--wa:hover,
.cta--wa:focus-visible {
  background: var(--green);
}

.form__error {
  color: var(--error);
  margin: 12px 0 0;
  font-size: 15px;
}

.final {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px 24px;
  margin-top: 10px;
}

.final__eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ok);
}

.final__title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 12px;
  color: var(--green-deep);
}

.final__title:focus {
  outline: none;
}

.final__message,
.final__notice {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.final__notice {
  background: #fff4e5;
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
}

.final__summary {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 6px;
  font-size: 15px;
}

.final__summary li span {
  color: var(--ink-soft);
}

.final__fallback {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.foot {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}

.foot a {
  color: var(--green);
}

.consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  max-width: 496px;
  margin: 0 auto;
  background: var(--green-deep);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.consent__text {
  margin: 0;
  font-size: 14px;
}

.consent__text a {
  color: #f0d8bf;
}

.consent__actions {
  display: flex;
  gap: 8px;
}

.consent__button {
  flex: 1;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.consent__button:first-child {
  background: #fff;
  color: var(--green-deep);
  border-color: #fff;
}

.doc {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.doc__eyebrow {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.doc__title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
}

.doc__heading {
  font-size: 19px;
  margin: 26px 0 8px;
}

.doc__list {
  padding-left: 20px;
}

.doc__list li {
  margin-bottom: 10px;
}

.doc__back a {
  color: var(--green);
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.only-desk {
  display: none;
}

.foot__hours {
  margin: 0 0 6px;
  color: var(--green);
  font-weight: 600;
}

@media (min-width: 720px) {
  .only-desk {
    display: block;
  }
}
