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

:root {
  --ink: #1C1409;
  --brown: #3A2A1C;
  --brown-mid: #5A3E28;
  --gold: #B8914A;
  --gold-l: #CDA55E;
  --gold-d: #8A6830;
  --cream: #F2EDE3;
  --cream-d: #E8E0D0;
  --parch: #DDD4BE;
  --blue: #3A6A9A;
  --text: #2C1F10;
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== SPLASH ===== */
#splash {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #D5D0E6 0%, #ECE9E2 48%, #F2CEBC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .8s ease, visibility .8s ease;
  padding: 48px 36px;
}

#splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.sp-wrap {
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.sp-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp .9s ease .15s forwards;
}

.sp-pill {
  width: 13px;
  height: 30px;
  background: #8B2635;
  border-radius: 20px;
}

.sp-badge-lbl {
  font-family: "Crimson Pro", serif;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(58, 42, 28, .45);
}

.sp-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(34px, 8vw, 52px);
  font-weight: 600;
  font-style: italic;
  color: var(--brown);
  line-height: 1.12;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp .9s ease .4s forwards;
}

.sp-body {
  font-family: "Crimson Pro", serif;
  font-size: 18px;
  color: rgba(58, 42, 28, .6);
  line-height: 1.78;
  font-weight: 400;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp .9s ease .6s forwards;
}

.s-btn {
  align-self: center;
  background: var(--brown);
  border: none;
  color: var(--cream);
  font-family: "Crimson Pro", serif;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 12px 32px;
  cursor: pointer;
  transition: background .3s;
  opacity: 0;
  animation: fadeUp .9s ease .8s forwards;
}

.s-btn:hover {
  background: var(--ink)
}

/* ===== APP ===== */
#app {
  display: none;
  min-height: 100vh;
  flex-direction: column
}

#app.visible {
  display: flex
}

/* ===== HEADER â€” fundo escuro, fino, exatamente como no print ===== */
.hdr {
  background: var(--ink);
  border-bottom: .5px solid rgba(184, 145, 74, .2);
  height: 44px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.hdr-left {
  display: flex;
  align-items: center;
  gap: 8px
}

.hdr-back {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  opacity: .6;
  transition: opacity .2s;
  flex-shrink: 0;
}

.hdr-back:hover {
  opacity: 1
}

.hdr-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: .03em;
  color: var(--gold);
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: 10px
}

.hdr-badge {
  font-family: "Crimson Pro", serif;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(184, 145, 74, .1);
  border: .5px solid rgba(184, 145, 74, .3);
  border-radius: 20px;
  padding: 3px 12px;
}

.hdr-menu {
  display: flex;
  background: none;
  border: .5px solid rgba(184, 145, 74, .25);
  color: var(--gold);
  font-size: 16px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
}

/* ===== LAYOUT ===== */
.app-body {
  display: flex;
  flex: 1;
  overflow: hidden
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 248px;
  background: var(--ink);
  border-right: .5px solid rgba(184, 145, 74, .1);
  height: calc(100vh - 44px);
  position: fixed;
  left: -248px;
  top: 44px;
  z-index: 300;
  overflow-y: auto;
  padding: 16px 0;
  transition: left .3s ease;
}

.sidebar.open {
  left: 0;
}

.sidebar::-webkit-scrollbar {
  width: 2px
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(184, 145, 74, .15)
}

.sb-lbl {
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-d);
  padding: 0 18px;
  margin-bottom: 8px;
  opacity: .7;
}

.sb-phase {
  padding: 12px 18px 4px;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(184, 145, 74, .3);
  border-top: .5px solid rgba(184, 145, 74, .08);
  margin-top: 4px;
}

.di {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background .15s;
  border-left: 2px solid transparent;
}

.di:hover:not(.locked) {
  background: rgba(184, 145, 74, .05)
}

.di.active {
  background: rgba(184, 145, 74, .09);
  border-left-color: var(--gold)
}

.di.locked {
  cursor: not-allowed;
  opacity: .28
}

.di-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  border: .5px solid rgba(184, 145, 74, .2);
  color: var(--gold-d);
  background: rgba(184, 145, 74, .05);
  transition: all .2s;
}

.di.active .di-num {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 600
}

.di.done .di-num {
  background: rgba(184, 145, 74, .14);
  color: var(--gold)
}

.di-info {
  flex: 1;
  min-width: 0
}

.di-day {
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-d);
  opacity: .7;
  line-height: 1
}

.di-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  font-style: italic;
  color: rgba(242, 237, 227, .75);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.di.locked .di-title {
  color: rgba(242, 237, 227, .2)
}

.di-lock {
  font-size: 10px;
  color: rgba(184, 145, 74, .22);
  flex-shrink: 0
}

.sb-ov {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 200
}

/* ===== MAIN ===== */
.main {
  flex: 1;
  overflow-y: auto;
  background: var(--cream);
  min-height: calc(100vh - 44px);
}

/* =====================================================
   PAGE â€” fundo CREME como no print, nÃ£o escuro
   ===================================================== */
.pg {
  background: var(--cream);
  min-height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
}

/* ----- SEÃ‡ÃƒO LABEL (MEDITAÃ‡ÃƒO DO DIA / REFLEXÃƒO etc.) ----- */
/* Linha fina + texto uppercase pequeno + linha fina */
.sec-lbl {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 22px 22px 0;
}

.sec-lbl-line {
  flex: 1;
  height: .5px;
  background: var(--parch)
}

.sec-lbl-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brown-mid);
  padding: 0 12px;
  white-space: nowrap;
  opacity: .75;
  font-family: "Crimson Pro", serif;
}

/* ----- BLOCO TOPO: capa + tÃ­tulo ----- */
.top-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 22px 18px;
}

/* Capa do livro â€” retÃ¢ngulo escuro com bordas douradas */
.book-cover {
  width: 68px;
  min-width: 68px;
  background: var(--ink);
  border: .5px solid rgba(184, 145, 74, .35);
  border-radius: 1px;
  padding: 10px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 2px 4px 14px rgba(0, 0, 0, .35);
  position: relative;
}

.book-cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.book-cover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(184, 145, 74, .4), transparent);
}

.book-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
}

.book-days {
  font-size: 7px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(184, 145, 74, .55);
  margin-top: 2px;
}

.book-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--blue);
  margin-top: 4px;
}

/* TÃ­tulo Ã  direita da capa */
.title-col {
  flex: 1;
  padding-top: 4px
}

.title-day-lbl {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brown-mid);
  opacity: .6;
  margin-bottom: 6px;
  font-family: "Crimson Pro", serif;
}

.pg-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  font-style: italic;
  color: var(--brown);
  line-height: 1.15;
}

/* ----- VERSÃCULO â€” card escuro no fundo creme ----- */
.verse-wrap {
  padding: 0 22px
}

.verse-card {
  border-left: 2px solid var(--gold-d);
  padding: 10px 16px 12px;
}

.verse-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.65;
}

.verse-ref {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-d);
  opacity: .8;
  font-family: "Crimson Pro", serif;
}

/* ----- TEXTO CORRIDO (meditaÃ§Ã£o / reflexÃ£o) ----- */
/* No print: texto escuro sobre fundo creme, sem card */
.prose {
  padding: 14px 22px 0;
  font-size: 18px;
  color: var(--brown-mid);
  line-height: 1.82;
  font-weight: 500;
}

.prose p+p {
  margin-top: .9em
}

.prose em {
  color: var(--brown);
  font-style: italic
}

/* Pergunta em itÃ¡lico mais escuro */
.refq {
  padding: 12px 22px 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  opacity: .7;
  line-height: 1.65;
  color: #405BF9;
}

/* ----- ORAÃ‡ÃƒO ----- */
.prayer-wrap {
  padding: 0 22px
}

.prayer-box {
  background: var(--ink);
  border-top: 1.5px solid var(--gold-d);
  padding: 24px 26px 28px;
}

.prayer-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 300;
  color: rgba(242, 237, 227, .85);
  line-height: 1.75;
}

.prayer-amen {
  display: block;
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .6;
}

/* ----- EXERCÃCIO ----- */
.ex-wrap {
  padding: 0 22px
}

.ex-box {
  border: .5px solid var(--parch);
  background: rgba(255, 255, 255, .55);
  padding: 14px 16px;
  border-radius: 1px;
}

.ex-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  font-style: italic;
  color: var(--brown);
  margin-bottom: 10px;
}

.ex-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.ex-step {
  display: flex;
  gap: 10px;
  align-items: flex-start
}

.ex-n {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(184, 145, 74, .1);
  border: .5px solid rgba(184, 145, 74, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--gold-d);
  margin-top: 2px;
}

.ex-t {
  font-size: 13.5px;
  color: var(--brown-mid);
  line-height: 1.65
}

/* EspaÃ§o antes do nav */
.pg-end {
  height: 72px
}

/* ----- NAV FOOTER ----- */
.pg-nav {
  background: var(--cream-d);
  border-top: .5px solid var(--parch);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.nav-side-btn {
  background: none;
  border: none;
  font-family: “Crimson Pro”, serif;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brown-mid);
  cursor: pointer;
  padding: 6px 0;
  transition: color .2s;
  opacity: .55;
  min-width: 72px;
}

.nav-side-btn:hover:not(:disabled) {
  color: var(--brown);
  opacity: 1
}

.nav-side-btn:disabled {
  opacity: .15;
  cursor: not-allowed
}

.nav-cmp {
  background: var(--gold);
  color: var(--ink);
  font-family: “Crimson Pro”, serif;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: none;
  padding: 11px 28px;
  cursor: pointer;
  transition: background .2s;
}

.nav-cmp:hover {
  background: var(--gold-l)
}

.nav-cmp.done {
  background: rgba(184, 145, 74, .15);
  color: var(--gold);
  border: .5px solid rgba(184, 145, 74, .3);
  cursor: default
}

/* ----- LOCKED ----- */
.locked-pg {
  background: var(--cream);
  min-height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
}

.lk-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 64px;
  font-weight: 300;
  font-style: italic;
  color: var(--parch);
  line-height: 1;
  margin-bottom: 8px;
}

.lk-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 300;
  color: var(--brown-mid);
  margin-bottom: 10px;
  opacity: .6;
}

.lk-sub {
  font-size: 14px;
  color: var(--brown-mid);
  max-width: 320px;
  line-height: 1.7;
  opacity: .5
}

.lk-tag {
  margin-top: 16px;
  background: rgba(184, 145, 74, .08);
  border: .5px solid rgba(184, 145, 74, .18);
  padding: 6px 16px;
  color: var(--gold-d);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .7;
}

/* ===== MOBILE ===== */
@media(max-width:768px) {
  .sb-ov.active {
    display: block
  }

  .pg-title {
    font-size: 32px
  }

  .top-block {
    padding: 12px 16px 14px
  }

  .sec-lbl,
  .verse-wrap,
  .prose,
  .refq,
  .prayer-wrap,
  .ex-wrap {
    padding-left: 16px;
    padding-right: 16px
  }

  .verse-wrap,
  .prayer-wrap,
  .ex-wrap {
    padding-left: 16px;
    padding-right: 16px
  }

  .pg-nav {
    padding: 10px 16px
  }
}