/* === Canto — Livraria Antiga Theme === */

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #faf6f1;
  color: #3d2e1f;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: bold;
  line-height: 1.2;
}

a {
  color: #3d2e1f;
  text-decoration: underline;
  text-decoration-color: #d4c4b0;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: #3d2e1f;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  text-align: center;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.hero-title {
  font-size: 2.667rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 1.111rem;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 0.889rem;
  color: #7a6555;
  margin-bottom: 40px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.problem p {
  font-family: Georgia, serif;
  font-size: 1.111rem;
  margin-bottom: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 640px;
  margin: 32px auto 0;
}

.card {
  background: #fff;
  border: 1px solid #e0d5c8;
  border-radius: 8px;
  padding: 24px;
  text-align: left;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.833rem;
  color: #7a6555;
}

.not-list {
  list-style: none;
  text-align: center;
}

.not-list li {
  font-size: 1rem;
  color: #7a6555;
  margin-bottom: 12px;
}

.not-list li strong {
  color: #3d2e1f;
}

.price-amount {
  font-family: Georgia, serif;
  font-size: 1.778rem;
  font-weight: bold;
  margin-bottom: 16px;
}

.price-details {
  color: #7a6555;
  margin-bottom: 24px;
}

.badge {
  display: inline-block;
  background: #e0d5c8;
  color: #3d2e1f;
  font-size: 0.778rem;
  padding: 6px 16px;
  border-radius: 12px;
  margin-bottom: 32px;
}

.waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #d4c4b0;
  border-radius: 4px;
  font-size: 0.889rem;
  background: #fff;
  color: #3d2e1f;
  font-family: inherit;
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: #3d2e1f;
}

.waitlist-form input[type="email"].error {
  border-color: #c0392b;
}

.waitlist-form button {
  padding: 12px 24px;
  background: #3d2e1f;
  color: #faf6f1;
  border: none;
  border-radius: 4px;
  font-size: 0.889rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.waitlist-form button:hover {
  background: #5a4535;
}

.waitlist-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.waitlist-msg {
  margin-top: 12px;
  font-size: 0.833rem;
  min-height: 1.4em;
}

.waitlist-msg.success {
  color: #3d2e1f;
}

.waitlist-msg.error {
  color: #c0392b;
}

.footer {
  background: #3d2e1f;
  color: #faf6f1;
  text-align: center;
  padding: 40px 24px;
  font-size: 0.778rem;
}

.footer p {
  margin-bottom: 16px;
}

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

.footer a {
  color: #d4c4b0;
  text-decoration: none;
}

.footer a:hover {
  color: #faf6f1;
}

.legal {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.889rem;
  color: #7a6555;
}

.legal-back:hover {
  color: #3d2e1f;
}

.legal h1 {
  font-size: 1.778rem;
  margin-bottom: 8px;
}

.legal .updated {
  font-size: 0.778rem;
  color: #7a6555;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.222rem;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal p, .legal li {
  margin-bottom: 12px;
  color: #3d2e1f;
}

.legal ul {
  list-style: disc;
  padding-left: 24px;
}

.legal strong {
  color: #3d2e1f;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}
