/* style.css — Jornada do Sono */

:root {
  --bg: #1b120a;
  --panel: #22160b;
  --ink: #f6efe5;
  --muted: #d8cec1;
  --line: #3a2a15;
  --accent: #d19a54; /* dourado */
  --cta: #d19a54; /* cor do botão igual ao destaque gentil e científico */
  --cta-text: #1b120a; /* texto escuro sobre o botão claro */
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(80% 60% at 70% 30%, #2a1b0e 0%, var(--bg) 60%);
  color: var(--ink);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Cabeçalho */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}
header .logo-wrap {
  max-width: 640px;
  width: 100%;
}
header img {
  width: 100%;
  height: auto;
}

/* Painel principal */
.hero {
  display: flex;
  justify-content: center;
  width: 100%;
}
.panel {
  background: linear-gradient(180deg, var(--panel), #1b120a 70%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  max-width: 640px;
  width: 100%;
  text-align: center;
}

h2.title {
  font-size: 34px;
  line-height: 1.2;
  margin: 12px 0;
}
.lead {
  color: var(--muted);
  margin: 0 0 12px;
}
.hl {
  color: var(--accent);
  font-weight: 800;
}

form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  text-align: left;
}

input,
textarea,
button {
  font: inherit;
}
input,
textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #201408;
  color: var(--ink);
  outline: none;
  transition: 0.15s;
}
input::placeholder,
textarea::placeholder {
  color: #cbbfb1;
}
input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(209, 154, 84, 0.25);
}
textarea {
  min-height: 100px;
  resize: vertical;
}

/* Botão centralizado e com inversão de cores no hover */
.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  text-align: center;
}
.btn {
  cursor: pointer;
  border: none;
  padding: 15px 22px;
  border-radius: 12px;
  background: var(--cta);
  color: var(--cta-text);
  font-weight: 900;
  letter-spacing: 0.3px;
  transition: 0.2s ease-in-out;
}
.btn:hover {
  background: var(--cta-text);
  color: var(--cta);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}
.safe {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

footer {
  margin: 30px 0 12px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* Responsividade */
@media (max-width: 768px) {
  .panel {
    max-width: 90%;
    padding: 18px;
  }
  header .logo-wrap {
    max-width: 90%;
  }
  h2.title {
    font-size: 26px;
  }
}

/* Mensagem de carregamento */
.loading-message {
  margin-top: 20px;
  background: rgba(209, 154, 84, 0.1);
  border: 1px solid rgba(209, 154, 84, 0.3);
  border-radius: 12px;
  padding: 16px;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  transition: opacity 0.3s ease-in-out;
}
