:root {
  --off-white: #F2EAE2;
  --azul: #184570;
  --azul-escuro: #0E2B46;
  --terracota: #D28167;
  --cinza: #434E51;
  --branco: #FFFFFF;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
}

body {
  font-family: 'Lato', Arial, sans-serif;
  color: var(--cinza);
  background: var(--off-white);
  background-image: radial-gradient(circle at 15% 10%, rgba(24,69,112,0.06), transparent 45%),
                     radial-gradient(circle at 85% 90%, rgba(210,129,103,0.08), transparent 45%);
}

h1, h2 {
  font-family: 'Fahkwang', Georgia, serif;
  color: var(--azul);
  line-height: 1.25;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.brand-header {
  display: flex;
  justify-content: center;
  padding: 22px 24px 0 24px;
}

.brand-logo {
  height: 34px;
  width: auto;
}

.app-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.screen {
  display: none;
  width: 100%;
  max-width: 640px;
}

.screen.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  background: var(--branco);
  border-radius: 18px;
  padding: 44px;
  box-shadow: 0 24px 60px rgba(14, 43, 70, 0.12);
}

.card-with-cover {
  padding: 0;
  overflow: hidden;
}

.cover-photo {
  height: 220px;
  background-size: cover;
  background-position: center top;
  position: relative;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,43,70,0.05) 0%, rgba(14,43,70,0.35) 100%);
}

.card-content {
  padding: 36px 44px 44px 44px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracota);
  font-weight: 700;
  margin: 0 0 14px 0;
}

h1 { font-size: 28px; margin: 0 0 16px 0; }
h2 { font-size: 21px; margin: 0 0 22px 0; }

.lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--cinza);
  margin: 0 0 26px 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 30px 0;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #7C8688;
}

.meta-item .icon {
  width: 17px;
  height: 17px;
  stroke: var(--azul);
}

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.btn-primary, .btn-cta {
  display: inline-block;
  background: var(--azul);
  color: var(--branco);
  border: none;
  padding: 15px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primary:hover, .btn-cta:hover { background: var(--azul-escuro); }

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-secondary {
  display: block;
  margin: 22px auto 0 auto;
  background: none;
  border: none;
  color: var(--cinza);
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

form label {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cinza);
}

form input {
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  border: 1px solid #D9D2C7;
  border-radius: 8px;
  font-size: 16px; /* abaixo disso o iOS Safari dá zoom automático ao focar o campo */
  font-family: 'Lato', sans-serif;
  background: var(--branco);
}

form input:focus {
  outline: none;
  border-color: var(--azul);
}

form .btn-primary {
  width: 100%;
  margin-top: 10px;
  border: none;
}

.field-error {
  display: none;
  color: var(--terracota);
  font-size: 13px;
  margin: -6px 0 16px 0;
}

.field-error.visible { display: block; }

/* Pergunta de segmentação (momento profissional) em botões-pílula */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.option-btn {
  text-align: left;
  background: var(--off-white);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: 'Lato', sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--cinza);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option-btn:hover {
  border-color: var(--terracota);
}

.option-btn.selected {
  border-color: var(--azul);
  background: rgba(24,69,112,0.06);
  color: var(--azul);
  font-weight: 700;
}

/* Tela de agradecimento / download */
.result-card { text-align: center; }

.result-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px auto;
  color: var(--terracota);
}

.result-note {
  font-size: 14px;
  color: #7C8688;
  margin-top: 18px;
}

.error-banner {
  display: none;
  background: rgba(210,129,103,0.12);
  border: 1px solid var(--terracota);
  color: var(--azul-escuro);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13.5px;
  margin-bottom: 18px;
}

.error-banner.visible { display: block; }

@media (max-width: 520px) {
  .card { padding: 28px 22px; }
  .card-content { padding: 30px 24px 34px 24px; }
  h1 { font-size: 23px; }
}
