:root {
  --ink: #1f2330;
  --muted: #686c78;
  --paper: #fffaf0;
  --surface: #ffffff;
  --gold: #d89b36;
  --gold-strong: #a86914;
  --rose: #c7727b;
  --blue: #506f91;
  --line: rgba(31, 35, 48, 0.12);
  --shadow: 0 18px 50px rgba(49, 44, 35, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

body[data-access-pending] {
  background: #f2fff7;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.access-gate {
  min-height: 100svh;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: max(72px, 10vh) 18px 28px;
  background: linear-gradient(180deg, #effdf4 0%, #f8fff9 48%, #ffffff 100%);
}

.access-card {
  width: min(480px, 100%);
  padding: 22px 18px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(31, 35, 48, 0.08);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(31, 35, 48, 0.16);
}

.access-card__icon {
  width: 132px;
  height: 82px;
  margin-bottom: 12px;
  border-radius: 18px;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 8px 18px rgba(29, 180, 106, 0.18);
}

.access-card__kicker {
  margin: 0 0 10px;
  color: #1db46a;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.access-card h1 {
  margin: 0 auto 14px;
  max-width: 410px;
  color: var(--ink);
  font-size: clamp(2.15rem, 8.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.access-card__text {
  max-width: 410px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: clamp(1.08rem, 4vw, 1.42rem);
  line-height: 1.34;
}

.access-card__note {
  margin: 12px auto 0;
  max-width: 380px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.35;
}

.audio-wait {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px auto 0;
  color: #0b8f4d;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.35;
}

.audio-wait::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(11, 143, 77, 0.22);
  border-top-color: #0b8f4d;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.audio-wait[hidden] {
  display: none;
}

body:not([data-access-pending]) .access-gate {
  display: none;
}

body[data-access-pending] .app-nav,
body[data-access-pending] .main-content,
body[data-access-pending] .menu,
body[data-access-pending] .footer {
  display: none !important;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 82px clamp(18px, 4vw, 56px) 34px;
  color: #fff;
  isolation: isolate;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(25, 31, 46, 0.2), rgba(29, 25, 31, 0.72)),
    linear-gradient(90deg, rgba(40, 35, 47, 0.5), rgba(40, 35, 47, 0.05));
}

.topbar {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  color: #fff;
  background: rgba(31, 35, 48, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(72vw, 480px);
  font-weight: 750;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.menu-button {
  min-width: 72px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.hero__content {
  max-width: 720px;
  padding-top: 0;
  transform: translateY(-4vh);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #ffe4ad;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 590px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
  line-height: 1.55;
}

.primary-action,
.secondary-action,
.text-action {
  border: 0;
  cursor: pointer;
  min-height: 48px;
}

.primary-action,
.secondary-action {
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
}

.primary-action {
  color: #3b2607;
  background: linear-gradient(180deg, #ffe29d, #f3b94e);
  box-shadow: 0 16px 28px rgba(75, 42, 6, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.primary-action--gate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  color: #fff;
  background: linear-gradient(180deg, #21cf77, #08a856);
  box-shadow: 0 12px 18px rgba(8, 168, 86, 0.28);
  font-size: clamp(1.2rem, 5.8vw, 1.9rem);
  text-transform: uppercase;
}

.primary-action--gate[disabled] {
  cursor: wait;
  opacity: 0.86;
}

.secondary-action {
  color: #fff;
  background: linear-gradient(180deg, #6a86a7, #3f6389);
  box-shadow: 0 14px 24px rgba(63, 99, 137, 0.24);
}

.text-action {
  color: var(--gold-strong);
  background: transparent;
  padding: 0;
  font-weight: 800;
}

.action-pulse {
  position: relative;
  overflow: hidden;
}

.action-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  animation: button-shine 2.8s ease-in-out infinite;
}

@keyframes button-shine {
  0%, 42% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.main-content {
  width: min(1120px, calc(100% - 32px));
  margin: -26px auto 0;
  position: relative;
  z-index: 2;
  padding-bottom: 42px;
}

body:not([data-access-pending]) .main-content {
  margin-top: 24px;
}

[data-app-locked] {
  display: none;
}

.prayer-panel,
.daily-blessing,
.intro-copy,
.reading-section,
.content-page,
.legal-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-copy,
.reading-section {
  padding: clamp(22px, 4vw, 38px);
  margin-top: 18px;
}

.prayer-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 36px);
}

.prayer-panel--featured {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 226, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(255, 210, 124, 0.55), transparent 38%);
  border-color: rgba(216, 155, 54, 0.32);
}

.prayer-panel--featured::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, #f5c468, #1db46a);
}

.prayer-panel--featured h2 {
  color: #171b27;
}

.prayer-panel--featured p:not(.section-kicker) {
  font-size: clamp(1.05rem, 2.7vw, 1.28rem);
}

.prayer-panel--featured .secondary-action {
  min-width: 190px;
  min-height: 56px;
  background: linear-gradient(180deg, #23ce77, #079d52);
  box-shadow: 0 16px 26px rgba(8, 168, 86, 0.24);
}

.prayer-panel[data-locked] {
  background: rgba(255, 255, 255, 0.9);
}

.prayer-panel .section-kicker,
.daily-blessing .section-kicker,
.content-page .section-kicker {
  color: var(--gold-strong);
}

.prayer-panel p:not(.section-kicker),
.daily-blessing blockquote,
.content-page p,
.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.65;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.feature-card {
  min-height: 188px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(49, 44, 35, 0.08);
}

.feature-card--strong {
  position: relative;
  min-height: 236px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 235, 0.98)),
    radial-gradient(circle at top right, rgba(255, 216, 140, 0.45), transparent 40%);
  border-color: rgba(216, 155, 54, 0.28);
}

.feature-card span {
  color: var(--rose);
  font-size: 1.7rem;
}

.feature-card strong {
  font-size: 1.05rem;
}

.feature-card small {
  color: var(--muted);
  line-height: 1.45;
}

.feature-card em,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  margin-top: 4px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #22cf78, #08a856);
  box-shadow: 0 12px 18px rgba(8, 168, 86, 0.2);
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.cta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.cta-button--soft {
  color: #273146;
  background: linear-gradient(180deg, #fff0c8, #ffd88c);
}

.reading-section--plain {
  margin: 28px 0 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.daily-blessing {
  padding: clamp(22px, 4vw, 38px);
}

.primary-action--page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin-top: 4px;
  color: #fff;
  background: linear-gradient(180deg, #23ce77, #079d52);
  box-shadow: 0 16px 26px rgba(8, 168, 86, 0.25);
  text-align: center;
  text-transform: uppercase;
}

.message-box--prayer {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(255, 242, 211, 0.98)),
    radial-gradient(circle at top right, rgba(255, 215, 141, 0.5), transparent 42%);
}

.daily-blessing blockquote {
  margin: 0 0 18px;
  font-size: clamp(1.28rem, 3vw, 2rem);
  color: var(--ink);
}

.page-header {
  min-height: 42vh;
  display: grid;
  align-content: end;
  padding: 92px clamp(18px, 4vw, 56px) 34px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(41, 45, 61, 0.2), rgba(41, 45, 61, 0.78)),
    url("../assets/anjo-hero.png") center / cover;
}

.page-header .topbar {
  position: fixed;
  color: #fff;
  background: rgba(31, 35, 48, 0.38);
  backdrop-filter: blur(14px);
  z-index: 8;
}

.page-header__copy {
  width: min(860px, 100%);
}

.page-header h1 {
  margin-bottom: 10px;
}

.content-page,
.legal-page {
  width: min(920px, calc(100% - 32px));
  margin: 22px auto 42px;
  padding: clamp(22px, 4vw, 42px);
}

.message-box {
  margin: 20px 0;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  background: #fff7e4;
  border: 1px solid rgba(216, 155, 54, 0.22);
}

.message-box p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 3vw, 1.9rem);
}

.story-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.story-item {
  padding: 18px;
  border-radius: 8px;
  background: #f8fbff;
  border: 1px solid rgba(80, 111, 145, 0.16);
}

.story-item strong {
  display: block;
  margin-bottom: 8px;
}

.footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 28px 16px 38px;
  color: var(--muted);
  font-size: 0.9rem;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(31, 35, 48, 0.48);
}

.menu__panel {
  width: min(360px, 86vw);
  height: 100%;
  margin-left: auto;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px;
  background: #fff;
  box-shadow: -14px 0 40px rgba(0, 0, 0, 0.18);
}

.menu__panel a {
  padding: 14px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 750;
}

.menu__panel a:hover {
  background: #fff4d9;
}

.menu__close {
  justify-self: end;
  color: var(--ink);
  border-color: var(--line);
  background: #fff7e4;
}

@media (max-width: 820px) {
  .hero {
    min-height: 100svh;
    align-items: center;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prayer-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .access-gate {
    padding: max(58px, 8vh) 12px 18px;
  }

  .access-card {
    padding: 20px 16px 22px;
  }

  .access-card h1 {
    font-size: clamp(2.1rem, 9.5vw, 2.75rem);
  }

  .brand span:last-child {
    font-size: 0.9rem;
  }

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

  .feature-card {
    min-height: 142px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .cta-row {
    grid-template-columns: 1fr;
  }

  .hero__content {
    transform: translateY(-2vh);
  }
}
