:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --line: #E7E2D8;
  --line-strong: #CFC8BA;
  --text: #1C1B19;
  --muted: #6B675F;
  --primary: #2D5A47;
  --primary-hover: #24493A;
  --soft: #EDF3EF;
  --gold: #A9792A;
  --gold-soft: #F6EEDF;
  --danger: #A63D2F;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 24px;
  min-height: 100dvh;
}
h1, h2, h3 { text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--primary); }

.skip {
  position: absolute; left: 16px; top: -48px;
  background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 8px;
  transition: top 300ms var(--ease);
  z-index: 50;
}
.skip:focus { top: 8px; }

.shell { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }

/* Header */
.top {
  display: grid; grid-template-columns: 40px 1fr 40px; align-items: center;
  padding: 12px 16px; position: sticky; top: 0; background: var(--bg); z-index: 10;
}
.back {
  width: 40px; height: 40px; border: 0; background: transparent; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer; font-size: 20px;
  transition: background 300ms var(--ease), transform 300ms var(--ease);
}
.back:hover { background: var(--line); }
.back:active { transform: scale(0.96); }
.back[hidden] { visibility: hidden; display: grid; }
.logo { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 18px; line-height: 28px; }
.logo i { color: var(--primary); font-size: 24px; }

/* Progresso */
.progress { padding: 0 16px 8px; }
.progress[hidden] { display: none; }
.progress-label { text-align: center; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.progress-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.progress-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--primary); transition: width 600ms var(--ease); }

/* Telas */
main { flex: 1; display: flex; flex-direction: column; }
.screen {
  flex: 1; display: flex; flex-direction: column; padding: 16px 16px 32px;
  animation: enter 500ms var(--ease) both;
}
@keyframes enter { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.screen h1 { font-size: 30px; line-height: 36px; text-align: center; margin-bottom: 12px; }
.screen h2 { font-size: 24px; line-height: 32px; text-align: center; margin-bottom: 8px; }
.lead { text-align: center; color: var(--muted); margin-bottom: 24px; }
.hint { text-align: center; color: var(--muted); font-size: 14px; line-height: 20px; margin-bottom: 16px; }
.hero-title {
  background: linear-gradient(90deg, #000000, #666666);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  max-width: 680px; margin-left: auto; margin-right: auto;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: center;
  background: var(--soft); color: var(--primary); font-weight: 600;
  font-size: 14px; line-height: 20px; padding: 4px 12px; border-radius: 9999px; margin-bottom: 16px;
}

/* Opções */
.options { display: flex; flex-direction: column; gap: 12px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; padding: 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; cursor: pointer; font-weight: 500;
  transition: border-color 300ms var(--ease), background 300ms var(--ease), transform 300ms var(--ease);
}
.opt:hover { border-color: var(--line-strong); }
.opt:active { transform: scale(0.98); }
.opt:focus-visible, .btn:focus-visible, .card-pick:focus-visible, .back:focus-visible, .chip:focus-visible, .plan:focus-within {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
.opt .mark {
  flex: none; width: 24px; height: 24px; border: 2px solid var(--line-strong); border-radius: 9999px;
  display: grid; place-items: center; color: #fff; font-size: 14px;
  transition: background 300ms var(--ease), border-color 300ms var(--ease);
}
.opt.multi .mark { border-radius: 8px; }
.opt.on { border-color: var(--primary); background: var(--soft); }
.opt.on .mark { background: var(--primary); border-color: var(--primary); }
.opt .mark i { opacity: 0; transition: opacity 200ms var(--ease); }
.opt.on .mark i { opacity: 1; }
.opt-main { display: flex; align-items: center; gap: 12px; }
.opt-main > i { font-size: 24px; color: var(--primary); }

/* Cards com imagem (sexo e idade) */
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card-pick {
  position: relative; border: 1px solid var(--line); background: var(--surface); border-radius: 16px;
  overflow: hidden; cursor: pointer; aspect-ratio: 4 / 5; padding: 0;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease);
}
.card-pick:hover { border-color: var(--line-strong); }
.card-pick:active { transform: scale(0.98); }
.card-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-pick .ph-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; background: var(--soft);
  color: var(--primary); font-size: 64px;
}
.card-pick .pick-label {
  position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(255, 255, 255, 0.94);
  border-radius: 8px; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center;
  font-weight: 600;
}
.card-pick .pick-label i { width: 24px; height: 24px; border-radius: 9999px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 14px; }
.card-pick.on { border-color: var(--primary); }

.legal { margin-top: 24px; text-align: center; font-size: 12px; line-height: 16px; color: var(--muted); }
.legal a { color: var(--muted); }

/* Botões */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 48px; padding: 8px 12px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none;
  transition: background 300ms var(--ease), transform 300ms var(--ease), opacity 300ms var(--ease);
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--bg); }
.footer-cta { margin-top: auto; padding-top: 16px; position: sticky; bottom: 0; background: var(--bg); padding-bottom: 8px; }

/* Telas de respiro */
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.verse { font-size: 18px; line-height: 28px; font-weight: 500; text-align: center; }
.verse-ref { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: var(--primary); font-weight: 600; font-size: 14px; line-height: 20px; }
.steps { display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.step-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--primary); display: grid; place-items: center; font-size: 20px; }
.step b { display: block; }
.step p { color: var(--muted); font-size: 14px; line-height: 20px; }
.icon-hero { width: 64px; height: 64px; border-radius: 16px; background: var(--soft); color: var(--primary); display: grid; place-items: center; font-size: 32px; margin: 16px auto 24px; }

/* Esforço */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14px; line-height: 20px; }
.field input, .field textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  transition: border-color 300ms var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--soft); }
.field .err { color: var(--danger); font-size: 14px; line-height: 20px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }
.counter { text-align: right; font-size: 12px; line-height: 16px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 9999px; padding: 4px 12px; font-size: 14px; line-height: 20px; cursor: pointer; transition: border-color 300ms var(--ease), transform 300ms var(--ease); }
.chip:hover { border-color: var(--primary); }
.chip:active { transform: scale(0.98); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--muted); cursor: pointer; margin-bottom: 16px; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); margin-top: 2px; flex: none; }
.privacy { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 12px; line-height: 16px; color: var(--muted); }
.privacy i { font-size: 20px; color: var(--primary); }

/* Perfil */
.scale { margin: 8px 0 24px; }
.scale-track { position: relative; height: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.scale-track span { border-radius: 8px; }
.scale-track span:nth-child(1) { background: #E7D3B0; }
.scale-track span:nth-child(2) { background: #BFD4C8; }
.scale-track span:nth-child(3) { background: var(--primary); }
.scale-dot { position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 9999px; background: #fff; border: 3px solid var(--text); transform: translate(-50%, -50%); transition: left 1200ms var(--ease); left: 0; }
.scale-labels { display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--muted); margin-top: 8px; }
.scale-labels .now { color: var(--text); font-weight: 700; }
.status { display: flex; gap: 12px; background: var(--soft); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; line-height: 20px; }
.status i { font-size: 24px; color: var(--primary); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fact { background: var(--bg); border-radius: 12px; padding: 12px; }
.fact span { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.fact b { font-size: 14px; line-height: 20px; }
.note { margin-top: 16px; font-size: 12px; line-height: 16px; color: var(--muted); text-align: center; }

/* Sim / Não */
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.yesno button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; transition: transform 300ms var(--ease), border-color 300ms var(--ease); }
.yesno button:hover { border-color: var(--line-strong); }
.yesno button:active { transform: scale(0.98); }
.yesno i { font-size: 28px; }
.yesno .no i { color: var(--danger); }
.yesno .yes i { color: var(--primary); }

/* Loading */
.load-steps { display: flex; flex-direction: column; gap: 16px; margin: 8px 0 24px; }
.load-step .row { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; line-height: 20px; color: var(--muted); margin-bottom: 8px; transition: color 300ms var(--ease); }
.load-step.active .row, .load-step.done .row { color: var(--text); }
.load-step .bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.load-step .bar span { display: block; height: 100%; width: 0; background: var(--primary); }
.load-step.done .pct::after { content: ""; }
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.preview h3 { font-size: 14px; line-height: 20px; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.preview ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.preview li { display: flex; gap: 8px; align-items: center; font-size: 14px; line-height: 20px; animation: enter 500ms var(--ease) both; }
.preview li b { color: var(--primary); min-width: 48px; }
.skel { height: 20px; border-radius: 8px; background: linear-gradient(90deg, var(--line) 0%, #F1EDE5 50%, var(--line) 100%); background-size: 200% 100%; animation: shimmer 1400ms linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.sheet-backdrop { position: fixed; inset: 0; background: rgba(28, 27, 25, 0.4); backdrop-filter: blur(4px); z-index: 40; display: flex; align-items: flex-end; justify-content: center; animation: fade 300ms var(--ease) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet { width: 100%; max-width: 480px; background: var(--surface); border-radius: 24px 24px 0 0; padding: 24px 16px 32px; animation: up 500ms var(--ease) both; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.sheet small { display: block; text-align: center; color: var(--muted); font-size: 12px; line-height: 16px; margin-bottom: 8px; }
.sheet h2 { font-size: 24px; line-height: 32px; text-align: center; margin-bottom: 24px; }

/* Resultado */
.result-head { text-align: center; margin-bottom: 24px; }
.result-head .badge { margin-bottom: 12px; }
.intro { color: var(--muted); text-align: center; }
.day-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 16px; margin-bottom: 24px; }
.day-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.day-tag { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--primary); background: var(--soft); padding: 4px 8px; border-radius: 9999px; }
.day-min { font-size: 12px; line-height: 16px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.day-card h3 { font-size: 24px; line-height: 32px; margin-bottom: 4px; }
.day-ref { color: var(--muted); font-size: 14px; line-height: 20px; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.leva { display: flex; flex-direction: column; gap: 8px; }
.leva-item { background: var(--bg); border-radius: 16px; padding: 16px; }
.leva-item h4 { display: flex; gap: 8px; align-items: center; font-size: 14px; line-height: 20px; font-weight: 700; margin-bottom: 4px; }
.leva-item h4 i { color: var(--primary); font-size: 20px; }
.leva-item p { font-size: 14px; line-height: 20px; }
.leva-item.pray { background: var(--gold-soft); }
.leva-item.pray h4 i { color: var(--gold); }
.diary { margin-top: 12px; }
.checkin { margin-top: 16px; }
.checkin.done { background: var(--gold); }
.streak { display: none; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--gold); }
.streak.on { display: flex; }

.map h3 { font-size: 20px; line-height: 28px; margin-bottom: 4px; }
.map > p { color: var(--muted); font-size: 14px; line-height: 20px; margin-bottom: 16px; }
.map-week { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--muted); margin: 16px 0 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.map-list { display: flex; flex-direction: column; gap: 8px; }
.map-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.map-row .num { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--muted); }
.map-row .t { flex: 1; font-size: 14px; line-height: 20px; font-weight: 600; }
.map-row .t small { display: block; font-weight: 400; color: var(--muted); filter: blur(4px); user-select: none; }
.map-row i { color: var(--muted); }
.map-row.open { border-color: var(--primary); }
.map-row.open .num { background: var(--primary); color: #fff; }
.map-row.open .t small { filter: none; }
.map-more { margin-top: 8px; }
.map-rest { margin-top: 8px; }
.map-rest summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 12px; padding: 12px; font-size: 14px; line-height: 20px; font-weight: 600; }
.map-rest summary::-webkit-details-marker { display: none; }
.map-rest summary span { color: var(--muted); font-weight: 400; margin-left: auto; }
.map-rest summary i { transition: transform 300ms var(--ease); }
.map-rest[open] summary i { transform: rotate(180deg); }
.map-rest summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.next-day { display: none; margin-top: 12px; gap: 8px; text-decoration: none; }
.next-day.on { display: flex; justify-content: center; align-items: center; }

/* Barra de compra fixa no resultado */
.buybar { position: fixed; left: 50%; bottom: 0; z-index: 20; width: 100%; max-width: 480px; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 0 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 32px rgba(28, 27, 25, 0.12); transform: translate(-50%, 120%); transition: transform 500ms var(--ease); }
.buybar.on { transform: translate(-50%, 0); }
.buybar div { flex: 1; min-width: 0; }
.buybar b { display: block; font-size: 14px; line-height: 20px; }
.buybar small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.buybar .btn { width: auto; margin: 0; padding: 8px 24px; text-decoration: none; flex: none; }

/* Oferta */
.offer { margin-top: 48px; scroll-margin-top: 64px; }
.offer h2 { font-size: 30px; line-height: 36px; text-align: center; margin-bottom: 8px; }
.plans { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.plan { position: relative; display: block; background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; transition: border-color 300ms var(--ease); }
.plan input { position: absolute; opacity: 0; }
.plan.on { border-color: var(--primary); }
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.plan-name { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.plan-name .mark { width: 20px; height: 20px; border-radius: 9999px; border: 2px solid var(--line-strong); display: inline-block; transition: border 300ms var(--ease); }
.plan.on .plan-name .mark { border: 6px solid var(--primary); }
.plan-price { text-align: right; }
.plan-price b { font-size: 24px; line-height: 32px; display: block; white-space: nowrap; }
.plan-price small { color: var(--muted); font-size: 12px; line-height: 16px; }
.plan-tag { display: inline-block; margin-top: 8px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--gold); background: var(--gold-soft); border-radius: 9999px; padding: 2px 8px; }
.plan ul { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 20px; }
.plan li { display: flex; gap: 8px; }
.plan li i { color: var(--primary); margin-top: 2px; }
.cta-note { text-align: center; font-size: 12px; line-height: 16px; color: var(--muted); margin-top: 8px; display: flex; gap: 4px; justify-content: center; align-items: center; }
.cta-err { color: var(--danger); text-align: center; font-size: 14px; line-height: 20px; margin-top: 8px; display: none; }
.cta-err.on { display: block; }
.guarantee { display: flex; gap: 16px; align-items: flex-start; background: var(--soft); border-radius: 16px; padding: 16px; margin: 24px 0; }
.guarantee i { font-size: 32px; color: var(--primary); }
.guarantee b { display: block; margin-bottom: 4px; }
.guarantee p { font-size: 14px; line-height: 20px; }

.tagline { padding: 64px 0; }
.tagline p { font-size: 36px; line-height: 40px; font-weight: 700; max-width: 680px; margin: 0 auto; }
.tagline .w { color: rgba(28, 27, 25, 0.28); transition: color 700ms var(--ease); }
.tagline .w.lit { color: var(--text); }

.offer-section { margin-bottom: 32px; }
.offer-section h3 { font-size: 20px; line-height: 28px; margin-bottom: 12px; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { transition: transform 300ms var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 20px; }

.site-foot { padding: 32px 16px; text-align: center; font-size: 12px; line-height: 16px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.site-foot nav { display: flex; justify-content: center; gap: 16px; }
.site-foot a { color: var(--muted); }

/* Cookies */
.cookies { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; padding: 8px; animation: up 500ms var(--ease) both; }
.cookies-box { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 8px 32px rgba(28, 27, 25, 0.12); }
.cookies-box b { display: block; margin-bottom: 4px; }
.cookies-box p { font-size: 14px; line-height: 20px; color: var(--muted); margin-bottom: 12px; }
.cookies-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
