/* Identidade Prime Medical: azul-marinho do logo, dourado, creme dos posts.
   Títulos em serifa (com o itálico dourado das peças), texto em sans. */
:root {
  --navy: #0A2055;
  --navy-2: #1B3170;
  --gold: #B7934F;
  --gold-soft: #E9DCC2;
  --cream: #F4EFE6;
  --cream-2: #EDE5D7;
  --paper: #FFFDF9;
  --ink: #1F2433;
  --muted: #6B6F7B;
  --line: #E2D9C8;
  --red: #B4442E;
  --red-soft: #FBF1EC;
  --green: #4B7A52;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 85% -10%, #FFFFFF 0%, rgba(255,255,255,0) 60%),
    radial-gradient(900px 600px at -10% 110%, var(--cream-2) 0%, rgba(237,229,215,0) 60%),
    var(--cream);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; }
.logo { display: block; }

/* ---------------------------------------------------------------- topo */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: rgba(244, 239, 230, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.topo .logo { height: 34px; }
.topo .secao { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: right; }
.topo .secao b { color: var(--navy); font-weight: 600; }
.barra { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--gold-soft); z-index: 11; }
.barra i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .5s ease; }

/* ---------------------------------------------------------------- palco */
main {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 96px 20px 110px;
}
.tela { width: 100%; max-width: 680px; }
.entra { animation: entra .45s cubic-bezier(.2,.8,.2,1) both; }
.sai { animation: sai .22s ease both; }
.volta { animation: volta .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes entra { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes volta { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }
@keyframes sai { to { opacity: 0; transform: translateY(-14px); } }
@keyframes treme { 0%,100% { transform: none } 25% { transform: translateX(-6px) } 75% { transform: translateX(6px) } }

.num { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.num .seta { font-size: 12px; }
h1, h2 { font-family: var(--serif); font-weight: 500; color: var(--navy); margin: 0; }
h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.02; letter-spacing: -.01em; }
h2 { font-size: clamp(27px, 4.6vw, 38px); line-height: 1.12; }
em { font-style: italic; color: var(--gold); }
.filete { width: 54px; height: 2px; background: var(--gold); margin: 22px 0; }
.ajuda { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 12px 0 0; max-width: 60ch; }
.obrig { color: var(--gold); }
p.lead { font-size: 17px; line-height: 1.6; color: #3B4050; max-width: 54ch; }

/* ---------------------------------------------------------------- campos */
.campo { margin-top: 28px; }
.campo input, .campo textarea {
  width: 100%; border: 0; border-bottom: 2px solid var(--line); background: transparent;
  font-family: var(--sans); font-size: 22px; color: var(--navy); padding: 10px 0; outline: none;
  transition: border-color .2s;
}
.campo textarea { font-size: 18px; line-height: 1.5; resize: none; min-height: 52px; overflow: hidden; }
.campo input:focus, .campo textarea:focus { border-color: var(--navy); }
.campo input::placeholder, .campo textarea::placeholder { color: #B9B3A6; }
.sufixo { position: relative; }
.sufixo span { position: absolute; right: 0; bottom: 14px; color: var(--muted); font-size: 18px; }
.chip { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; color: var(--navy); }
.chip b { font-weight: 700; }

.opcoes { display: grid; gap: 10px; margin-top: 26px; }
.opcoes.duas { grid-template-columns: 1fr 1fr; }
.opcao {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  padding: 13px 16px; border-radius: 12px; background: rgba(255,253,249,.8);
  border: 1px solid var(--line); color: var(--ink); font-size: 15px; line-height: 1.35;
  transition: border-color .15s, background .15s, transform .1s, color .15s;
}
.opcao:hover { border-color: var(--gold); background: var(--paper); }
.opcao:active { transform: scale(.99); }
.opcao .tecla {
  flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--navy); border: 1px solid var(--line); background: var(--cream);
}
.opcao.marcada { background: var(--navy); border-color: var(--navy); color: #fff; }
.opcao.marcada .tecla { background: var(--gold); border-color: var(--gold); color: #fff; }
.opcao .check { margin-left: auto; opacity: 0; font-size: 15px; }
.opcao.marcada .check { opacity: 1; }
.opcao.longa { align-items: flex-start; font-size: 14px; line-height: 1.6; padding: 18px; }

.acoes { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px;
  padding: 14px 26px; font-size: 15px; font-weight: 600; letter-spacing: .02em;
  background: var(--navy); color: #fff; transition: background .2s, transform .1s;
}
.btn:hover { background: var(--navy-2); }
.btn:active { transform: scale(.98); }
.btn.ouro { background: linear-gradient(135deg, #C9A766, var(--gold) 60%, #9E7B3D); }
.btn.claro { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.dica { font-size: 12px; color: var(--muted); }
.dica kbd { font-family: var(--sans); font-weight: 700; color: var(--navy); }
.erro { color: var(--red); font-size: 14px; margin-top: 14px; display: none; }
.erro.on { display: block; }
.tela.treme { animation: treme .3s; }

/* ---------------------------------------------------------------- avisos */
.aviso { border-left: 4px solid var(--red); background: var(--red-soft); padding: 22px 24px; border-radius: 10px; }
.aviso h2 { color: var(--red); }
.aviso .ajuda { color: var(--ink); }
.ligar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ligar a { text-decoration: none; }

/* ---------------------------------------------------------------- abertura */
.abertura .logo { height: 64px; margin-bottom: 40px; }
.abertura .lista { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.abertura .lista li { display: flex; gap: 12px; font-size: 15px; color: #3B4050; line-height: 1.5; }
.abertura .lista li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 8px; }
.detalhes { margin-top: 22px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.detalhes summary { cursor: pointer; color: var(--navy); font-weight: 600; }
.urg { margin-top: 20px; font-size: 13px; line-height: 1.55; color: #6E3A2E; background: var(--red-soft); border-radius: 10px; padding: 12px 16px; }

/* ---------------------------------------------------------------- revisão */
.revisao { margin-top: 26px; display: grid; gap: 14px; }
.rev-sec { background: rgba(255,253,249,.85); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.rev-sec h3 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 21px; color: var(--navy); margin: 0 0 8px; }
.rev-item { display: flex; gap: 14px; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rev-item:first-of-type { border-top: 0; }
.rev-item .q { color: var(--muted); flex: 1; }
.rev-item .a { color: var(--ink); flex: 1.2; white-space: pre-wrap; word-break: break-word; }
.rev-item button { background: none; border: 0; color: var(--gold); font-weight: 600; font-size: 13px; padding: 0; }
.rev-item.falta .a { color: var(--red); }

/* ---------------------------------------------------------------- rodapé */
.nav {
  position: fixed; right: 20px; bottom: 20px; z-index: 10; display: flex; gap: 6px; align-items: center;
}
.nav .salvo { font-size: 12px; color: var(--muted); margin-right: 10px; transition: opacity .3s; }
.nav button { width: 42px; height: 42px; border-radius: 10px; border: 0; background: var(--navy); color: #fff; font-size: 16px; }
.nav button[disabled] { opacity: .35; }
.rodape { position: fixed; left: 24px; bottom: 26px; font-size: 11px; color: var(--muted); letter-spacing: .04em; }

.carregando { display: grid; place-items: center; min-height: 60vh; color: var(--muted); }
.ponto { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); animation: pulsa 1s infinite alternate; }
@keyframes pulsa { from { opacity: .3; transform: scale(.8) } to { opacity: 1; transform: scale(1.1) } }

@media (max-width: 640px) {
  .topo { padding: 12px 16px; }
  .topo .logo { height: 28px; }
  .topo .secao { font-size: 10px; max-width: 55%; }
  main { padding: 84px 16px 120px; align-items: flex-start; }
  .opcoes.duas { grid-template-columns: 1fr; }
  .campo input { font-size: 20px; }
  .rodape { display: none; }
  .nav { right: 16px; bottom: 16px; }
  .rev-item { flex-direction: column; gap: 4px; }
  .dica { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .entra, .sai, .volta, .tela.treme { animation: none; }
}
