/* Terço com Padre Pio — site de ajuda */
@font-face { font-family: 'Lora'; src: url('fonts/lora_regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('fonts/lora_medium.woff') format('woff'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('fonts/lora_italic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --habito: #3B2820;        /* marrom do hábito capuchinho */
  --habito-escuro: #24170F;
  --ouro: #E8C76A;          /* ouro das contas, sobre o marrom */
  --ouro-escuro: #7A5C12;   /* ouro legível sobre fundo claro */
  --papel: #FBFAF8;
  --tinta: #1C1A18;
  --cinza: #4A443E;
  --linha: #DAD4CD;
  --marrom: #6B4A3A;
  --serif: 'Lora', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--marrom); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ouro); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1080px, 100% - 48px); margin: 0 auto; }

/* ---------- Topo ---------- */
.top { background: var(--habito); color: #FBF3E6; }
.top nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.top nav a { color: #FBF3E6; text-decoration: none; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 500; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 15px; white-space: nowrap; }
.top nav ul a { opacity: .85; }
.top nav ul a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Abertura: o terço desenhado é o destaque ---------- */
.hero > * { min-width: 0; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 68px); line-height: 1.05; margin: 0 0 22px; letter-spacing: -.01em; }
.hero p { font-size: 19px; line-height: 1.6; max-width: 34em; margin: 0 0 30px; color: #EADFD2; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 26px; font-weight: 600; text-decoration: none; font-size: 16px; }
.btn.play { background: var(--ouro); color: var(--habito-escuro); }
.btn.play:hover { background: #F1D47F; }
.btn.ghost { color: #FBF3E6; border: 1px solid rgba(251,243,230,.45); }
.btn.ghost:hover { border-color: #FBF3E6; }
.rosary { position: relative; aspect-ratio: 3 / 4; max-height: 560px; justify-self: center; width: 100%; }
.rosary canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rosary figcaption { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 16px; color: #D9CBBB; min-height: 1.6em; }

/* ---------- Seções ---------- */
section { padding: 88px 0 24px; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--cinza); max-width: 36em; margin: 0 0 48px; }
h3 { font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1.25; margin: 0 0 10px; }

/* Passos (é uma sequência de verdade: do início ao fim de um terço) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: passo; }
.step { counter-increment: passo; display: grid; grid-template-columns: 1fr 280px; gap: 56px; align-items: center; padding: 36px 0; border-top: 1px solid var(--linha); }
.step:nth-child(even) { grid-template-columns: 280px 1fr; }
.step:nth-child(even) .phone { order: -1; }
.step.noimg { grid-template-columns: 1fr; }
.step .num::before { content: counter(passo); font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--ouro-escuro); display: block; margin-bottom: 12px; }
.step p { margin: 0 0 12px; max-width: 34em; color: var(--cinza); }
.step ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--cinza); max-width: 34em; }
.step li { margin: 4px 0; }
.step strong { color: var(--tinta); }

/* Moldura de celular para as telas */
.phone { background: #121010; padding: 9px; border-radius: 38px; box-shadow: 0 24px 50px rgba(59,40,32,.22); width: 280px; }
.phone img { border-radius: 30px; width: 100%; height: auto; aspect-ratio: 412 / 892; }

/* Mais recursos */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature .phone { width: 100%; max-width: 280px; margin-bottom: 26px; }
.feature p { margin: 0; color: var(--cinza); }

/* Perguntas */
.faq details { max-width: 760px; }
details { border-top: 1px solid var(--linha); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--linha); }
summary { cursor: pointer; font-family: var(--serif); font-size: 21px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--sans); font-size: 24px; line-height: 1; color: var(--ouro-escuro); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--cinza); margin: 12px 0 0; max-width: 40em; }

/* Rodapé */
footer { margin-top: 96px; background: var(--habito-escuro); color: #D9CBBB; padding: 40px 0; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
footer a { color: #FBF3E6; }
footer .prayer { font-family: var(--serif); font-style: italic; color: #EADFD2; }

/* ---------- Página de leitura (política de privacidade) ---------- */
.doc { max-width: 720px; padding: 56px 0 0; }
.doc h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; margin: 0 0 10px; }
.doc .updated { color: var(--cinza); margin: 0 0 36px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc p, .doc li { color: #2E2A26; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--linha); }
.doc th { font-weight: 600; }
.summary-box { background: #F3E7DE; border-radius: 18px; padding: 22px 26px; margin: 0 0 8px; }
.summary-box p { margin: 0; color: #2B1A12; }

/* ---------- Telas menores ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 48px; }
  .rosary { max-height: 420px; order: -1; }
  .step, .step:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .step:nth-child(even) .phone { order: 0; }
  .phone { width: min(280px, 80%); }
  .features { grid-template-columns: 1fr; }
  .top nav ul { gap: 16px; }
}
@media (max-width: 520px) {
  .top nav ul li.opt { display: none; }
  section { padding-top: 64px; }
}
