/* Los 7 Amenes de la Madrugada · Design System v6 (Dark Obsidian + Geist Serif + Liquid Glass)
   Espelha exatamente src/ds/tokens.css [data-theme="dark"], src/screens/circulo/espera.css e ?fonte=geist. */

@font-face {
  font-family: 'Geist Serif';
  src: url('./GeistSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0F0F10;
  --surface: #1C1C1E;
  --surface-2: #2C2C2E;
  --ink: #FFFFFF;
  --ink-soft: #E5E5EA;
  --ink-muted: #A1A1A6;
  --ink-faint: #636366;
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.07);
  --accent: #C49EE7;
  --gold: #E8A825;
  --gold-hi: #F7CB63;
  --gold-text: #F5C968;
  --danger-bg: rgba(158, 44, 20, 0.34);
  --danger-line: rgba(250, 167, 147, 0.28);
  --font-serif: 'Geist Serif', 'Iowan Old Style', Georgia, serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --max-w: 480px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
}

/* ---------- Fundo atmosférico noturno (exact .ce-aura from espera.css) ---------- */
.page-wrap {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

.aura {
  position: fixed;
  left: 50%;
  top: -160px;
  z-index: -1;
  width: 680px;
  height: 700px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(closest-side at 50% 34%, rgba(255, 178, 92, 0.28), rgba(255, 178, 92, 0) 72%),
    radial-gradient(closest-side at 22% 66%, rgba(196, 158, 231, 0.15), rgba(196, 158, 231, 0) 72%),
    radial-gradient(closest-side at 78% 72%, rgba(255, 140, 110, 0.11), rgba(255, 140, 110, 0) 72%);
  filter: blur(6px);
  animation: aura-breathe 7.5s ease-in-out infinite;
}

@keyframes aura-breathe {
  0%, 100% { opacity: 0.82; transform: translateX(-50%) scale(0.97); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

/* ---------- Faixa de aviso no topo ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  padding: 11px 16px;
  background: var(--danger-bg);
  border-bottom: 1px solid var(--danger-line);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  text-align: center;
}

.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14.5px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #FFF4EC;
}

.topbar-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 10px rgba(247, 203, 99, 0.85);
  animation: dot-pulse 2.2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ---------- Coluna principal (idêntica a --app-max: 480px) ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 26px 20px 44px;
}

/* ---------- Selos em vidro (.ce-selo dark) ---------- */
.selo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 6px 18px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
}

.selo--gold {
  border-color: rgba(242, 185, 59, 0.34);
  background: rgba(242, 185, 59, 0.12);
  color: var(--gold-text);
}

/* ---------- Cabeçalho ---------- */
.hero-title {
  margin: 14px 0 0;
  text-align: center;
  font-size: 28px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-title--top {
  margin-top: 2px;
}

.hero-sub {
  margin: 12px auto 0;
  max-width: 410px;
  text-align: center;
  font-size: 17px;
  line-height: 1.52;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.hero-sub strong {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Container limpo do vídeo VTurb 9:16 ---------- */
.video-stage {
  position: relative;
  margin: 22px auto 0;
  max-width: 380px;
}

.video-halo {
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 28px;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(242, 185, 59, 0.18), rgba(196, 158, 231, 0.08) 55%, transparent 80%);
  filter: blur(18px);
  pointer-events: none;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #08080A;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 22px 54px rgba(0, 0, 0, 0.65);
}

.video-shell:empty {
  aspect-ratio: 9 / 16;
  background:
    radial-gradient(circle at 50% 38%, rgba(242, 185, 59, 0.12), transparent 62%),
    linear-gradient(180deg, #131622 0%, #0A0B0F 100%);
}

.video-note {
  margin: 14px auto 0;
  max-width: 360px;
  text-align: center;
  font-size: 15px;
  line-height: 1.48;
  color: var(--ink-muted);
}

.video-note strong {
  color: var(--ink-soft);
}

/* ---------- Cartão de vidro (.ce-glass dark) ---------- */
.glass-card {
  position: relative;
  margin-top: 26px;
  padding: 24px 20px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 20px 52px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 42%);
}

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

/* ---------- Hero do card da oferta ---------- */
.offer-emblem-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
}

.offer-emblem-glow {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 185, 59, 0.44) 0%, rgba(242, 185, 59, 0.12) 48%, transparent 72%);
  pointer-events: none;
}

.offer-emblem {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.offer-title {
  margin: 4px 0 0;
  text-align: center;
  font-size: 25px;
  line-height: 1.24;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

.offer-title--top {
  margin-top: 0;
}

.offer-title .gold {
  color: var(--gold-text);
}

/* ---------- Bloco de preço ---------- */
.price-box {
  margin: 18px 0 0;
  padding: 16px 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(242, 185, 59, 0.24);
  background: linear-gradient(180deg, rgba(242, 185, 59, 0.10) 0%, rgba(255, 255, 255, 0.03) 100%);
  text-align: center;
}

.price-old {
  margin: 0;
  font-size: 15px;
  line-height: 1.48;
  color: var(--ink-muted);
}

.price-old s {
  color: #C4B9AA;
  text-decoration-color: rgba(250, 167, 147, 0.8);
}

.price-main {
  margin: 6px 0 0;
  font-size: 50px;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold-hi);
  text-shadow: 0 0 30px rgba(242, 185, 59, 0.28);
}

.price-meta {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- Lista de entregáveis (exact app shelf rows com artes 64x64) ---------- */
.deliverables {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.deliv-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
}

.deliv-row + .deliv-row {
  border-top: 1px solid var(--line-soft);
}

.deliv-thumb {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
}

.deliv-body {
  flex: 1;
  min-width: 0;
}

.deliv-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.32;
  font-weight: 700;
  color: var(--ink);
}

.deliv-desc {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.46;
  color: var(--ink-muted);
}

/* ---------- Slot limpo para o widget nativo da Cakto (sem sobrescrever estilo do botão da Cakto) ---------- */
.cakto-slot {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cakto-slot:empty {
  margin-top: 8px;
}

/* ---------- Cartão da garantia em vidro ---------- */
.guarantee-card {
  margin-top: 18px;
  padding: 22px 20px;
  border-radius: 20px;
  border: 1px solid rgba(242, 185, 59, 0.22);
  background: linear-gradient(180deg, rgba(242, 185, 59, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 16px 42px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  text-align: center;
}

.guarantee-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 1px solid rgba(242, 185, 59, 0.35);
  background: rgba(242, 185, 59, 0.12);
  color: var(--gold-hi);
  display: flex;
  align-items: center;
  justify-content: center;
}

.guarantee-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-text);
}

.guarantee-quote {
  margin: 8px 0 0;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

.guarantee-text {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.56;
  color: var(--ink-muted);
}

.guarantee-text strong {
  color: var(--ink-soft);
}

/* ---------- Retrato pastoral (Downsell) ---------- */
.pastor-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 6px;
}

.pastor-avatar-wrap {
  position: relative;
  width: 98px;
  height: 98px;
  margin-bottom: 14px;
}

.pastor-avatar-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 185, 59, 0.34), transparent 70%);
  pointer-events: none;
}

.pastor-avatar {
  position: relative;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(242, 185, 59, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.pastor-letter {
  margin-top: 20px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink-soft);
}

.pastor-letter p {
  margin: 0;
}

.pastor-letter p + p {
  margin-top: 13px;
}

.pastor-letter strong {
  color: #FFFFFF;
}

.pastor-sign {
  margin-top: 14px !important;
  color: var(--gold-text);
  font-weight: 700;
}

/* ---------- Estados de delay ---------- */
.is-locked {
  display: none !important;
}

.reveal-in {
  animation: rise-in 0.55s var(--ease) both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .aura, .topbar-dot, .reveal-in { animation: none; }
}
