/* Shared marketing chrome: download path, 3D shelves, closed prayer window. */
:root {
  --ink: #0f0d0b;
  --panel: #1a1510;
  --panel-2: #241d16;
  --gold: #d4af37;
  --gold-soft: #e8d48b;
  --parchment: #f3e6c9;
  --muted: #c9b896;
  --line: rgba(212, 175, 55, 0.22);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}
.hidden { display: none !important; }
.btn-gold { background: var(--gold); color: #1a1408; }
.btn-ghost { border-color: var(--line); color: var(--parchment); background: transparent; }

.download-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 280px at 12% 0%, rgba(212, 175, 55, 0.22), transparent 58%),
    linear-gradient(165deg, #2a2118 0%, #14100c 52%, #0c0a08 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 28px 26px;
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateX(4deg);
  transform-style: preserve-3d;
}
.download-panel h2 { margin: 0 0 10px; }
.download-panel p { color: var(--muted); max-width: 44rem; }
.download-mail {
  font-weight: 700;
  color: var(--gold-soft);
  word-break: break-word;
}
.download-steps {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.download-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  color: var(--parchment);
}
.download-steps span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1408;
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.now-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
  perspective: 1400px;
}
.now-card {
  position: relative;
  background: linear-gradient(180deg, rgba(48, 36, 24, 0.96), rgba(16, 12, 9, 0.94));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 18px 20px;
  transform: rotateX(7deg) rotateY(-4deg);
  transform-style: preserve-3d;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.32);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}
.now-card:nth-child(2) { transform: rotateX(7deg) rotateY(0deg) translateZ(18px); }
.now-card:nth-child(3) { transform: rotateX(7deg) rotateY(4deg); }
.now-card:nth-child(4) { transform: rotateX(5deg) rotateY(-3deg); }
.now-card:nth-child(5) { transform: rotateX(5deg) rotateY(3deg); }
.now-card:nth-child(6) { transform: rotateX(5deg) rotateY(0deg); }
.now-card:hover {
  transform: rotateX(0deg) rotateY(0deg) translateY(-10px) translateZ(28px);
  box-shadow: 0 32px 56px rgba(212, 175, 55, 0.16);
}
.now-card h3 { margin: 14px 0 6px; font-size: 1.4rem; }
.now-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.now-visual {
  height: 118px;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transform: translateZ(24px);
  background:
    radial-gradient(120px 80px at 80% 20%, rgba(212, 175, 55, 0.18), transparent 70%),
    #120e0a;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  width: min(180px, 80%);
}
.mini-grid i {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 6px;
  background: #1d1711;
  color: var(--gold-soft);
  font-style: normal;
  font-weight: 800;
  font-size: 0.78rem;
  box-shadow: inset 0 1px 0 rgba(255, 236, 180, 0.12);
}
.mini-grid i.lit {
  background: var(--gold);
  color: #1a1408;
}
.mini-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  width: min(210px, 90%);
}
.mini-letters i {
  font-style: normal;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  border-radius: 8px;
  background: #1d1711;
  color: var(--gold-soft);
  border: 1px solid var(--line);
}
.tree-stem {
  width: 8px;
  height: 46px;
  background: #5a3a1e;
  border-radius: 4px;
  position: relative;
}
.tree-stem::before,
.tree-stem::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #d4af37, #3d5a28 70%);
}
.tree-stem::before { width: 54px; height: 36px; bottom: 28px; }
.tree-stem::after { width: 34px; height: 24px; bottom: 48px; opacity: 0.9; }

.prayer-window {
  position: relative;
  height: min(68vh, 640px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.1), transparent 22%),
    radial-gradient(ellipse at 50% 0%, rgba(232, 212, 139, 0.1), transparent 48%),
    #14110d;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.06), 0 24px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transform: perspective(1400px) rotateX(3deg);
}
.prayer-window.is-preview { height: min(52vh, 460px); }
.prayer-window::before,
.prayer-window::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 3;
  pointer-events: none;
}
.prayer-window::before {
  top: 0;
  background: linear-gradient(180deg, #14110d 0%, rgba(20, 17, 13, 0.78) 42%, transparent 100%);
}
.prayer-window::after {
  bottom: 0;
  height: 88px;
  background: linear-gradient(0deg, #14110d 0%, rgba(20, 17, 13, 0.82) 48%, transparent 100%);
}
.prayer-stage {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.55) transparent;
  outline: none;
  cursor: grab;
}
.prayer-stage:active { cursor: grabbing; }
.prayer-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); }
.prayer-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 22px 96px;
  transform-style: preserve-3d;
}
.prayer-track .prayer-card {
  margin: 0;
  opacity: 0.42;
  transform: scale(0.97) rotateX(5deg);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.prayer-track .prayer-card.in-view {
  opacity: 1;
  transform: scale(1) rotateX(0deg);
}
.prayer-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.prayer-controls p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.motes {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.motes span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(232, 212, 139, 0.55);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
  animation: mote-rise 14s linear infinite;
}
@keyframes mote-rise {
  0% { transform: translate3d(0, 40px, 0); opacity: 0; }
  12% { opacity: 0.8; }
  100% { transform: translate3d(18px, -120px, 0); opacity: 0; }
}
@keyframes float-y {
  0%, 100% { transform: rotateY(-10deg) rotateX(6deg) translateY(0); }
  50% { transform: rotateY(-6deg) rotateX(3deg) translateY(-10px); }
}
@keyframes ring-spin {
  from { transform: rotateX(68deg) rotateZ(0deg); }
  to { transform: rotateX(68deg) rotateZ(360deg); }
}

@media (max-width: 900px) {
  .now-grid { grid-template-columns: 1fr; }
  .now-card,
  .now-card:nth-child(n),
  .download-panel { transform: none; }
  .prayer-window { transform: none; height: min(64vh, 560px); }
}
@media (prefers-reduced-motion: reduce) {
  .now-card,
  .download-panel,
  .prayer-window,
  .motes span { animation: none; transform: none; }
}
