:root {
  --bg: #f3efe6;
  --bg-deep: #e7e0d2;
  --ink: #1c2a32;
  --muted: #5c6b73;
  --brand: #1a3a4a;
  --accent: #b08d57;
  --card: rgba(255, 252, 246, 0.92);
  --danger: #8b2e2e;
  --ok: #2f6b4f;
  --shadow: 0 18px 50px rgba(26, 58, 74, 0.12);
  --radius: 18px;
  --font: "Source Sans 3", system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(176, 141, 87, 0.15), transparent 35%),
    linear-gradient(180deg, #f7f3eb 0%, var(--bg) 45%, #ebe4d7 100%);
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); }
.wrap { width: min(1100px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(640px, calc(100% - 2rem)); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: .5rem 1rem;
}
.skip-link:focus { left: 1rem; z-index: 99; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(243, 239, 230, 0.85);
  border-bottom: 1px solid rgba(26, 58, 74, 0.08);
}
.header-inner, .footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 0;
}
.brand {
  font-family: var(--display);
  font-size: 1.55rem;
  text-decoration: none;
  color: var(--brand);
  font-weight: 700;
}
.brand span { color: var(--accent); margin-left: .25rem; }
.nav { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.inline-form { display: inline; }
.linkish {
  background: none; border: 0; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; padding: 0;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff !important; text-decoration: none;
  border: 0; border-radius: 999px; padding: .85rem 1.35rem;
  font-weight: 700; cursor: pointer; box-shadow: var(--shadow);
}
.btn-small { padding: .55rem 1rem; font-size: .92rem; }
.btn-ghost {
  background: transparent; color: var(--brand) !important;
  border: 1px solid rgba(26, 58, 74, 0.25); box-shadow: none;
}

.hero, .chapter-hero, .prayer-visual {
  position: relative;
  background:
    linear-gradient(180deg, rgba(14, 28, 36, 0.55), rgba(14, 28, 36, 0.72)),
    var(--hero) center/cover no-repeat;
  color: #fff;
  min-height: 72vh;
  display: grid;
  align-items: end;
  padding: 4rem 0 3rem;
}
.chapter-hero, .prayer-visual { min-height: 42vh; align-items: center; }
.hero-copy h1, .chapter-hero h1, .prayer-visual h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 1.02;
  margin: .2rem 0 .8rem;
}
.lead { font-size: 1.2rem; max-width: 36rem; opacity: .95; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; opacity: .9;
}
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

.section { padding: 3rem 0; }
.section h2, .library-head h1, .narrow h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 .5rem;
}
.section-lead { color: var(--muted); max-width: 40rem; }

.feature-grid, .chapter-grid, .stats {
  display: grid; gap: 1rem; margin-top: 1.5rem;
}
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature-grid article, .card-form, .price-box {
  background: var(--card);
  border: 1px solid rgba(26, 58, 74, 0.08);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.chapter-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.chapter-card {
  min-height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(14,28,36,.15), rgba(14,28,36,.78)),
    var(--card) center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
}
.link-card { text-decoration: none; color: #fff; }
.chapter-card-body { padding: 1.2rem; }
.muted, .muted-light { color: var(--muted); }
.muted-light { color: rgba(255,255,255,.8); }

.flashes { padding-top: 1rem; }
.flash { padding: .8rem 1rem; border-radius: 12px; margin-bottom: .5rem; background: #fff; }
.flash-success { border-left: 4px solid var(--ok); }
.flash-danger { border-left: 4px solid var(--danger); }
.flash-warning, .flash-info { border-left: 4px solid var(--accent); }

.card-form { display: grid; gap: .9rem; margin: 1.2rem 0; }
.card-form label { display: grid; gap: .35rem; font-weight: 600; }
.input {
  width: 100%; border: 1px solid rgba(26,58,74,.2); border-radius: 12px;
  padding: .8rem 1rem; font: inherit; background: #fff;
}
.check { display: flex !important; align-items: center; gap: .5rem; font-weight: 500 !important; }
.error { color: var(--danger); font-size: .9rem; font-weight: 500; }

.library-head, .search-form, .pager, .admin-actions {
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center;
}
.search-form { flex: 1; justify-content: flex-end; }

.prayer-list { display: grid; gap: .75rem; margin-top: 1.2rem; }
.prayer-row {
  display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start;
  text-decoration: none; color: inherit; background: var(--card);
  border-radius: 14px; padding: 1rem 1.1rem; border: 1px solid rgba(26,58,74,.08);
}
.prayer-row em { display: block; color: var(--muted); font-style: normal; margin-top: .25rem; font-size: .95rem; }
.num {
  font-family: var(--display); font-size: 1.4rem; color: var(--accent); font-weight: 700;
}

.prayer-content { padding: 2rem 0 3rem; }
.block { background: var(--card); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.block h2 { font-family: var(--display); margin-top: 0; }
.verse-block blockquote {
  margin: 0; font-family: var(--display); font-size: 1.45rem; line-height: 1.35; color: var(--brand);
}
.declare { border-left: 4px solid var(--accent); }
.pager { margin-top: 1.5rem; }
.pager a { font-weight: 700; text-decoration: none; }

.price-box .price {
  font-family: var(--display); font-size: 3rem; margin: 0; color: var(--brand);
}
.stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stats div {
  background: var(--card); border-radius: 14px; padding: 1rem; text-align: center; box-shadow: var(--shadow);
}
.stats strong { display: block; font-size: 1.6rem; }
.table-wrap { overflow: auto; background: var(--card); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .75rem; border-bottom: 1px solid rgba(26,58,74,.08); text-align: left; font-size: .92rem; }

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 1.25rem;
}
.admin-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(26,58,74,.15);
  color: var(--ink);
  background: rgba(255,252,246,.8);
}
.admin-nav a.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.admin-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 1rem;
}
.admin-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}
.admin-card h2 { margin-top: 0; font-size: 1.15rem; }
.admin-meta { list-style: none; padding: 0; margin: 0 0 1rem; line-height: 1.7; }
.check-inline { display: flex; gap: .5rem; align-items: center; margin: .8rem 0; }
.ok { color: var(--ok); font-weight: 700; }
.danger { color: var(--danger); font-weight: 700; }
.page-admin .card-form label { display: block; margin-bottom: .75rem; }
.page-admin .card-form .input { width: 100%; margin-top: .3rem; }

.site-footer { border-top: 1px solid rgba(26,58,74,.08); margin-top: 2rem; padding-bottom: 5.5rem; }
.plan-list { line-height: 1.7; }

/* Cards com imagem real por situação */
.situation-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 230px;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--shadow);
  background: #1a3a4a;
}
.situation-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}
.situation-card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.15rem 1.2rem 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(14, 28, 36, 0.88));
}
.situation-card h3 {
  margin: .2rem 0 .35rem;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.15;
}

.situation-hero {
  position: relative;
  min-height: 46vh;
  overflow: hidden;
  color: #fff;
}
.situation-hero-sm { min-height: 34vh; }
.situation-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.situation-hero-overlay {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  align-items: end;
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, rgba(14,28,36,.35), rgba(14,28,36,.78));
}
.situation-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
  margin: .25rem 0 .8rem;
}
.situation-hero .btn-ghost {
  color: #fff !important;
  border-color: rgba(255,255,255,.45);
}

/* Bottom nav (mobile) */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: .15rem;
  padding: .45rem .35rem calc(.45rem + env(safe-area-inset-bottom));
  background: rgba(255, 252, 246, 0.96);
  border-top: 1px solid rgba(26, 58, 74, 0.1);
  backdrop-filter: blur(14px);
  box-shadow: 0 -10px 30px rgba(26, 58, 74, 0.08);
}
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  text-decoration: none;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  min-height: 3.1rem;
  border-radius: 12px;
}
.bn-item svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}
.bn-item.is-active {
  color: var(--brand);
  background: rgba(176, 141, 87, 0.14);
}
.bn-form { margin: 0; }
.bn-button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.bn-form button {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  cursor: pointer;
  padding: 0;
}

/* Install 1-tap */
.install-page { text-align: center; }
.install-icon {
  margin: 0 auto 1rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.btn-install-lg {
  width: min(100%, 320px);
  font-size: 1.05rem;
  padding: 1rem 1.4rem;
  margin: 1rem auto;
}
.install-hint { margin-top: 1rem; }

.install-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(14, 28, 36, 0.55);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.install-modal[hidden] { display: none !important; }
.install-modal-card {
  width: min(420px, 100%);
  background: #fffdf8;
  border-radius: 20px;
  padding: 1.4rem 1.3rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}
.install-modal-card img {
  margin: 0 auto .7rem;
  border-radius: 14px;
}
.install-modal-card h2 {
  font-family: var(--display);
  margin: 0 0 .5rem;
}
.install-modal-card .btn { width: 100%; margin-top: .55rem; }
.install-close {
  position: absolute;
  right: .7rem;
  top: .4rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.ios-steps {
  text-align: left;
  margin-top: 1rem;
  background: rgba(176, 141, 87, 0.12);
  border-radius: 12px;
  padding: .8rem 1rem;
}
.ios-steps ol { margin: .4rem 0 0; padding-left: 1.1rem; }

.install-banner {
  position: fixed;
  left: .75rem;
  right: .75rem;
  bottom: calc(4.4rem + env(safe-area-inset-bottom));
  z-index: 60;
}
.install-banner[hidden] { display: none !important; }
.install-banner-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  justify-content: space-between;
  background: #1a3a4a;
  color: #fff;
  border-radius: 16px;
  padding: .9rem 1rem;
  box-shadow: var(--shadow);
}
.install-banner-inner span {
  display: block;
  opacity: .85;
  font-size: .9rem;
  margin-top: .15rem;
}
.install-banner-actions {
  display: flex;
  gap: .7rem;
  align-items: center;
}
.install-banner .btn { background: #b08d57; }
.install-banner .linkish { color: #fff; }

.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: #1a3a4a;
  color: #fff;
  padding: .55rem 1rem;
  padding-top: calc(.55rem + env(safe-area-inset-top));
}
.offline-banner[hidden] { display: none !important; }
.offline-banner-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  align-items: baseline;
  font-size: .92rem;
}
.offline-banner-inner span { opacity: .9; }
body:has(#offlineBanner:not([hidden])) .site-header {
  top: 2.6rem;
}
[data-offline-panel][data-ready="1"] .btn[data-offline-prepare] {
  background: var(--ok);
}

@media (min-width: 901px) {
  .install-banner { bottom: 1.2rem; left: auto; right: 1.2rem; width: min(420px, calc(100% - 2rem)); }
}

@media (max-width: 900px) {
  .bottom-nav { display: grid; }
  .site-header .nav { display: none; }
  .main { padding-bottom: 1rem; }
}


/* Proteção de conteúdo (deterrente) */
.protect-zone .protected-content,
body[data-protect="1"] .protect-zone {
  -webkit-user-select: none;
  user-select: none;
}
@media print {
  body[data-protect="1"] * { display: none !important; }
  body[data-protect="1"]::after {
    content: "Conteúdo protegido — acesse pelo site/app.";
    display: block !important;
    padding: 2rem;
    font-size: 1.2rem;
  }
}

.wm-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  background-image: repeating-linear-gradient(
    -28deg,
    transparent 0 120px,
    rgba(26, 58, 74, 0.045) 120px 240px
  );
  mix-blend-mode: multiply;
}
.wm-overlay::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: rgba(26, 58, 74, 0.08);
  transform: rotate(-24deg);
  white-space: pre-wrap;
  text-align: center;
  line-height: 2.2;
}

@media (max-width: 720px) {
  .hero { min-height: 78vh; }
  .nav a { font-size: .88rem; }
}

/* Progresso + checklist + áudio */
.progress-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  margin: 1.2rem 0 1.8rem;
}
.progress-main, .progress-today, .audio-player, .check-item {
  background: var(--card);
  border: 1px solid rgba(26,58,74,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.progress-main, .progress-today { padding: 1.2rem 1.3rem; }
.progress-main h2, .progress-today h3 {
  font-family: var(--display);
  margin: .2rem 0 .7rem;
}
.progress-bar {
  height: .7rem;
  background: rgba(26,58,74,.1);
  border-radius: 999px;
  overflow: hidden;
  margin: .6rem 0;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1a3a4a, #b08d57);
}
.cycle-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-content: start; padding: .2rem 0; }
.chip {
  text-decoration: none;
  color: var(--brand);
  border: 1px solid rgba(26,58,74,.18);
  border-radius: 999px;
  padding: .45rem .8rem;
  font-size: .86rem;
  font-weight: 700;
  background: #fff;
}
.chip.is-on { background: var(--brand); color: #fff; }

.checklist { display: grid; gap: .7rem; }
.check-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .8rem;
  align-items: center;
  padding: .85rem 1rem;
}
.check-item.is-done { border-color: rgba(47, 107, 79, .35); background: rgba(47, 107, 79, .06); }
.check-box {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 2px solid rgba(26,58,74,.25);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  color: var(--ok);
}
.check-item.is-done .check-box {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.check-body h3 { margin: .15rem 0; font-size: 1.05rem; }
.check-form { margin: 0; }

.audio-player { padding: 1rem 1.1rem; margin-bottom: 1rem; }
.audio-top { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.audio-controls { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.audio-rate {
  display: flex;
  gap: .4rem;
  align-items: center;
  font-size: .9rem;
  color: var(--muted);
  min-width: 0;
}
.audio-rate select {
  border-radius: 8px;
  border: 1px solid rgba(26,58,74,.2);
  padding: .4rem .55rem;
  background: #fff;
  color: var(--text);
  max-width: 100%;
}
.audio-rate select[data-audio-voice],
.audio-voice-select {
  min-width: min(100%, 16rem);
  width: min(100%, 18rem);
  max-width: 100%;
}
.audio-note { margin: .7rem 0 0; font-size: .88rem; }
.audio-native {
  display: block;
  width: 100%;
  margin-top: .85rem;
  border-radius: 10px;
}

.situation-list {
  display: grid;
  gap: .65rem;
  margin-top: .9rem;
}
.situation-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: .95rem 1.05rem;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(26,58,74,.12);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.situation-link:hover {
  border-color: rgba(26,58,74,.35);
  transform: translateY(-1px);
}
.situation-link strong { font-size: 1.02rem; }
.situation-link span { color: var(--muted); font-size: .92rem; text-align: right; }
.situation-card-plain {
  min-height: 8rem;
  background: linear-gradient(160deg, rgba(26,58,74,.08), rgba(255,255,255,.9));
}
.situation-card-plain img { display: none; }
.situation-card .eyebrow { color: rgba(255,255,255,.82); }
.situation-card .muted-light { color: rgba(255,255,255,.78); }

.journal-form {
  display: grid;
  gap: .9rem;
  max-width: 40rem;
}
.journal-form label {
  display: grid;
  gap: .35rem;
  font-weight: 600;
  color: var(--brand);
}
.journal-form textarea.input,
.journal-form input.input {
  font-weight: 400;
  width: 100%;
  min-height: 2.6rem;
}
.narrow-form .section-lead { max-width: 36rem; }

.day-complete-form { margin-bottom: 1rem; }

.read-also {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text);
}
.reflection-block .reflection-q {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--brand);
}
.keywords {
  margin: 1.25rem 0 0;
  font-size: .92rem;
  color: var(--muted);
  letter-spacing: .02em;
}
.guide-meta p { color: var(--muted); }

.lead-prayer {
  margin: 0 0 2.25rem;
  padding: 1.4rem 0 2rem;
  border-bottom: 1px solid rgba(26, 58, 74, 0.12);
}
.lead-prayer h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0.2rem 0 0.8rem;
}
.lead-prayer h3 { font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lead-upsell { text-align: center; }
.hero-lead .lead { max-width: 36rem; }

@media (max-width: 800px) {
  .progress-panel { grid-template-columns: 1fr; }
  .check-item { grid-template-columns: auto 1fr; }
  .check-actions { grid-column: 2; }
}

