@font-face {
  font-family: "Source Sans";
  src: url("assets/SourceSans3-Roman.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #080b12;
  --navy: #111e35;
  --red: #e22c39;
  --white: #f8f8f9;
  --muted: #929aaa;
  --line: #ffffff13;
  font-family: "Source Sans", Arial, sans-serif;
  background: var(--black);
  color: var(--white);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 24px; border: 0; border-radius: 5px; background: var(--red); color: white; font-weight: 650; font-size: 17px; transition: background .2s, transform .2s; }
.primary-button:hover { background: #f03b48; transform: translateY(-1px); }

/* Login */
.login-screen { position: relative; min-height: 100svh; isolation: isolate; display: grid; place-items: center; padding: 48px 24px; background: var(--black); }
.login-backdrop { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; z-index: -2; overflow: hidden; }
.login-backdrop div { background-size: cover; background-position: center; filter: grayscale(1); opacity: .34; }
.login-backdrop div:first-child { background-image: url("assets/jo-campo.png"); background-position: 25% center; }
.login-backdrop div:last-child { background-image: url("assets/cristo-getsemani.png"); background-position: 38% center; }
.login-screen::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #080b1290, #080b12bb 65%, #080b12), radial-gradient(ellipse at center, #111e3540, transparent 70%); }
.login-layout { width: min(100%, 470px); }
.login-brand { display: block; text-align: center; font-weight: 850; font-size: clamp(30px, 5vw, 42px); line-height: 1; letter-spacing: -1.6px; margin-bottom: 42px; }
.login-brand > span:first-child { color: var(--red); }
.brand-dot { color: var(--red); }
.login-panel { border: 1px solid #ffffff14; background: linear-gradient(145deg, #111c2de8, #090c13ed); padding: 38px 40px 30px; border-radius: 10px; box-shadow: 0 24px 100px #00000045; }
.red-line { width: 32px; height: 3px; border-radius: 2px; background: var(--red); margin-bottom: 22px; }
.login-panel h1 { margin: 0 0 8px; font-size: 29px; letter-spacing: -.6px; font-weight: 650; line-height: 1.15; }
.login-description { font-size: 16px; color: #a6aebb; line-height: 1.5; margin: 0 0 30px; }
#login-form, #code-form { display: flex; flex-direction: column; }
#login-form[hidden], #code-form[hidden] { display: none; }
#login-form label, #code-form label { font-size: 14px; color: #c6cbd3; margin-bottom: 8px; }
#login-form input, #code-form input { width: 100%; background: #080b1295; border: 1px solid #ffffff20; border-radius: 5px; padding: 15px 16px; color: var(--white); outline-offset: 2px; font-size: 16px; transition: border-color .2s; }
#login-form input::placeholder, #code-form input::placeholder { color: #697383; }
#login-form > input { margin-bottom: 22px; }
#login-form input:focus, #code-form input:focus { border-color: #617896; }
.password-field { position: relative; }
.password-field input { padding-right: 54px !important; }
.password-toggle { position: absolute; right: 7px; top: 6px; bottom: 6px; display: grid; place-items: center; width: 42px; border: 0; background: transparent; color: #818d9e; border-radius: 3px; }
.password-toggle:hover { color: white; }
.login-submit { width: 100%; margin-top: 28px; }
.login-note { margin: 18px 0 0; text-align: center; color: #7e899a; font-size: 13px; }
.login-note.is-error { color: #ff8a8a; }
#code-form input { letter-spacing: 6px; font-size: 20px; text-align: center; }
#code-form strong { color: var(--white); font-weight: 600; word-break: break-all; }
.link-button { margin-top: 14px; background: none; border: 0; color: #9aa6b8; font-size: 13px; text-decoration: underline; cursor: pointer; }
.login-submit[disabled] { opacity: .6; cursor: wait; }
.login-footer { text-align: center; font-size: 14px; color: #858e9c; margin: 26px 0 0; }

/* Catálogo */
.platform { min-height: 100svh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 80% 0%, #13243b6b, transparent 52%), var(--black); }
.topbar { height: 88px; margin: 0 clamp(24px, 5vw, 80px); display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); }
.topbar-mark { display: grid; place-items: center; color: var(--red); }
.topbar-mark .icon { width: 30px; height: 30px; stroke-width: 1.7; }
.catalog-link { color: #e1e5ec; font-size: 15px; position: relative; padding: 10px 0; }
.catalog-link::after { content: ""; position: absolute; height: 2px; width: 20px; bottom: 0; left: 0; background: var(--red); }
.logout-button { display: flex; align-items: center; gap: 8px; color: var(--muted); border: 0; background: transparent; margin-left: auto; font-size: 15px; padding: 8px 0 8px 12px; }
.logout-button:hover { color: white; }
.logout-button .icon { width: 19px; }
.content { width: 100%; max-width: 1600px; margin: 0 auto; padding: 68px clamp(24px, 5vw, 80px) 90px; flex: 1; outline: none; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 2.7px; color: #a7b1c1; font-weight: 650; margin: 0 0 16px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 19px; height: 2px; background: var(--red); }
.catalog-heading { margin: 0; font-size: clamp(36px, 5.5vw, 72px); line-height: 1; letter-spacing: -2px; font-weight: 850; }
.catalog-heading span { color: var(--red); }
.catalog-description { margin: 17px 0 0; font-size: 18px; color: var(--muted); }
.content--catalog { max-width: none; padding: 0 0 90px; }
.welcome-hero { position: relative; width: 100%; min-height: 360px; display: flex; align-items: center; isolation: isolate; overflow: hidden; background: #111 url("assets/video1-poster.jpg") center 55% / cover; }
.welcome-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; filter: grayscale(1); z-index: -2; }
.welcome-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #080b12e0 0%, #080b1280 45%, #080b122b 100%), linear-gradient(0deg, #080b12 0%, transparent 35%); }
.welcome-copy { width: 100%; max-width: 1600px; padding: 68px clamp(24px, 5vw, 80px); margin: 0 auto; }
.welcome-kicker { margin: 0 0 14px; font-size: clamp(19px, 2vw, 27px); color: #eee; font-weight: 450; text-shadow: 0 2px 16px #000; }
.welcome-hero .catalog-heading { text-shadow: 0 3px 25px #0008; }
.welcome-hero .catalog-heading span { color: #ff0000; }
.video-toggle { position: absolute; bottom: 26px; right: clamp(24px, 5vw, 80px); padding: 7px 12px; border-radius: 4px; border: 1px solid #ffffff30; background: #080b1280; color: #d7dce3; font-size: 12px; }
.video-toggle:hover { background: #080b12cc; color: white; }
.catalog-body { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 80px); }
.catalog-body .section-heading { margin-top: 28px; }
.section-heading { display: flex; align-items: center; gap: 14px; margin: 48px 0 20px; }
.section-heading h2 { margin: 0; font-size: 19px; font-weight: 550; }
.section-heading .count { font-size: 12px; color: #8c99ad; border: 1px solid #ffffff19; border-radius: 4px; padding: 2px 8px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.card { position: relative; aspect-ratio: 16 / 10; width: 100%; display: flex; justify-content: center; align-items: center; text-align: center; overflow: hidden; isolation: isolate; border: 1px solid #ffffff18; border-radius: 8px; padding: 32px; color: white; background: #171b21; box-shadow: 0 18px 40px #00000030; transition: transform .3s, border-color .3s, box-shadow .3s; }
.card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.85) contrast(.87); transition: transform .55s, filter .4s; z-index: -2; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #00000019 0%, #00000060 43%, #00000070 65%, #000000b0 100%); transition: opacity .4s; }
.card:hover { transform: translateY(-5px); border-color: #e22c3966; box-shadow: 0 24px 50px #00000055; }
.card:hover .card-image { transform: scale(1.045); filter: grayscale(1) brightness(.95) contrast(.9); }
.card-title { max-width: 100%; font-size: clamp(25px, 3.25vw, 48px); line-height: 1.02; font-weight: 850; letter-spacing: -.7px; text-shadow: 0 2px 24px #000000ad; }
.card-label { position: absolute; top: 22px; left: 24px; display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 650; letter-spacing: 2px; color: #ffffffd1; }
.card-label::before { content: ""; background: var(--red); width: 5px; height: 5px; border-radius: 50%; }
.card-bottom { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; align-items: center; }
.card-bottom > span { font-size: 13px; font-weight: 450; color: #d4d7db; }
.card-arrow { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid #ffffff55; border-radius: 50%; transition: background .3s, border-color .3s; }
.card-arrow .icon { width: 17px; height: 17px; }
.card:hover .card-arrow { background: var(--red); border-color: var(--red); }
.platform-footer { margin: 0 clamp(24px, 5vw, 80px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; color: #606d80; font-size: 12px; }
.platform-footer span:first-child { font-size: 12px; font-weight: 650; letter-spacing: 1px; }

/* Materiais de cada tema */
.back-link { display: inline-flex; align-items: center; gap: 8px; color: #a1adbf; font-size: 14px; margin: -15px 0 34px; padding: 5px 0; }
.back-link:hover { color: white; }
.back-link .icon { width: 17px; height: 17px; transform: rotate(180deg); }
.journey-heading { margin: 0; max-width: 850px; font-size: clamp(32px, 4.5vw, 60px); line-height: 1.07; letter-spacing: -1px; font-weight: 800; }
.journey-description { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.pdf-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pdf-card { aspect-ratio: 4 / 5; }
.pdf-card .card-image { object-position: 27% center; filter: grayscale(1) brightness(.85) contrast(.87); }
.pdf-card:hover .card-image { filter: grayscale(1) brightness(.95) contrast(.9); }
.pdf-card .card-title { font-size: clamp(32px, 3vw, 46px); }
.pdf-card .card-label { font-size: 11px; letter-spacing: 1.6px; }
.pdf-card .card-label::before { display: none; }
.pdf-card .card-label .icon { width: 17px; height: 17px; }
.pdf-card .subtitle { display: block; font-size: 12px; font-weight: 450; letter-spacing: 2px; margin-top: 16px; }
.download-link { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 14px; color: #a7b1c1; }
.download-link:hover { color: white; }
.material-downloads { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.download-link .icon { width: 18px; height: 18px; }
.empty-state { min-height: 240px; border: 1px solid #ffffff15; border-radius: 8px; background: linear-gradient(135deg, #111e3590, #090c13); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 32px; text-align: center; }
.empty-state > .icon { width: 36px; height: 36px; color: #71829c; margin-bottom: 8px; }
.empty-state h3 { margin: 0; font-weight: 550; font-size: 21px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 16px; }
.content > * { animation: reveal .4s ease both; }
.content > .cards { animation-delay: .06s; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1700px) { .topbar, .platform-footer { width: 1440px; margin-left: auto; margin-right: auto; } }
@media (max-width: 1000px) { .pdf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .login-screen { padding: 40px 20px; }
  .login-panel { padding: 30px 26px 26px; }
  .login-panel h1 { font-size: 27px; }
  .login-brand { margin-bottom: 30px; }
  .topbar { height: 74px; gap: 24px; }
  .content { padding-top: 46px; padding-bottom: 64px; }
  .content--catalog { padding-top: 0; }
  .welcome-hero { min-height: 300px; }
  .welcome-copy { padding-top: 50px; padding-bottom: 72px; }
  .catalog-heading { letter-spacing: -1px; font-size: clamp(32px, 9vw, 51px); }
  .catalog-description, .journey-description { font-size: 16px; }
  .section-heading { margin-top: 34px; }
  .cards { grid-template-columns: 1fr; gap: 20px; }
  .card { aspect-ratio: 16 / 11; }
  .card-title { font-size: clamp(29px, 8vw, 44px); }
  .card-label { top: 19px; left: 20px; }
  .card-bottom { left: 20px; right: 20px; bottom: 18px; }
  .pdf-cards { grid-template-columns: minmax(0, 390px); }
  .pdf-card { aspect-ratio: 4 / 5; }
  .pdf-card .card-title { font-size: 43px; }
  .platform-footer { align-items: flex-start; flex-direction: column; gap: 7px; }
  .back-link { margin-top: -8px; margin-bottom: 28px; }
}
/* Tamanho fixo dos cards de temas em todas as telas. */
.pdf-cards { display: flex; flex-wrap: wrap; gap: 26px; }
.pdf-card { width: 350px; height: 510px; flex: 0 0 350px; aspect-ratio: auto; }
.theme-cards { display: flex; flex-wrap: wrap; gap: 16px; }
.theme-card { width: 265px; height: 470px; flex: 0 0 265px; aspect-ratio: auto; padding: 24px 18px 30px; border-radius: 8px; align-items: flex-end; }
.theme-card--jo .card-image { object-position: 23% center; }
.theme-card--jo .card-image { filter: brightness(.85) contrast(.87); }
.theme-card--jo:hover .card-image { filter: brightness(.95) contrast(.9); }
.theme-card--cristo .card-image { object-position: 36% center; }
.theme-card--cristo .card-image { filter: brightness(.85) contrast(.87); }
.theme-card--cristo:hover .card-image { filter: brightness(.95) contrast(.9); }
.theme-card--incerteza-financeira .card-image, .theme-card--jose .card-image { object-position: center top; filter: brightness(.85) contrast(.87); }
.theme-card--incerteza-financeira:hover .card-image, .theme-card--jose:hover .card-image { filter: brightness(.95) contrast(.9); }
.theme-card::before { background: linear-gradient(180deg, #0000000d 0%, #00000024 35%, #00000070 58%, #000000e6 100%); }
.theme-card .card-title { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 5px; color: #ff0000; font-size: 32px; line-height: 1; letter-spacing: -.4px; font-weight: 900; text-shadow: 0 3px 12px #000; transition: transform .3s; }
.theme-card .poster-caption { font-size: 20px; letter-spacing: .5px; line-height: 1.25; text-align: center; }
.theme-card .card-title, .theme-card .card-title span { font-family: Arial, Helvetica, sans-serif; font-weight: 700; text-transform: uppercase; }
.theme-card .poster-word { line-height: 1; color: inherit; }
.theme-card .poster-word--jo { font-size: 76px; letter-spacing: -2px; }
.theme-card .poster-word--cristo { font-size: 48px; letter-spacing: -1px; }
.theme-card .poster-word--financeira { font-size: 29px; letter-spacing: -.8px; }
.theme-card .poster-word--jose { font-size: 64px; letter-spacing: -1.5px; }
.theme-card:hover .card-title { transform: translateY(-3px); }
.theme-card .card-label, .theme-card .card-bottom { display: none; }
.theme-card--locked { cursor: default; }
.theme-card--locked:hover .card-image { transform: none; filter: brightness(.85) contrast(.87); }
.theme-card--locked:hover .card-title { transform: none; }
.journey-lock { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; border: 1px solid #ffffff38; border-radius: 50%; background: #080b12cc; color: white; }
.journey-lock .icon { width: 36px; height: 36px; stroke-width: 1.8; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* PDFs da jornada: uma linha só, com setas para navegar e o link de baixar embaixo de cada cartão. */
.pdf-cards { display: flex; flex-wrap: nowrap; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 2px 4px; margin: -6px -2px 0; }
.pdf-cards::-webkit-scrollbar { display: none; }
.pdf-item { flex: 0 0 350px; display: flex; flex-direction: column; scroll-snap-align: start; }
.pdf-item .pdf-card { width: 100%; flex: none; }
.pdf-item .download-link { margin-top: 14px; }
.carousel-nav { display: flex; gap: 10px; margin-left: auto; }
.carousel-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #ffffff40; border-radius: 50%; background: transparent; color: white; transition: background .2s, border-color .2s, opacity .2s; }
.carousel-button:hover:not(:disabled) { background: var(--red); border-color: var(--red); }
.carousel-button:disabled { opacity: .3; cursor: default; }
.carousel-button .icon { width: 18px; height: 18px; }
.carousel-button--prev .icon { transform: rotate(180deg); }
/* PDFs no celular: cartões a 70% do tamanho, para aparecer a borda do próximo. */
@media (max-width: 680px) {
  .pdf-cards { gap: 14px; }
  .pdf-item { flex-basis: min(245px, 57.4vw); }
  .pdf-item .pdf-card { height: min(357px, 84vw); }
  .pdf-item .pdf-card .card-title { font-size: 30px; }
  .pdf-item .pdf-card .card-label { top: 14px; left: 14px; font-size: 9px; }
  .pdf-item .pdf-card .card-label .icon { width: 13px; height: 13px; }
  .pdf-item .pdf-card .card-bottom { left: 14px; right: 14px; bottom: 14px; }
  .pdf-item .pdf-card .subtitle { font-size: 9px; margin-top: 10px; }
  .pdf-item .download-link { margin-top: 10px; font-size: 12px; }
  .pdf-item .download-link .icon { width: 15px; height: 15px; }
}
/* Jornadas no celular: cartões a 70% do tamanho, lado a lado, arrastando para o lado. */
@media (max-width: 680px) {
  .theme-cards { flex-wrap: nowrap; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin: 0 calc(-1 * clamp(24px, 5vw, 80px)); padding: 6px clamp(24px, 5vw, 80px) 4px; scroll-padding: 0 clamp(24px, 5vw, 80px); }
  .theme-cards::-webkit-scrollbar { display: none; }
  .theme-card { width: 186px; height: 329px; flex: 0 0 186px; padding: 17px 13px 21px; scroll-snap-align: start; }
  .theme-card .card-title { font-size: 22px; gap: 4px; }
  .theme-card .poster-caption { font-size: 14px; }
  .theme-card .poster-word--jo { font-size: 53px; letter-spacing: -1.4px; }
  .theme-card .poster-word--cristo { font-size: 34px; letter-spacing: -.7px; }
  .theme-card .poster-word--financeira { font-size: 20px; letter-spacing: -.5px; }
  .theme-card .poster-word--jose { font-size: 45px; letter-spacing: -1px; }
  .journey-lock { width: 50px; height: 50px; }
  .journey-lock .icon { width: 25px; height: 25px; }
}
