/* Noites de Paz · landing page
   Mesmo visual do site das histórias: livro de orações à luz de vela.
   Sempre escuro: azul-noite quase preto, texto cor de papel, dourado de vela só nos detalhes. */

:root {
  --ink: #0b0e1c;
  --card: #131a2e;
  --line: #263052;
  --paper: #ece5d3;
  --paper-soft: rgba(236, 229, 211, 0.82);
  --muted: #a59d88;
  --candle: #d9b26b;
  --moon-dark: #10172b;
  --moon-dim: #3a4570;
  --sky: #121a33;

  --font-serif: "Alegreya", Georgia, "Times New Roman", serif;
  --font-sans: "Alegreya Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sc: "Alegreya SC", "Alegreya", Georgia, serif;

  color-scheme: dark;
}

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

html { background: var(--ink); scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure, blockquote, ol, ul, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 500; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
svg { flex: none; }

a { color: var(--candle); }
a:hover { color: var(--paper); }
:focus-visible { outline: 2px solid var(--candle); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Margens seguras do iPhone (notch), inclusive com o celular deitado */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

/* Versaletes, como nos livros impressos: escreva em caixa normal, a fonte faz o resto */
.kicker {
  font-family: var(--font-sc);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
  color: var(--muted);
}

.h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.1; }
.lead { font-size: 1.3rem; line-height: 1.55; color: var(--paper-soft); }
.lead-italic { font-style: italic; }
.note { font-family: var(--font-sans); font-size: 1rem; line-height: 1.5; color: var(--muted); }

/* Botões em formato de pílula. O único botão claro é o de compra (na seção de preço). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 30px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.btn-primary { border: 1px solid rgba(217, 178, 107, 0.45); background: rgba(217, 178, 107, 0.1); color: var(--candle); }
.btn-primary:hover { border-color: rgba(217, 178, 107, 0.8); color: var(--candle); }
.btn-light { border: 1px solid var(--paper); background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #f7f1e4; color: var(--ink); }

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.link-quiet:hover { color: var(--paper); }

/* ---------- Topo: céu, lua e morros de papel recortado ---------- */

.hero { position: relative; overflow: hidden; background: var(--sky); }

.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

.hero-moon {
  position: absolute;
  z-index: 1;
  top: 118px;
  right: 9%;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  box-shadow: 24px -12px 0 0 #efe3c2;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
}

.hero-hills, .hero-scene { position: absolute; left: 0; bottom: 0; width: 100%; height: 300px; z-index: 1; }
.hero-hills path { filter: drop-shadow(0 -3px 5px rgba(0, 0, 0, 0.5)); }

.firefly {
  position: absolute;
  left: 76%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff4cf;
  box-shadow: 0 0 14px 6px rgba(232, 191, 110, 0.5), 0 0 44px 20px rgba(232, 191, 110, 0.16);
  animation: drift 9s ease-in-out infinite;
}

.sheep {
  position: absolute;
  left: 8%;
  bottom: 25%;
  width: clamp(76px, 9vw, 128px);
  filter: drop-shadow(0 -2px 3px rgba(0, 0, 0, 0.55));
}

.twinkle { animation: twinkle 5s ease-in-out infinite; }
.twinkle.slow { animation-duration: 7s; animation-delay: 1.5s; }

@keyframes twinkle { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.25; } }
@keyframes drift {
  0%, 100% { transform: translate(0, 0); opacity: 1; }
  30% { transform: translate(16px, -10px); opacity: 0.5; }
  60% { transform: translate(-8px, -20px); opacity: 0.95; }
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--paper); text-decoration: none; }
.brand:hover { color: var(--paper); }
.brand svg { color: var(--candle); }
.brand span { font-family: var(--font-sc); font-weight: 500; font-size: 1.4rem; letter-spacing: 0.02em; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nav-anchors { display: flex; align-items: center; gap: 4px; }

.nav-link, .nav-login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  text-decoration: none;
}
.nav-link { padding: 0 14px; font-weight: 500; color: var(--muted); }
.nav-link:hover { color: var(--paper); }
.nav-login { padding: 0 20px; border: 1px solid var(--line); font-weight: 700; color: var(--paper); }
.nav-login:hover { border-color: rgba(165, 157, 136, 0.6); color: var(--paper); }

.hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 64px;
  padding-top: 64px;
  padding-bottom: 330px;
}

.hero-text { flex: 1 1 480px; min-width: 0; max-width: 660px; display: flex; flex-direction: column; gap: 24px; }

.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); line-height: 1.04; letter-spacing: -0.01em; }

.hero-sub { max-width: 560px; font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.5; font-style: italic; color: var(--paper-soft); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }

/* Cartão "Hoje à noite", como a tela inicial do site */
.tonight {
  flex: 0 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.65);
}

.tonight-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.tonight-kicker { font-family: var(--font-sc); font-weight: 500; letter-spacing: 0.02em; font-size: 1.05rem; color: var(--candle); white-space: nowrap; }
.tonight-count { display: flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 0.95rem; color: var(--muted); white-space: nowrap; }
.moon-ring { display: inline-flex; padding: 2px; border: 1px solid var(--candle); border-radius: 50%; }
.tonight-title { font-size: 1.7rem; line-height: 1.2; font-weight: 500; }
.tonight-series { margin-top: 4px; font-family: var(--font-sans); color: var(--muted); }

.tonight-verse {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.tonight-verse blockquote { font-size: 1.3rem; line-height: 1.45; font-style: italic; }
.tonight-verse figcaption { font-family: var(--font-sc); font-weight: 500; color: var(--candle); }

.tonight-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tonight-parts div { display: flex; flex-direction: column; gap: 2px; }
.tonight-parts dt { font-family: var(--font-sc); font-weight: 500; font-size: 0.95rem; color: var(--muted); }
.tonight-parts dd { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; }

/* Luas: a mesma regra do histórico do site (lua acesa em dourado) */
.moon-base { fill: var(--moon-dark); stroke: var(--line); }
.moon-fill { fill: var(--moon-dim); transition: fill 0.3s; }

/* ---------- Como é uma noite ---------- */

.noite { padding: 104px 0 112px; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 64px;
  align-items: center;
}
.split-wide { gap: 56px 72px; }

.stack { display: flex; flex-direction: column; gap: 22px; }

.parts { list-style: none; margin-top: 10px; padding: 0; }
.part { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.part:last-child { border-bottom: 1px solid var(--line); }
.part-label { flex: 0 0 120px; font-family: var(--font-sc); font-weight: 500; font-size: 1.1rem; color: var(--candle); }
.part-body { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.part-time { font-family: var(--font-sans); color: var(--muted); }
.part-text { font-size: 1.2rem; line-height: 1.5; }

.demo { display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }

.tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}
.tool:hover { color: var(--paper); }
.tool[aria-pressed="true"] { border-color: rgba(217, 178, 107, 0.6); color: var(--candle); }
.tool-value { font-weight: 500; }

/* Celular de exemplo */
.phone {
  width: 100%;
  max-width: 372px;
  height: 700px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50px;
  background: #05070f;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8);
}

.phone-screen {
  --r-ink: #0b0e1c;
  --r-card: #131a2e;
  --r-line: #263052;
  --r-paper: #ece5d3;
  --r-soft: rgba(236, 229, 211, 0.86);
  --r-muted: #a59d88;
  --r-candle: #d9b26b;
  --r-candle-border: rgba(217, 178, 107, 0.45);
  --r-candle-bg: rgba(217, 178, 107, 0.1);

  height: 100%;
  overflow: hidden;
  border-radius: 40px;
  background: var(--r-ink);
  transition: background-color 0.6s;
}

/* Modo vela: troca a paleta por tons de âmbar, como no site */
.phone-screen.is-candle {
  --r-ink: #0c0906;
  --r-card: #1a140d;
  --r-line: #33281a;
  --r-paper: #efd5a0;
  --r-soft: rgba(239, 213, 160, 0.86);
  --r-muted: #a08a64;
  --r-candle: #d9a85a;
  --r-candle-border: rgba(217, 168, 90, 0.45);
  --r-candle-bg: rgba(217, 168, 90, 0.1);
}

.reader {
  height: 100%;
  overflow-y: auto;
  padding: 36px 24px 40px;
  color: var(--r-paper);
  font-size: 19px;
  line-height: 1.65;
  scrollbar-width: thin;
  scrollbar-color: var(--r-line) transparent;
  transition: color 0.6s;
}
.reader:focus-visible { outline-offset: -4px; }
.phone-screen[data-size="1"] .reader { font-size: 21px; }
.phone-screen[data-size="2"] .reader { font-size: 23px; }

.r-kicker { font-family: var(--font-sc); font-weight: 500; font-size: 0.72em; text-align: center; color: var(--r-muted); }
.r-title { margin-top: 6px; font-size: 1.35em; line-height: 1.2; font-weight: 600; text-align: center; text-wrap: balance; }
.r-label { font-family: var(--font-sc); font-weight: 500; font-size: 0.75em; text-align: center; color: var(--r-candle); }
.r-label-first { margin-top: 1.6em; }
.r-verse { margin-top: 0.5em; font-size: 1.05em; font-style: italic; text-align: center; }
.r-p { margin-top: 0.8em; }
.r-first { margin-top: 0.6em; }
.r-soft { color: var(--r-soft); }
.dropcap { float: left; padding: 0.06em 0.1em 0 0; font-size: 3.1em; line-height: 0.82; font-weight: 600; color: var(--r-candle); }
.r-prayer { margin-top: 0.6em; font-style: italic; text-align: center; }

.ornament { display: flex; align-items: center; gap: 12px; margin: 1.4em 0; color: var(--r-candle); }
.ornament span { flex: 1; height: 1px; background: var(--r-line); }

.r-goodnight {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  margin-top: 1.6em;
  padding: 1em 1.1em 1.1em;
  border: 1px solid var(--r-line);
  border-radius: 24px;
  background: var(--r-card);
}
.r-small-label { font-family: var(--font-sc); font-weight: 500; font-size: 0.72em; color: var(--r-muted); }
.r-small { font-size: 0.95em; }
.r-gap { margin-top: 0.6em; }
.r-italic { font-style: italic; }

.r-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  margin-top: 1.2em;
  border: 1px solid var(--r-candle-border);
  border-radius: 999px;
  background: var(--r-candle-bg);
  color: var(--r-candle);
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  user-select: none;
}

.r-next { margin-top: 0.4em; text-align: center; }
.r-next a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--r-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- As séries ---------- */

.series { padding: 32px 0 120px; }

.cover { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 560px; }
.cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: 28px; }
.cover figcaption { display: flex; flex-direction: column; gap: 4px; }
.cover-title { font-size: 1.35rem; font-weight: 500; }
.cover-meta { font-family: var(--font-sans); font-size: 1.02rem; color: var(--muted); }

.placeholder {
  margin-top: 6px;
  padding: 14px 18px;
  border: 1px dashed var(--moon-dim);
  border-radius: 16px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--muted);
}

.moons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-width: 460px; }

.moon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0 8px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-sans);
  cursor: pointer;
}
.moon-btn:hover { border-color: var(--line); }
.moon-btn[aria-pressed="true"] { border-color: rgba(217, 178, 107, 0.7); background: rgba(217, 178, 107, 0.08); }
.moon-btn.is-lit .moon-fill { fill: var(--candle); }
.moon-name { font-size: 0.85rem; font-weight: 700; }
.moon-btn[aria-pressed="true"] .moon-name { color: var(--candle); }
.moon-tag { min-height: 1.2em; font-size: 0.78rem; color: var(--muted); }

.night-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.night-access { font-family: var(--font-sc); font-weight: 500; font-size: 1.05rem; color: var(--candle); }
.night-title { font-size: 1.7rem; line-height: 1.2; }
.night-meta { font-family: var(--font-sans); font-size: 1.02rem; color: var(--muted); }
.night-talk { font-size: 1.2rem; line-height: 1.5; font-style: italic; color: rgba(236, 229, 211, 0.85); }
.night-hook { font-size: 1.1rem; line-height: 1.5; color: var(--muted); }

/* ---------- Bordas em papel recortado entre as seções ---------- */

.edge { line-height: 0; }
.edge svg { display: block; width: 100%; height: 72px; }
.edge path { filter: drop-shadow(0 -3px 4px rgba(0, 0, 0, 0.5)); }
.edge-to-moon { background: var(--ink); }
.edge-to-moon path { fill: var(--moon-dark); }
.edge-to-ink { background: var(--moon-dark); }
.edge-to-ink path { fill: var(--ink); }

/* ---------- Feito para o quarto escuro ---------- */

.quarto { padding: 64px 0 104px; background: var(--moon-dark); }
.quarto-inner { display: flex; flex-direction: column; gap: 44px; }
.quarto-head { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }

.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); column-gap: 72px; }
.faq-item { display: flex; flex-direction: column; gap: 10px; padding: 26px 0 30px; border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 1.4rem; line-height: 1.3; font-style: italic; }
.faq-item p { font-family: var(--font-sans); font-size: 1.12rem; line-height: 1.6; color: var(--muted); }

/* ---------- Preço ---------- */

.preco { padding: 0 0 120px; background: var(--moon-dark); }

.price-card {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--card);
}

.price-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 22px; }
.price-stack { display: flex; flex-direction: column; gap: 8px; }
.price-old { font-family: var(--font-sans); font-size: 1.5rem; line-height: 1; font-weight: 500; color: var(--muted); }
.price-old s { text-decoration-thickness: 2px; }
.price { font-size: clamp(4rem, 11vw, 6.5rem); line-height: 0.9; font-weight: 500; letter-spacing: -0.02em; }
.price-terms { padding-bottom: 6px; font-size: 1.45rem; line-height: 1.3; font-style: italic; color: var(--paper-soft); }

.price-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.price-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 1.2rem; line-height: 1.45; }
.price-list svg { margin-top: 6px; color: var(--candle); }

.price-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.price-actions .note { flex: 1 1 220px; }

/* ---------- Convite final e rodapé ---------- */

.final { padding: 80px 0 96px; }
.final-inner { max-width: 768px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.final-moon { color: var(--candle); }
.final-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 6px; }

.site-footer { padding: 24px 0 max(40px, env(safe-area-inset-bottom)); border-top: 1px solid #1a2140; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-name { font-family: var(--font-sc); font-weight: 500; font-size: 1.05rem; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-family: var(--font-sans);
  color: var(--muted);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--paper); }

/* ---------- Tablet e celular ---------- */

@media (max-width: 1023px) {
  .hero-moon { top: auto; bottom: 280px; right: 12%; }
}

@media (max-width: 640px) {
  .nav-anchors { display: none; }
  .hero-hills, .hero-scene { height: 190px; }
  .hero-body { padding-top: 40px; padding-bottom: 250px; }
  .hero-moon { bottom: 165px; right: 10%; transform: scale(0.7); }
  .noite { padding: 72px 0 80px; }
  .series { padding-bottom: 88px; }
  .phone { height: 620px; }
}

/* Celular pequeno (320px): o "Entrar" cabe na mesma linha do nome */
@media (max-width: 380px) {
  .site-header { gap: 8px; }
  .brand span { font-size: 1.25rem; }
  .nav-login { padding: 0 14px; }
  .tonight { padding: 22px 20px 20px; }
}

/* Quem pediu menos movimento no celular não vê as estrelas nem o vaga-lume se mexendo */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .twinkle, .firefly { animation: none; }
  .phone-screen, .reader, .moon-fill { transition: none; }
}
