/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Garantia: qualquer elemento com "hidden" deve sumir */
[hidden] {
    display: none !important;
}

:root {
    --bg: #fbf7f1;
    --bg-2: #f4efe7;
    --card: #ffffff;
    --ink: #1f1a16;
    --muted: rgba(31, 26, 22, .65);
    --line: rgba(31, 26, 22, .12);

    --accent: #a87755;
    --accent-2: #d9c7b3;

    --ring-1: #ff3a7c;
    --ring-2: #ffb347;
    --ring-3: #b84dff;

    --shadow: 0 18px 50px rgba(0, 0, 0, .08);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, .06);

    --radius: 22px;
    --radius-sm: 16px;

    --serif: "Libre Baskerville", serif;
    --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    line-height: 1.6;
    color: var(--ink);
    background:
        radial-gradient(900px 500px at 15% 0%, rgba(168, 119, 85, .14), transparent 60%),
        radial-gradient(900px 500px at 85% 10%, rgba(217, 199, 179, .22), transparent 60%),
        var(--bg);
}

/* ===== Layout ===== */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.muted {
    color: var(--muted);
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--muted);
    display: inline-block;
}

/* ===== Topbar ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(251, 247, 241, .78);
    border-bottom: 1px solid var(--line);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
}

/* Ring + logo */
.brand__ring {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: conic-gradient(from 210deg,
            var(--ring-1),
            var(--ring-2),
            var(--ring-3),
            var(--ring-1));
    box-shadow: var(--shadow-soft);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.brand__logo {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: 999px;
    object-fit: cover;
    background: var(--bg);
    border: 1px solid var(--line);
}

.brand__text {
    font-family: var(--serif);
    letter-spacing: -0.3px;
}

.topnav {
    display: flex;
    gap: 16px;
}

.topnav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: .95rem;
    padding: 8px 10px;
    border-radius: 999px;
}

.topnav a:hover {
    color: var(--ink);
    background: rgba(31, 26, 22, .06);
}

/* ===== Hero ===== */
.hero {
    padding: 44px 0 18px;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.2fr .9fr;
    gap: 28px;
    align-items: center;
}

.logo {
    width: 132px;
    height: 132px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: "";
    position: absolute;
    inset: -22px;
    background:
        conic-gradient(from 210deg,
            rgba(255, 58, 124, .95),
            rgba(255, 179, 71, .95),
            rgba(184, 77, 255, .95),
            rgba(255, 58, 124, .95));
    filter: blur(10px);
    opacity: .35;
}

.logo::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--line);
}

.logo__img {
    position: relative;
    z-index: 2;
    width: calc(100% - 22px);
    height: calc(100% - 22px);
    object-fit: cover;
    border-radius: 999px;
}

.hero__title {
    font-family: var(--serif);
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    margin-top: 18px;
    letter-spacing: -1px;
}

.hero__subtitle {
    margin-top: 12px;
    font-size: 1.05rem;
    max-width: 560px;
    color: var(--muted);
}

.hero__cta {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__mini {
    margin-top: 18px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .65);
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: .95rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
    padding: 12px 18px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    border: 1px solid transparent;
    box-shadow: var(--shadow-soft);
}

.btn--primary {
    background: var(--ink);
    color: var(--bg);
}

.btn--primary:hover {
    transform: translateY(-1px);
}

.btn--ghost {
    background: rgba(255, 255, 255, .65);
    border-color: var(--line);
    color: var(--ink);
}

.btn--ghost:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .9);
}

.btn--small {
    padding: 10px 18px;
    font-size: .95rem;
}

/* ===== Mosaic ===== */
.mosaic {
    display: grid;
    gap: 18px;
}

.mosaic__card {
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 16px;
    box-shadow: var(--shadow-soft);
}

.mosaic__card--soft {
    background: rgba(217, 199, 179, .28);
}

.mosaic__card--quote {
    background: rgba(168, 119, 85, .12);
}

.mosaic__kicker {
    display: inline-block;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .75rem;
    color: rgba(31, 26, 22, .55);
}

.mosaic__title {
    display: block;
    margin-top: 6px;
    font-family: var(--serif);
    font-size: 1.25rem;
}

.mosaic__desc {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.mosaic__quote {
    display: block;
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.5;
}

.mosaic__author {
    display: block;
    margin-top: 10px;
    color: rgba(31, 26, 22, .6);
    font-weight: 700;
    font-size: .95rem;
}

/* ===== Sections ===== */
.section {
    padding: 56px 0;
}

.section--alt {
    background: linear-gradient(180deg, transparent, rgba(244, 239, 231, .85) 18%, rgba(244, 239, 231, .85) 82%, transparent);
}

.section__head {
    margin-bottom: 22px;
}

.section__title {
    font-family: var(--serif);
    font-size: 2rem;
    letter-spacing: -0.8px;
}

.section__subtitle {
    margin-top: 10px;
    color: var(--muted);
    max-width: 720px;
}

/* ===== Cards ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    background: rgba(255, 255, 255, .75);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 18px;
    box-shadow: var(--shadow-soft);
}

.card h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    letter-spacing: -0.4px;
}

.card p {
    margin-top: 8px;
    color: var(--muted);
}

.cards--episodes .card {
    position: relative;
    overflow: hidden;
}

.card--episode::before {
    content: "";
    position: absolute;
    inset: -60px;
    background:
        radial-gradient(380px 260px at 20% 30%, rgba(168, 119, 85, .16), transparent 60%),
        radial-gradient(380px 260px at 80% 20%, rgba(217, 199, 179, .22), transparent 60%);
}

.card--episode>* {
    position: relative;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .72rem;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .55);
    color: rgba(31, 26, 22, .7);
}

.preview__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.badge {
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(168, 119, 85, .12);
    border: 1px solid var(--line);
    font-weight: 900;
    letter-spacing: .08em;
    font-size: .75rem;
}

.preview__footer {
    font-size: .95rem;
}

/* ===== Link cards ===== */
.links {
    display: grid;
    gap: 12px;
}

.linkcard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-decoration: none;
    color: var(--ink);

    background: rgba(255, 255, 255, .75);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 16px;
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, background .2s ease;
}

.linkcard:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .9);
}

.linkcard__icon {
    width: 42px;
    height: 42px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: rgba(244, 239, 231, .75);
    flex: 0 0 auto;
}

.linkcard__text {
    display: grid;
    gap: 2px;
    flex: 1 1 auto;
}

.linkcard__arrow {
    font-size: 1.2rem;
    opacity: .75;
}

/* ===== Footer ===== */
.footer {
    padding: 26px 0 36px;
    border-top: 1px solid var(--line);
    background: rgba(251, 247, 241, .8);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== Floating WhatsApp ===== */
.fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: grid;
    place-items: center;

    text-decoration: none;
    background: #25d366;
    color: white;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .25);
    transform: translateZ(0);
}

.fab:hover {
    filter: brightness(1.02);
}

/* ===== Responsive ===== */
@media (max-width: 920px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .topnav {
        display: none;
    }
}

/* ===== animação suave ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s ease, transform .6s ease;
}

[data-animate].is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Plano 365
   =========================== */
.plan365 {
    display: grid;
    gap: 18px;
}

/* Intro */
.plan365__intro {
    padding: 18px;
}

/* Preview do ano */
.year-preview {
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.year-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.month-chip {
    border: 1px solid var(--line);
    background: rgba(244, 239, 231, .85);
    border-radius: 18px;
    padding: 10px 8px;
    font-weight: 900;
    letter-spacing: .06em;
    font-size: .78rem;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.month-chip:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .85);
    box-shadow: var(--shadow-soft);
}

.month-chip.is-active {
    background: rgba(31, 26, 22, .92);
    color: var(--bg);
    border-color: rgba(31, 26, 22, .92);
}

.month-chip.is-disabled {
    opacity: .35;
    cursor: not-allowed;
    background: rgba(244, 239, 231, .55);
    box-shadow: none;
    transform: none;
}

/* Switch */
.plan365__switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.switch-btn {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .65);
    color: var(--ink);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.switch-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .9);
}

.switch-btn.is-active {
    background: rgba(31, 26, 22, .92);
    color: var(--bg);
    border-color: rgba(31, 26, 22, .92);
}

.switch-hint {
    margin-left: 4px;
    font-size: .95rem;
}

/* Calendário + detalhe */
.plan365__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 18px;
    align-items: stretch;
}

.plan365__calendar {
    padding: 18px;
}

/* Faz o card do detalhe empurrar o footer para o fim */
.plan365__detail{
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* área do conteúdo do detalhe (cresce) */
.plan-detail__body{
  flex: 1 1 auto;
}

/* footer sempre no final do card */
.plan365__detail .plan-footer{
  margin-top: auto;
  padding-top: 12px;
  text-align: right;
  font-size: .9rem;
}


/* ===== Preview Calendar ===== */
.cal__dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 0 2px;
}

.cal__dow span {
    font-size: .72rem;
    letter-spacing: .08em;
    font-weight: 900;
    color: rgba(31, 26, 22, .55);
    text-align: center;
    text-transform: uppercase;
}

.cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cal__cell {
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(244, 239, 231, .85);
    min-height: 44px;

    display: grid;
    place-items: center;

    font-weight: 900;
    color: rgba(31, 26, 22, .78);
    cursor: pointer;
    user-select: none;

    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.cal__cell:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .85);
    box-shadow: var(--shadow-soft);
}

.cal__cell--empty {
    opacity: .35;
    cursor: default;
}

.cal__cell--today {
    background: rgba(168, 119, 85, .18);
    border-color: rgba(168, 119, 85, .35);
}

.cal__cell--selected {
    background: rgba(31, 26, 22, .92);
    color: var(--bg);
    border-color: rgba(31, 26, 22, .92);
}

/* Detalhe */
.plan-detail__title {
    font-family: var(--serif);
    font-size: 1.25rem;
    letter-spacing: -0.4px;
    margin-bottom: 8px;
}

.plan-detail__items {
    display: grid;
    gap: 10px;
}

.plan-item {
    display: grid;
    gap: 4px;
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(244, 239, 231, .55);
}

.plan-item strong {
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(31, 26, 22, .65);
}

.plan-item span {
    font-weight: 700;
}

/* ===========================
   Tabela (reading-plan)
   =========================== */

/* Card da tabela: mesmo feel do calendário */
.plan365__tableCard {
    padding: 18px;
}

/* Cabeçalho */
.table-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.table-title {
    font-family: var(--serif);
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.table-subtitle {
    margin-top: 6px;
}

/*
  A tabela vira CONTEÚDO do card.
  Então removemos “cara de card” daqui: sem background branco e sem shadow.
*/
.reading-plan {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

/* Header com o mesmo feel do calendário */
.reading-plan__header {
    display: grid;
    grid-template-columns: 70px 1.4fr .8fr 1.2fr;
    background: rgba(244, 239, 231, .85);
    border-bottom: 1px solid var(--line);
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .75rem;
}

.reading-plan__header span {
    padding: 18px 12px;
    border-right: 1px solid var(--line);
}

.reading-plan__header span:last-child {
    border-right: none;
}

.reading-plan__row {
    display: grid;
    grid-template-columns: 70px 1.4fr .8fr 1.2fr;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
}

.reading-plan__row:last-child {
    border-bottom: none;
}

.reading-plan__row span {
    padding: 12px;
    border-right: 1px solid var(--line);
}

.reading-plan__row span:last-child {
    border-right: none;
}

.reading-plan__row:hover {
    background: rgba(244, 239, 231, .6);
}

.reading-plan .day {
    font-weight: 900;
    text-align: center;
    background: rgba(168, 119, 85, .08);
}

.plan-footer {
    margin-top: 12px;
    text-align: right;
    font-size: .9rem;
}

/* Responsivo */
@media (max-width: 920px) {
    .year-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .plan365__grid {
        grid-template-columns: 1fr;
    }
}

/* Responsivo - sem scroll: tabela vira lista compacta (2 colunas) */
@media (max-width: 768px){

  /* some o header no mobile */
  .reading-plan__header{ display: none; }

  /* cada row vira um item compacto */
  .reading-plan__row{
    grid-template-columns: 64px 1fr;
    gap: 10px;
    padding: 12px;
    align-items: start;
  }

  /* remove bordas internas de colunas (porque não é mais “coluna por coluna”) */
  .reading-plan__row span{
    border-right: none !important;
    padding: 0;
  }

  /* DIA vira “badge” */
  .reading-plan .day{
    align-self: start;
    justify-self: start;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(168,119,85,.12);
    border: 1px solid var(--line);
    font-weight: 900;
  }

  /* os 3 campos viram linhas empilhadas */
  .reading-plan__row span:nth-child(2),
  .reading-plan__row span:nth-child(3),
  .reading-plan__row span:nth-child(4){
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(244,239,231,.55);
    font-weight: 700;
  }

  /* rótulos antes do valor (VT / Salmo / NT) */
  .reading-plan__row span:nth-child(2)::before{
    content: "Velho Testamento";
  }
  .reading-plan__row span:nth-child(3)::before{
    content: "Salmo";
  }
  .reading-plan__row span:nth-child(4)::before{
    content: "Novo Testamento";
  }

  .reading-plan__row span:nth-child(2)::before,
  .reading-plan__row span:nth-child(3)::before,
  .reading-plan__row span:nth-child(4)::before{
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(31,26,22,.55);
    font-weight: 900;
  }

  /* agrupa as 3 linhas na mesma coluna (a direita do DIA) */
  .reading-plan__row span:nth-child(2){ grid-column: 2; }
  .reading-plan__row span:nth-child(3){ grid-column: 2; }
  .reading-plan__row span:nth-child(4){ grid-column: 2; }

  /* hover mais suave */
  .reading-plan__row:hover{
    background: rgba(244,239,231,.35);
  }
}

/* ===== Subhead episódios ===== */
.subhead {
    margin-top: 18px;
    margin-bottom: 12px;
}

.subhead__title {
    font-family: var(--serif);
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.subhead__subtitle {
    margin-top: 6px;
}
