/* ===== Paleta — azul-marinho profundo + azul metálico + dourado ===== */
:root {
  --navy-deep: #0a1f3a;
  --navy: #14305a;
  --navy-medium: #1f4378;
  --navy-light: #4a7ab8;

  --gold: #c9a961;
  --gold-light: #e0c989;
  --gold-dark: #a88a44;

  --bg: #f5f3ed;
  --card: #ffffff;
  --text: #1c1c1c;
  --text-muted: #5d5d5d;
  --border: #e4dfd1;

  --shadow-sm: 0 2px 8px rgba(10, 31, 58, 0.08);
  --shadow-md: 0 4px 16px rgba(10, 31, 58, 0.10);
  --shadow-gold: 0 4px 14px rgba(201, 169, 97, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background:
    radial-gradient(ellipse at top, rgba(20, 48, 90, 0.04), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

/* ===== Header ===== */
.topbar {
  background-color: #1a1a1a;
  padding: 1rem;
  color: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  border-bottom: 2px solid var(--gold);
}

.topbar-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-medium) 100%);
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -1px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

.brand-sub {
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--gold-light);
  margin-top: 2px;
}

/* ===== Container & Screens ===== */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.screen {
  display: none;
  background: var(--card);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

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

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

/* ===== Tipografia ===== */
.progress {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

h1, h2 {
  color: var(--navy-deep);
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 1.85rem; }
h2 { font-size: 1.35rem; }

p {
  margin-bottom: 1rem;
  color: var(--text);
}

p:last-child { margin-bottom: 0; }

strong { color: var(--navy); font-weight: 700; }

.lead {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 500;
}

.helper {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* ===== Botões de escolha (SIM/NÃO) ===== */
.choices {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.choices-stack {
  flex-direction: column;
}

.btn-choice {
  flex: 1;
  padding: 1rem 1.25rem;
  background: white;
  border: 2px solid var(--navy);
  color: var(--navy-deep);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.5px;
}

.btn-choice:hover, .btn-choice:focus-visible {
  background: var(--navy);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(20, 48, 90, 0.25);
  outline: none;
}

.btn-choice:active {
  transform: translateY(0);
}

/* ===== Botão primário (CTA dourado) ===== */
.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  border: 1px solid var(--gold-dark);
  color: var(--navy-deep);
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
  letter-spacing: 0.4px;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover:not(:disabled), .btn-primary:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.5);
  outline: none;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #d3d3d3;
  color: #888;
  border-color: #b8b8b8;
  box-shadow: none;
  transform: none;
}

/* ===== Formulário de captura ===== */
form label {
  display: block;
  margin-bottom: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

form input {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  margin-top: 0.45rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}

form input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(20, 48, 90, 0.12);
}

.form-error {
  color: #a02525;
  background: #fdebeb;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid #f3c4c4;
}

/* ===== Resultados ===== */
.badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.badge-quente   { background: #d3edd1; color: #1a5e1a; border: 1px solid #95cc94; }
.badge-morno    { background: #fff4c2; color: #756100; border: 1px solid #e5d68a; }
.badge-informal { background: #ffdcb0; color: #7a3500; border: 1px solid #f0b878; }

/* ===== Descartes ===== */
.discard h2 {
  color: var(--navy);
  font-size: 1.25rem;
}

.phone {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-deep);
  text-align: center;
  background: linear-gradient(135deg, #faf6e8 0%, #f0eadd 100%);
  padding: 1.1rem;
  border-radius: 8px;
  border: 1.5px dashed var(--gold);
  margin: 1.3rem 0;
  letter-spacing: 0.5px;
}

.closing {
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1.5rem;
}

.user-name {
  color: var(--navy);
}

/* ===== Footer ===== */
.bottombar {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== Mobile fine-tuning ===== */
@media (max-width: 480px) {
  html, body { font-size: 15.5px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  .screen { padding: 1.6rem 1.25rem; }
  .choices { flex-direction: column; }
  .container { padding: 1rem 0.75rem 2rem; }
  .topbar { padding: 0.85rem 1rem; }
}