/* Filhas da Palavra — estilo base (mesmo visual dos mockups aprovados) */

:root {
  --ground: #FBF6F3;
  --surface: #FFFFFF;
  --blush: #F3E1DD;
  --blush-line: #EBD6D1;
  --field-line: #DCC3BD;
  --rose: #9E4A5C;
  --rose-dark: #7E3646;
  --ink: #3A2A30;
  --muted: #6E5A60;
  --sage-bg: #EEF2EA;
  --sage: #5E7257;
  --sage-ink: #3F4D3A;
  --danger-bg: #FBE9E7;
  --danger: #A33A2C;
  --radius-lg: 26px;
  --radius-md: 18px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Mulish', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rose); }
a:hover { color: var(--rose-dark); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; }

/* Contêiner com largura de celular, centralizado também no computador */
.shell {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page { padding: 56px 24px 32px; display: flex; flex-direction: column; gap: 22px; flex-grow: 1; }
.page--center { justify-content: flex-start; padding-top: 72px; }

/* Marca */
.brand { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.brand__mark { width: 76px; height: 76px; border-radius: 50%; background: var(--blush); color: var(--rose); display: flex; align-items: center; justify-content: center; }
.brand__name { font-size: 36px; }
.brand__tagline { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--muted); }

/* Textos */
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); }
.lead { margin: 0; color: var(--muted); }
.small { font-size: 14px; color: var(--muted); margin: 0; }
.center { text-align: center; }

/* Formulários */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field input {
  height: 52px; padding: 0 16px; border: 1px solid var(--field-line); border-radius: 14px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px;
}
.field input:focus { outline: 3px solid rgba(158, 74, 92, 0.25); border-color: var(--rose); }
.field__hint { font-size: 13px; color: var(--muted); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 22px; border: 0; border-radius: 999px;
  background: var(--rose); color: #FFFFFF; font: inherit; font-weight: 700; font-size: 17px;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--rose-dark); color: #FFFFFF; }
.btn--block { width: 100%; }
.btn--ghost { background: var(--surface); color: var(--rose-dark); border: 1px solid var(--field-line); }
.btn--ghost:hover { background: var(--blush); color: var(--rose-dark); }
.link-right { align-self: flex-end; font-size: 14px; font-weight: 600; padding: 4px 0; }

/* Avisos */
.alert { border-radius: var(--radius-md); padding: 14px 16px; font-size: 15px; }
.alert--erro { background: var(--danger-bg); color: var(--danger); }
.alert--sucesso { background: var(--sage-bg); color: var(--sage-ink); }
.alert--info { background: var(--blush); color: var(--rose-dark); }

/* Cartões */
.card { background: var(--surface); border: 1px solid var(--blush-line); border-radius: var(--radius-lg); padding: 22px; }
.card--rose { background: var(--rose); border: 0; color: #FFFFFF; }
.card--rose .eyebrow { color: #F7E4E8; }

/* Topo da área logada */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topbar__date { margin: 0; font-size: 14px; color: var(--muted); }
.topbar__title { font-size: 34px; }

/* Navegação inferior */
.tabbar {
  position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--blush-line);
  display: flex; justify-content: space-around; padding: 10px 8px calc(14px + env(safe-area-inset-bottom));
}
.tabbar a, .tabbar button {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 72px; min-height: 44px;
  font: inherit; font-size: 12px; font-weight: 700; text-decoration: none; color: var(--muted);
  background: none; border: 0; cursor: pointer;
}
.tabbar .is-active { color: var(--rose); }

.inline-form { display: inline; margin: 0; }

/* ---------- Etapa 2: telas da jornada ---------- */

.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--blush-line); border-radius: 999px; padding: 8px 12px; font-size: 14px; font-weight: 700; color: var(--rose); white-space: nowrap; }

.today-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: #FFFFFF; background: var(--rose); border-radius: var(--radius-lg); padding: 22px; }
.today-card:hover { color: #FFFFFF; background: var(--rose-dark); }
.today-card__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #F7E4E8; }
.today-card__title { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.1; }
.today-card__meta { font-size: 14px; color: #F7E4E8; }
.today-card__cta { align-self: flex-start; margin-top: 4px; background: #FFFFFF; color: var(--rose-dark); font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 999px; }
.today-card--soft { background: var(--blush); color: var(--ink); }
.today-card--soft:hover { background: var(--blush); color: var(--ink); }
.today-card--soft .today-card__eyebrow, .today-card--soft .today-card__meta { color: var(--rose-dark); }

.garden { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.garden__item { aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.garden__item--done { background: var(--blush); color: var(--rose); border: 1px solid var(--blush); }
.garden__item--today { background: var(--surface); color: var(--rose); border: 2px dashed var(--rose); }
.garden__item--locked { background: var(--ground); color: #D9C7C3; border: 1px solid var(--blush-line); }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--blush-line); font-size: 15px; }
.list-plain li:last-child { border-bottom: 0; }

/* Tela do dia */
.back { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--blush-line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.day-title { font-size: 38px; line-height: 1.08; }
.notice { background: var(--sage-bg); color: var(--sage-ink); border-radius: var(--radius-md); padding: 12px 16px; font-size: 14px; }
.highlight { margin: 0; background: var(--blush); border-radius: var(--radius-md); padding: 18px 20px; font-family: var(--font-display); font-style: italic; font-size: 22px; line-height: 1.35; }
.highlight cite { display: block; margin-top: 6px; font-family: var(--font-body); font-style: normal; font-size: 13px; color: var(--muted); }
.step { display: flex; flex-direction: column; gap: 12px; }
.step__label { margin: 0; font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rose); }
.reading { background: var(--surface); border: 1px solid var(--blush-line); border-radius: var(--radius-lg); padding: 20px; font-family: var(--font-display); font-size: 20px; line-height: 1.55; }
.reading h3 { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 6px; letter-spacing: 0.06em; text-transform: uppercase; }
.reading p { margin: 0 0 14px; }
.reading sup { font-family: var(--font-body); font-size: 11px; font-weight: 700; color: var(--rose); margin-right: 3px; }
.reading__credit { font-family: var(--font-body); font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.prose p { margin: 0 0 14px; }
.prose h3 { font-family: var(--font-body); font-size: 17px; font-weight: 700; margin: 22px 0 8px; color: var(--ink); }
.reflect-box { background: var(--blush); border-radius: var(--radius-lg); padding: 20px; font-family: var(--font-display); font-size: 25px; font-weight: 600; line-height: 1.25; }
.practice-box { background: var(--sage-bg); border-radius: var(--radius-lg); padding: 18px 20px; color: var(--sage-ink); }
.prayer-box { font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 1.5; color: var(--ink); }
textarea { width: 100%; min-height: 140px; padding: 14px 16px; border: 1px solid var(--field-line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; resize: vertical; }
textarea:focus { outline: 3px solid rgba(158, 74, 92, 0.25); border-color: var(--rose); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--rose); }
.celebration { background: var(--surface); border: 2px solid var(--rose); border-radius: var(--radius-lg); padding: 26px 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.celebration__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--blush); color: var(--rose); display: flex; align-items: center; justify-content: center; }
.celebration h2 { font-size: 28px; }
.saved-note { background: var(--surface); border: 1px solid var(--blush-line); border-radius: var(--radius-md); padding: 14px 16px; font-size: 15px; white-space: pre-line; }

/* Diário */
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--blush); border-radius: 999px; padding: 5px; }
.tabs a { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--muted); }
.tabs a.is-active { background: var(--surface); color: var(--ink); }
.entry { background: var(--surface); border: 1px solid var(--blush-line); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.entry__head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.entry__head strong { color: var(--rose); }
.entry__body { margin: 0; font-size: 15px; white-space: pre-line; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: var(--sage-bg); color: var(--sage-ink); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.btn--small { min-height: 38px; padding: 8px 14px; font-size: 13px; }
.btn--link { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; padding: 0; }
.empty { text-align: center; color: var(--muted); padding: 32px 12px; }

/* Perfil */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--blush-line); border-radius: var(--radius-md); padding: 14px 8px; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: 30px; color: var(--rose); line-height: 1; }
.stat span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--blush); color: var(--rose); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 30px; font-weight: 700; flex-shrink: 0; }
.field select { height: 52px; padding: 0 16px; border: 1px solid var(--field-line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
details.card summary { cursor: pointer; font-weight: 700; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }

/* Boas-vindas */
.time-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.time-option { position: relative; }
.time-option input { position: absolute; opacity: 0; inset: 0; }
.time-option span { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; border: 1px solid var(--field-line); background: var(--surface); cursor: pointer; }
.time-option span strong { font-size: 15px; }
.time-option span small { font-size: 13px; color: var(--muted); }
.time-option input:checked + span { border: 2px solid var(--rose); background: var(--blush); }
.time-option input:focus-visible + span { outline: 3px solid rgba(158, 74, 92, 0.35); }

/* Conclusão */
.certificate { width: 100%; background: var(--surface); border: 1px solid #E2C9C3; border-radius: var(--radius-lg); padding: 26px 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }

/* Admin */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--blush-line); vertical-align: top; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.code { font-family: ui-monospace, Consolas, monospace; background: var(--ground); padding: 2px 6px; border-radius: 6px; }
