/* ============ NUMEN — tema místico, mobile-first ============ */
:root {
  --bg: #0b0c14;
  --bg-2: #11131f;
  --ink: #e8e4d8;
  --ink-dim: #9b97a8;
  --gold: #c9a45c;
  --gold-bright: #e8c987;
  --violet: #6d5a9e;
  --teal: #3e7d7a;
  --danger: #c96b5c;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(201, 164, 92, 0.25);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --display: 'Cinzel', Georgia, serif;
  /* a folha do relatório (pergaminho): mesma paleta na tela e no PDF */
  --paper: #f4ecda;
  --paper-2: #eadfc6;
  --ink-p: #2b2721;
  --sepia: #6e6353;
  --gold-ink: #8a6d2f;
  --gold-ink-2: #b08a4a;
  --rust: #8c4a3a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ---------- céu animado ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.stars, .stars-2 {
  position: absolute; inset: -50%;
  background-image:
    radial-gradient(1px 1px at 12% 24%, #fff8, transparent),
    radial-gradient(1px 1px at 34% 71%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 56% 18%, #fff9, transparent),
    radial-gradient(1px 1px at 73% 49%, #fff7, transparent),
    radial-gradient(1.5px 1.5px at 88% 82%, #fff8, transparent),
    radial-gradient(1px 1px at 21% 88%, #fff5, transparent),
    radial-gradient(1px 1px at 64% 92%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 42% 42%, #fff7, transparent);
  background-size: 520px 520px;
  animation: twinkle 7s ease-in-out infinite alternate;
}
.stars-2 {
  background-size: 380px 380px;
  animation-duration: 11s;
  animation-delay: -4s;
  opacity: .6;
}
@keyframes twinkle {
  0% { opacity: .4; transform: translateY(0); }
  100% { opacity: .9; transform: translateY(-14px); }
}

.aurora {
  position: absolute; inset: -20% -30%;
  background:
    radial-gradient(45% 35% at 25% 20%, rgba(109, 90, 158, .22), transparent 70%),
    radial-gradient(40% 30% at 75% 65%, rgba(62, 125, 122, .18), transparent 70%),
    radial-gradient(35% 30% at 55% 30%, rgba(201, 164, 92, .08), transparent 70%);
  filter: blur(40px);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate3d(-3%, -2%, 0) rotate(-2deg); }
  100% { transform: translate3d(3%, 3%, 0) rotate(2deg); }
}

/* ---------- estrutura ---------- */
#app {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  min-height: 92dvh;
}

.screen { display: none; animation: fadein .6s ease; }
.screen.active { display: block; }
@keyframes fadein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.screen-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  text-align: center;
  color: var(--gold-bright);
  margin: 18px 0 10px;
  letter-spacing: .04em;
}
.screen-sub {
  text-align: center;
  color: var(--ink-dim);
  margin-bottom: 26px;
  font-size: 1.05rem;
}
.screen-sub strong { color: var(--gold); }

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: 7dvh; }

/* halo de runas girando (home) */
.hero-runes {
  position: relative;
  width: 188px; height: 188px;
  margin: 0 auto 10px;
}
.hero-runes::before {
  content: '';
  position: absolute; inset: 50% auto auto 50%;
  width: 130px; height: 130px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,92,.18), transparent 68%);
  filter: blur(6px);
}
.rune-halo {
  position: absolute; inset: 0;
  transform-origin: center;
  animation: spin-cw 42s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
.rune-halo.inner {
  inset: 34px;
  transform-origin: center;
  animation: spin-ccw 30s linear infinite;
  opacity: .55;
  will-change: transform;
  backface-visibility: hidden;
}
/* cada runa preenche o halo e é rotacionada ao seu ângulo; o glifo é
   posicionado no topo-centro por flex → anel perfeito, sem deslocamento
   excêntrico (o translateX num frame rotacionado é o que entortava antes). */
.rune-halo span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 7px;
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(201,164,92,.55);
  transform: rotate(calc(var(--i) * 30deg));
}
.rune-halo.inner span {
  padding-top: 5px;
  font-size: .95rem;
  color: var(--gold-bright);
  transform: rotate(calc(var(--i) * 60deg));
}
.hero-core {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--gold-bright);
  text-shadow: 0 0 24px rgba(201,164,92,.7);
  animation: pulse-core 4.5s ease-in-out infinite;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
/* Centro do halo = a logo oficial (Othala com o ponto de luz), em desenho
   próprio: igual em todo aparelho (a letra ᛟ dependia da fonte do sistema). */
.hero-core img {
  display: block; height: 2.9rem; width: auto;
  filter: drop-shadow(0 0 10px rgba(232,201,135,.55)) drop-shadow(0 0 22px rgba(201,164,92,.35));
}
@keyframes spin-cw { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-ccw { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes pulse {
  0%, 100% { text-shadow: 0 0 18px rgba(201,164,92,.45); transform: translate(-50%, -50%) scale(1); }
  50% { text-shadow: 0 0 40px rgba(201,164,92,.85); transform: translate(-50%, -50%) scale(1.08); }
}
/* anima só transform/opacity (compositor-only) para eliminar o engasgo do text-shadow animado */
@keyframes pulse-core {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .88; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .stars, .stars-2, .aurora { animation: none !important; }
  .rune-halo { animation-duration: 84s; }
  .rune-halo.inner { animation-duration: 60s; }
  .hero-core { animation-duration: 6s; }
  .hero-runes.is-weaving .rune-halo { animation-duration: 40s; }
  .hero-runes.is-weaving .rune-halo.inner { animation-duration: 28s; }
}
.brand {
  font-family: var(--display);
  font-size: clamp(3rem, 11vw, 4.6rem);
  font-weight: 700;
  letter-spacing: .32em;
  margin: 8px 0 0 .32em;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 60%, #8a6d35);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline {
  font-style: italic;
  color: var(--ink-dim);
  letter-spacing: .18em;
  font-size: .95rem;
  text-transform: lowercase;
  margin-bottom: 26px;
}
.intro { max-width: 460px; margin: 0 auto 34px; color: var(--ink); }
.disclaimer { font-size: .85rem; color: var(--ink-dim); max-width: 420px; margin: 26px auto 0; }

/* ---------- botões ---------- */
.btn {
  font-family: var(--display);
  font-size: .95rem;
  letter-spacing: .08em;
  padding: 14px 30px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #a87f3c);
  color: #181204;
  box-shadow: 0 4px 24px rgba(201, 164, 92, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,164,92,.5); }
/* brilho dourado que circula APENAS a borda do botão (anel mascarado).
   Anima o ângulo do conic-gradient (não o elemento) → o cometa percorre a
   borda do "pill" sem distorcer e sem vazar para fora. */
@property --numen-ang {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.btn-oracle-glow {
  position: relative;
  z-index: 0;
  overflow: hidden;
}
.btn-oracle-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;                 /* espessura do anel */
  background: conic-gradient(from var(--numen-ang),
    rgba(232, 201, 135, 0) 0deg,
    rgba(232, 201, 135, 0) 255deg,
    rgba(232, 201, 135, .85) 318deg,
    rgba(255, 247, 223, 1) 342deg,
    rgba(232, 201, 135, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  animation: numen-ring 3.2s linear infinite;
}
.btn-oracle-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(90deg,
    rgba(232, 201, 135, 0) 0%,
    rgba(255, 247, 223, .72) 48%,
    rgba(232, 201, 135, 0) 100%);
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .38;
  animation: numen-border-sweep 2.8s linear infinite;
}
@keyframes numen-ring { to { --numen-ang: 360deg; } }
@keyframes numen-border-sweep {
  from { background-position: 220% 0; }
  to { background-position: -220% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-oracle-glow::before { animation-duration: 6.4s; }
  .btn-oracle-glow::after { animation-duration: 5.6s; }
}
.btn-outline {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--card-border);
}
.btn-outline:hover { border-color: var(--gold); background: rgba(201,164,92,.08); }
.btn-ghost {
  background: none; color: var(--ink-dim); border: none;
  display: block; margin: 30px auto 0; font-size: .85rem;
}
.btn-ghost:hover { color: var(--ink); }
.btn-wide { display: block; width: 100%; margin-top: 22px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- produtos ---------- */
.cards { display: grid; gap: 18px; margin-top: 24px; }
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-left: auto; margin-right: auto; }
}
.product-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 30px 22px 26px;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: transform .25s ease, border-color .25s ease;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 10px;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.product-card.featured {
  border-color: rgba(201, 164, 92, .6);
  box-shadow: 0 0 0 1px rgba(201,164,92,.22), 0 16px 50px rgba(0,0,0,.45);
  background: linear-gradient(180deg, rgba(201,164,92,.10), var(--card));
}
.product-card .badge {
  align-self: center;
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 2px;
}
.badge-strong {
  color: #14101a;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(201,164,92,.4);
}
.product-card .badge.badge-strong {
  color: #181204;
  border-color: transparent;
  font-size: .72rem;
  padding: 5px 16px;
  text-shadow: 0 1px 0 rgba(255,255,255,.28);
}
/* selo "Express" em verde neon no topo da Consulta Essencial */
.ribbon-express {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-family: var(--display);
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: #06210f; font-weight: 700;
  background: #3dff99;
  border-radius: 999px; padding: 4px 16px;
  box-shadow: 0 0 16px rgba(61,255,153,.75), 0 0 5px rgba(61,255,153,.9);
  white-space: nowrap;
}
.product-glyph { font-size: 2.2rem; color: var(--gold); letter-spacing: .2em; }
.product-card h3 { font-family: var(--display); font-size: 1.2rem; color: var(--gold-bright); }
.product-price {
  font-family: var(--display);
  color: var(--ink);
  font-size: 1.35rem;
  letter-spacing: .04em;
}
.product-sub { font-size: .9rem; color: var(--ink-dim); font-style: italic; }
.product-card p { font-size: 1rem; }
.depth-note { color: var(--gold-bright); font-style: italic; }
.product-card .btn { margin-top: auto; align-self: center; }

/* ---------- formulário ---------- */
form { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 1rem; color: var(--ink); }
.req { color: var(--gold); }
.hint { color: var(--ink-dim); font-size: .85rem; font-style: italic; }
input, select, textarea {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s ease;
  color-scheme: dark;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
textarea { resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- revelação das runas ---------- */
.rune-row {
  display: flex; justify-content: center; gap: 18px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.rune-stone {
  width: 104px; height: 148px;
  border-radius: 52px / 70px;
  background: radial-gradient(120% 120% at 30% 20%, #2c2f42, #16182a 70%);
  border: 1px solid rgba(201, 164, 92, .35);
  box-shadow: inset 0 2px 14px rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
  user-select: none;
}
.rune-stone:not(.revealed):hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(201,164,92,.25); }
.rune-stone .glyph {
  font-size: 3rem;
  color: var(--gold-bright);
  text-shadow: 0 0 18px rgba(201,164,92,.7);
  opacity: 0;
  transition: opacity .4s ease;
}
.rune-stone .pos-label {
  position: absolute; top: -26px; width: 100%;
  text-align: center; font-size: .82rem; letter-spacing: .12em;
  color: var(--ink-dim); font-family: var(--display); text-transform: uppercase;
}
.rune-stone .rune-name {
  position: absolute; bottom: -46px; width: 140%; left: -20%;
  text-align: center; font-family: var(--display); font-size: .85rem;
  color: var(--gold-bright); opacity: 0; transition: opacity .5s ease .3s;
}
.rune-stone.revealing .glyph { animation: flicker 1.8s steps(12) forwards; }
@keyframes flicker { 0% { opacity: .2; } 70% { opacity: .6; } 100% { opacity: 1; } }
.rune-stone.revealed { cursor: default; border-color: var(--gold); }
.rune-stone.revealed .glyph { opacity: 1; }
.rune-stone.revealed .rune-name { opacity: 1; }
/* runa invertida: o glifo fica de pé; o selo "Invertida" marca a posição */
.rune-stone .tap-hint {
  position: absolute; font-size: 1.6rem; color: rgba(232,228,216,.35);
  animation: pulse 2.5s ease-in-out infinite;
}
.rune-stone.revealed .tap-hint, .rune-stone.revealing .tap-hint { display: none; }
.inv-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--danger);
  border: 1px solid rgba(201,107,92,.5);
  border-radius: 999px; padding: 2px 10px;
  font-family: var(--display);
}
.rune-stone .inv-badge {
  position: absolute; bottom: -76px; left: 50%; transform: translateX(-50%);
  opacity: 0; transition: opacity .5s ease .6s;
}
.rune-stone.revealed.inverted .inv-badge { opacity: 1; }
.rune-row { margin-bottom: 92px; margin-top: 48px; }

/* ---------- tarô ---------- */
.tarot-area { text-align: center; margin: 26px 0 10px; }
.tarot-card {
  width: 130px; height: 210px; margin: 16px auto 0;
  perspective: 900px; cursor: pointer;
}
.tarot-inner {
  width: 100%; height: 100%; position: relative;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2, .8, .25, 1);
}
.tarot-card.flipped .tarot-inner { transform: rotateY(180deg); }
.tarot-card.flipped { cursor: default; }
.tarot-back, .tarot-front {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--card-border);
}
.tarot-back {
  background:
    repeating-linear-gradient(45deg, rgba(201,164,92,.12) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #1b1d30, #121320);
  font-size: 2rem; color: var(--gold);
}
.tarot-front {
  transform: rotateY(180deg); overflow: hidden;
  background: linear-gradient(165deg, #221d33, #14121f);
  font-family: var(--display);
  color: var(--gold-bright);
  font-size: 1rem; text-align: center; padding: 12px; gap: 4px;
}

/* ---------- carregando ---------- */
.loading-wrap { text-align: center; padding-top: 10dvh; }
/* Tela de espera: o mesmo halo duplo da home, girando mais rápido e com o
   núcleo pulsando em ritmo de trabalho — "o Numen está tecendo". */
.hero-runes.is-weaving { margin-bottom: 30px; }
.hero-runes.is-weaving .rune-halo { animation-duration: 14s; }
.hero-runes.is-weaving .rune-halo.inner { animation-duration: 9s; opacity: .7; }
.hero-runes.is-weaving .hero-core { animation-duration: 2.4s; }
.rune-ring {
  width: 170px; height: 170px; margin: 0 auto 30px;
  position: relative;
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.rune-ring span {
  position: absolute; left: 50%; top: 50%;
  font-size: 1.5rem; color: var(--gold);
  text-shadow: 0 0 12px rgba(201,164,92,.6);
  transform: rotate(calc(var(--i) * 30deg)) translateY(-78px) translateX(-50%);
}
.rune-ring span:nth-child(1) { --i: 0; } .rune-ring span:nth-child(2) { --i: 1; }
.rune-ring span:nth-child(3) { --i: 2; } .rune-ring span:nth-child(4) { --i: 3; }
.rune-ring span:nth-child(5) { --i: 4; } .rune-ring span:nth-child(6) { --i: 5; }
.rune-ring span:nth-child(7) { --i: 6; } .rune-ring span:nth-child(8) { --i: 7; }
.rune-ring span:nth-child(9) { --i: 8; } .rune-ring span:nth-child(10) { --i: 9; }
.rune-ring span:nth-child(11) { --i: 10; } .rune-ring span:nth-child(12) { --i: 11; }
.loading-msg { color: var(--ink-dim); font-style: italic; min-height: 1.6em; }
.warning {
  margin-top: 34px; color: var(--gold);
  font-size: .95rem;
  border: 1px solid var(--card-border);
  border-radius: 12px; padding: 16px 20px;
  display: inline-block;
  background: rgba(201,164,92,.06);
  line-height: 1.6;
}
.warning-mark {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(201,164,92,.6);
}

/* ---------- relatório ---------- */
/* ---------- pagamento ---------- */
.payment-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(6px);
}
.payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--ink-dim);
}
.payment-summary strong {
  color: var(--gold-bright);
  font-family: var(--display);
  white-space: nowrap;
}
.payment-qr {
  display: block;
  width: min(260px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 18px;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}
.payment-code-label {
  display: block;
  color: var(--gold);
  font-family: var(--display);
  font-size: .86rem;
  letter-spacing: .08em;
}
#payment-code {
  width: 100%;
  margin-top: 8px;
  resize: vertical;
  min-height: 96px;
  font-family: 'Courier New', monospace;
  font-size: .8rem;
}
.payment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}
.payment-ticket {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 18px auto 0;
  color: var(--gold-bright);
}
.payment-status {
  margin-top: 16px;
  text-align: center;
  color: var(--ink-dim);
  font-style: italic;
}

/* ===== a folha do relatório: um pergaminho pousado no palco escuro ===== */
.report {
  --rp-pad: clamp(26px, 5.5vw, 64px);
  position: relative;
  max-width: 780px;
  margin: 22px auto 0;
  padding: var(--rp-pad);
  background:
    radial-gradient(130% 80% at 50% -10%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  color: var(--ink-p);
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 0 0 1px rgba(138,109,47,.28),
    0 24px 60px rgba(0,0,0,.55);
  font-size: 1.16rem;
  line-height: 1.68;
  white-space: normal;
  overflow-wrap: break-word;
}
.report p { margin: 0 0 1em; }
.report strong { font-weight: 600; color: var(--ink-p); }
.report em { font-style: italic; color: inherit; }
.report ul, .report ol { padding-left: 1.3em; margin: .2em 0 1em; }
.report li::marker { color: var(--gold-ink-2); }
.report .cursor { color: var(--gold-ink); animation: pulse 1s infinite; }
.report-actions { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* frontispício */
.rp-front { text-align: center; margin-bottom: .5em; }
.rp-eyebrow {
  font-family: var(--display); font-size: .66rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 .9em;
}
.rp-for { font-size: 1.05rem; color: var(--sepia); margin: 0 0 .3em; }
.rp-for strong { color: var(--ink-p); font-weight: 600; }
.rp-theme { font-size: 1rem; color: var(--sepia); margin: 0 0 1.4em; }
.rp-theme em { color: var(--sepia); }

.rp-spread {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(14px, 3vw, 30px); margin: .6em 0 1.2em; flex-wrap: wrap;
}
.rp-stone, .rp-card { margin: 0; text-align: center; }
.rp-stone img, .rp-card img {
  display: block; margin: 0 auto;
  width: 118px; height: 118px; object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--gold-ink-2);
  box-shadow: 0 6px 18px rgba(63,44,18,.22);
  background: #fff;
}
.rp-spread-1 .rp-stone img { width: 150px; height: 150px; }
.rp-card img { width: 128px; height: 128px; }
.rp-card { margin: 0 auto 1.2em; }
/* runa invertida: a imagem fica como está; basta a palavra "invertida" */
.rp-pos {
  display: block; font-family: var(--display); font-size: .6rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--sepia); margin-bottom: .55em;
}
.rp-stone figcaption, .rp-card figcaption {
  margin-top: .55em; font-family: var(--display); font-size: .82rem; letter-spacing: .04em; color: var(--ink-p);
}
.rp-card figcaption .rp-pos { margin: .1em 0 .2em; }
.rp-inv {
  display: block; font-family: var(--serif); font-style: normal; font-weight: 700;
  font-size: .9rem; letter-spacing: 0; text-transform: none; color: var(--rust);
}
.rp-stone-blank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 118px; height: 118px; border: 1px solid var(--gold-ink-2); border-radius: 10px;
  font-family: var(--display); font-size: .8rem; color: var(--sepia);
}
.rp-colophon {
  font-family: var(--display); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sepia); line-height: 2.1; margin: .4em 0 0;
}
.rp-colophon .rp-row { display: block; }
.rp-colophon .rp-row > span { white-space: nowrap; }
.rp-colophon .rp-row > span:not(:last-child)::after { content: '·'; margin: 0 .55em; color: var(--gold-ink-2); }
.rp-colophon b { font-weight: 600; color: var(--gold-ink); margin-right: .4em; }

/* divisor: três pontos rúnicos */
.rp-rule { border: 0; height: auto; text-align: center; margin: 1.8em 0 1.6em; }
.rp-rule::after { content: '᛫ ᛫ ᛫'; font-family: var(--display); font-size: .95rem; letter-spacing: .5em; color: var(--gold-ink-2); }
.rp-front .rp-rule { margin: 1.6em 0 0; }

/* título e hierarquia */
.rp-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.45rem, 3.4vw, 2rem); line-height: 1.22; letter-spacing: .015em;
  text-align: center; color: var(--ink-p); margin: 1.4em 0 1.3em;
}
.rp-title::after { content: ''; display: block; width: 44px; height: 1px; background: var(--gold-ink-2); margin: .7em auto 0; }
.rp-section {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.4rem; line-height: 1.3; color: var(--ink-p);
  margin: 2.2em 0 .35em;
}
.rp-subtitle {
  position: relative; isolation: isolate;
  font-family: var(--display); font-size: .76rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; line-height: 1.6;
  color: var(--gold-ink); margin: 0 0 .9em;
}
.rp-subtitle strong { color: inherit; font-weight: inherit; }
/* inicial iluminada: o glifo da runa que fala nesta seção, na margem da folha */
.rp-subtitle[data-glyph]::before {
  content: attr(data-glyph);
  position: absolute; z-index: -1;
  left: calc(-1 * var(--rp-pad) + 10px); top: -.7em;
  font-family: var(--display); font-size: 3.4rem; line-height: 1;
  color: var(--gold-ink); opacity: .14; pointer-events: none;
}
.rp-question {
  font-style: italic; font-size: 1.2rem; line-height: 1.5; color: var(--ink-p);
  text-align: center; max-width: 34em; margin: 0 auto 1.1em;
}
.rp-question strong { font-weight: 500; }
.rp-quote { font-style: italic; color: var(--sepia); border-left: 2px solid var(--gold-ink-2); padding-left: 1em; }

/* plate final: o terreno da leitura */
.rp-closing { margin-top: 2.6em; padding-top: 1.6em; border-top: 1px solid rgba(138,109,47,.35); text-align: center; }
.rp-symbols { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 22px; margin: .2em auto 0; max-width: 520px; }
.rp-symbol { margin: 0; text-align: center; width: 96px; }
.rp-symbol img {
  width: 78px; height: 78px; object-fit: cover; border-radius: 9px;
  border: 1px solid var(--gold-ink-2); box-shadow: 0 5px 14px rgba(63,44,18,.18); background: #fff;
}
.rp-symbol figcaption { margin-top: .45em; font-size: .95rem; line-height: 1.2; color: var(--ink-p); }
.rp-symbol figcaption span {
  display: block; font-family: var(--display); font-size: .58rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-ink); margin-bottom: .2em;
}

@media (max-width: 640px) {
  .report { font-size: 1.08rem; line-height: 1.62; margin-top: 12px; }
  .rp-stone img { width: 92px; height: 92px; }
  .rp-spread-1 .rp-stone img { width: 128px; height: 128px; }
  .rp-card img { width: 108px; height: 108px; }
  .rp-eyebrow { letter-spacing: .16em; font-size: .62rem; }
  .rp-colophon { letter-spacing: .08em; }
  .rp-colophon .rp-row > span:not(:last-child)::after { margin: 0 .4em; }
  .rp-subtitle[data-glyph]::before { position: static; display: block; font-size: 2.3rem; opacity: .16; margin: 0 0 .05em; }
}

/* ===== contas / login / consentimento / histórico (auth.js) ===== */
/* Barra de conta: faixa fixa no topo, opaca, acima de tudo — o conteúdo rola
   por baixo sem se misturar. O body ganha folga (has-account-bar). */
#na-account-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 9px 14px;
  font-family: var(--display); font-size: .82rem;
  background: rgba(10, 8, 16, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 164, 92, .18);
}
body.has-account-bar { padding-top: 54px; }
.na-bar-btn {
  background: rgba(201,164,92,.10); color: var(--gold-bright);
  border: 1px solid var(--gold); border-radius: 999px;
  padding: 6px 14px; cursor: pointer; letter-spacing: .04em;
}
.na-bar-btn:hover { background: rgba(201,164,92,.20); }
.na-bar-user { color: var(--ink-dim); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.na-bar-link { background: none; border: none; color: var(--ink-dim); cursor: pointer; text-decoration: underline; font-size: .78rem; }
.na-bar-link:hover { color: var(--gold); }

.na-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,7,12,.74); backdrop-filter: blur(4px);
  padding: 20px;
}
.na-modal {
  position: relative; width: 100%; max-width: 420px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--gold); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.6);
  padding: 30px 26px 26px; color: var(--ink);
  max-height: 88vh; overflow-y: auto;
}
.na-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; color: var(--ink-dim);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.na-close:hover { color: var(--gold); }
.na-title { font-family: var(--display); color: var(--gold-bright); margin: 0 0 8px; font-size: 1.25rem; }
.na-sub { color: var(--ink-dim); font-size: .9rem; margin: 0 0 18px; }
.na-or { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--ink-dim); font-size: .8rem; }
.na-or::before, .na-or::after { content: ''; flex: 1; height: 1px; background: rgba(201,164,92,.25); }
.na-form label, .na-modal label { display: block; margin: 0 0 12px; font-size: .85rem; color: var(--ink-dim); }
.na-form input[type=email], .na-form input[type=password] {
  width: 100%; margin-top: 5px; padding: 11px 12px;
  background: rgba(255,255,255,.04); color: var(--ink);
  border: 1px solid rgba(201,164,92,.35); border-radius: 9px; font-size: 1rem;
}
.na-form input:focus { outline: none; border-color: var(--gold); }
.na-error { color: #e7a17a; font-size: .85rem; margin: 4px 0 10px; }
.na-toggle { text-align: center; color: var(--ink-dim); font-size: .85rem; margin: 14px 0 0; }
.na-toggle a { color: var(--gold-bright); }
.na-google { width: 100%; }

.na-terms { font-size: .88rem; color: var(--ink); line-height: 1.5; margin-bottom: 14px; }
.na-terms strong { color: var(--gold-bright); }
.na-check { display: flex; align-items: flex-start; gap: 9px; font-size: .85rem; color: var(--ink); cursor: pointer; }
.na-check input { margin-top: 3px; accent-color: var(--gold); }
.na-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; }

.na-area-user {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 4px 10px;
  border: 1px solid rgba(201,164,92,.28);
  border-radius: 999px;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.na-area-grid {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}
.na-area-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(201,164,92,.28);
  border-radius: 12px;
  padding: 14px 15px;
  background: rgba(255,255,255,.035);
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.na-area-card:hover {
  border-color: var(--gold);
  background: rgba(201,164,92,.08);
  transform: translateY(-1px);
}
.na-area-card strong {
  display: block;
  font-family: var(--display);
  color: var(--gold-bright);
  font-size: .98rem;
  letter-spacing: .04em;
  margin-bottom: 3px;
}
.na-area-card span {
  display: block;
  color: var(--ink-dim);
  font-family: var(--serif);
  font-size: .9rem;
  line-height: 1.35;
}

.na-history { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.na-hist-item {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  background: rgba(255,255,255,.03); border: 1px solid rgba(201,164,92,.25);
  border-radius: 11px; padding: 12px 14px; cursor: pointer; color: var(--ink);
}
.na-hist-item:hover { border-color: var(--gold); background: rgba(201,164,92,.08); }
.na-hist-title { font-family: var(--display); color: var(--gold-bright); font-size: .98rem; }
.na-hist-meta { color: var(--ink-dim); font-size: .78rem; }

.footer {
  text-align: center; color: var(--ink-dim);
  font-size: .8rem; padding: 18px 0 28px;
  font-style: italic;
}

/* ---------- impressão ---------- */
@media print {
  .sky, .footer, .report-actions, .btn { display: none !important; }
  body { background: #fff; color: #1c1a14; font-size: 12pt; }
  #app { max-width: 100%; padding: 0; }
  .report { background: none; border: none; padding: 0; }
  .report h1, .report h2, .report h3 { color: #6d5420; }
  .report em { color: #6d5420; }
  .report pre { background: #f5f2ea; color: #444; }
}

@media (max-width: 480px) {
  .rune-stone { width: 88px; height: 126px; }
  .rune-stone .glyph { font-size: 2.5rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .payment-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* ===================== perfis + Guia do Dia ===================== */
.profile-pick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(200, 170, 90, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.profile-pick-hint { font-size: 0.86rem; opacity: 0.72; }

.np-modal { max-width: 460px; }
.np-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.np-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(200, 170, 90, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.np-item-info { font-size: 0.92rem; }
.np-item-actions { display: flex; gap: 10px; flex-shrink: 0; }
.np-item-actions button {
  background: none; border: none; color: inherit; cursor: pointer;
  font-size: 0.82rem; opacity: 0.85; text-decoration: underline;
}
.np-del { color: #e08a8a; }
.np-primary {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 0.7rem;
  border-radius: 999px;
  background: rgba(200, 170, 90, 0.18);
  border: 1px solid rgba(200, 170, 90, 0.4);
}
.np-pick { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.np-pick-item {
  text-align: left;
  padding: 12px 14px;
  color: inherit;
  border: 1px solid rgba(200, 170, 90, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.np-pick-item:hover { border-color: rgba(200, 170, 90, 0.6); background: rgba(255, 255, 255, 0.06); }
.np-form { margin-top: 8px; }

/* Home: travar à dobra com conteúdo — preenche a viewport e centraliza,
   sem deixar espaço vazio rolável abaixo do herói (sobretudo no mobile). */
#screen-home.active {
  min-height: calc(100dvh - 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#screen-home .hero { padding-top: 0; }

/* Destaque do CTA da Consulta Essencial (borda um pouco mais grossa). */
.product-card .btn-outline { border-width: 2px; }

/* Banner de perfil no formulário de consulta (dados de nascimento vêm do perfil). */
/* atributo hidden vence qualquer display de classe (ex.: faixa de perfil no fluxo anonimo) */
[hidden] { display: none !important; }

.form-profile-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(201, 164, 92, 0.08);
}
.fpb-text { font-size: 1rem; }
.fpb-text strong { color: var(--gold-bright); }
.btn-link {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  padding: 0;
}

/* Histórico pesquisável (tabela). */
.na-hist-search {
  width: 100%;
  margin: 6px 0 12px;
  padding: 9px 12px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
}
.na-hist-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.na-hist-table th {
  text-align: left;
  color: var(--ink-dim);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 8px;
  border-bottom: 1px solid var(--card-border);
}
.na-hist-row { cursor: pointer; transition: background 0.15s; }
.na-hist-row:hover { background: rgba(201, 164, 92, 0.1); }
.na-hist-row td { padding: 8px; border-bottom: 1px solid rgba(201, 164, 92, 0.1); vertical-align: top; }
.na-hist-q { color: var(--ink-dim); }

/* ===== impressão / PDF: a mesma folha, em papel ===== */
@page { size: A4; margin: 16mm 15mm 18mm; }
@media print {
  html, body { background: #fff !important; }
  #app { max-width: none !important; padding: 0 !important; }
  .screen { display: none !important; }
  #screen-report { display: block !important; animation: none !important; }
  .report {
    max-width: none; margin: 0; padding: 0 2mm;
    background: none; box-shadow: none; border-radius: 0;
    color: #221e19; font-size: 11.5pt; line-height: 1.55;
  }
  .rp-front, .rp-title, .rp-section, .rp-subtitle { break-after: avoid; }
  .rp-stone, .rp-card, .rp-symbol, .rp-spread, .rp-closing { break-inside: avoid; }
  .report p { orphans: 3; widows: 3; }
  .rp-stone img, .rp-card img, .rp-symbol img { box-shadow: none; }
  .rp-subtitle[data-glyph]::before { left: -2mm; top: -1.1em; opacity: .12; }
  .rp-rule::after { color: #8a6d2f; }
}

/* dica sob os botões da folha; some na impressão junto com a barra de conta */
.report-hint { text-align: center; color: var(--ink-dim); font-size: .92rem; font-style: italic; margin: 10px auto 0; max-width: 46ch; }
@media print { .report-hint, .report-feedback, #na-account-bar { display: none !important; } }

/* "esta leitura ressoou com você?" — um gesto discreto de fechamento, fora da folha */
.report-feedback { text-align: center; margin: 34px auto 0; max-width: 46ch; min-height: 1px; }
.rf-q {
  font-family: var(--display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 12px;
}
.rf-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.rf-btn {
  font-family: var(--serif); font-size: .95rem; font-style: italic;
  color: var(--ink); background: transparent;
  border: 1px solid rgba(201,164,92,.35); border-radius: 999px;
  padding: 8px 20px; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.rf-btn:hover { border-color: var(--gold); background: rgba(201,164,92,.08); color: var(--gold-bright); }
.rf-done { color: var(--ink-dim); font-size: .95rem; font-style: italic; margin: 0; }

/* Compra sem conta: aceite dos termos e e-mail opcional no formulário */
.anon-fields { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; border-top: 1px solid var(--card-border); }
label.consent-check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: .96rem; line-height: 1.45; cursor: pointer; }
label.consent-check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--gold); }
.consent-terms { font-size: .9rem; color: var(--ink-dim); }
.consent-terms summary { cursor: pointer; color: var(--gold); }
.consent-terms p { margin: 8px 0 0; }
/* "Quer guardar esta leitura?" depois do relatório, para quem comprou sem conta */
.report-account { text-align: center; margin: 26px auto 0; max-width: 46ch; }
.report-account .ra-q { font-family: var(--display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.report-account .ra-sub { color: var(--ink-dim); font-size: .95rem; margin: 0 0 12px; }
.report-account .ra-done { color: var(--ink); font-style: italic; }
@media print { .report-account { display: none !important; } }

/* Leitura Completa: fonte do mito e "Três palavras para levar" */
.rp-source { font-size: .86rem; font-style: italic; color: var(--sepia); text-align: right; margin: -.2em 0 1.6em; }
.rp-source em { font-style: italic; }
.rp-keyword { margin: 0 0 .9em; padding-left: 1em; border-left: 2px solid var(--gold-ink); }
.rp-keyword strong {
  font-family: var(--display); font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
  font-size: .95em; color: var(--gold-ink);
}

/* Revelação: e-mail de entrega antes de "Tecer a leitura" */
.reveal-email { max-width: 420px; margin: 26px auto 14px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.reveal-email label { display: block; font-family: var(--display); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.reveal-email input { width: 100%; }
.reveal-email .hint { font-size: .88rem; color: var(--ink-dim); margin: 0; }
.reveal-email-account { font-size: .92rem; color: var(--ink-dim); text-align: center; margin: 22px auto 10px; max-width: 46ch; }
#btn-generate:disabled { opacity: .45; cursor: not-allowed; }

/* Convite depois do relatório: aparece quando a pessoa chega ao fim */
.report-account { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.report-account.ra-visible { opacity: 1; transform: none; }
.report-account.ra-gift {
  max-width: 52ch; padding: 24px 22px 20px; border: 1px solid var(--card-border); border-radius: 16px;
  background: linear-gradient(180deg, rgba(201,164,92,.10), rgba(201,164,92,.02));
}
.report-account .ra-kicker { font-family: var(--display); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright); margin: 0 0 8px; }
.report-account.ra-gift .ra-q { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0; text-transform: none; color: var(--ink); line-height: 1.3; }
.report-account .ra-news { display: flex; gap: 10px; align-items: flex-start; justify-content: center; text-align: left; font-size: .9rem; color: var(--ink-dim); margin: 0 auto 14px; max-width: 40ch; cursor: pointer; }
.report-account .ra-news input { width: 16px; height: 16px; margin-top: 3px; flex: none; accent-color: var(--gold); }
.report-account .ra-fine { font-size: .8rem; color: var(--ink-dim); margin: 10px 0 0; }
.report-account .ra-mail { font-size: .9rem; color: var(--ink-dim); font-style: italic; margin: 0 0 16px; }

/* lembrete discreto do presente, no meio da leitura */
.gift-pill {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 30px); opacity: 0; z-index: 60;
  background: rgba(11,12,20,.92); color: var(--gold-bright); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 10px 18px; font-family: var(--serif); font-size: 1rem; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: opacity .5s ease, transform .5s ease; max-width: calc(100vw - 32px);
}
.gift-pill.show { opacity: 1; transform: translate(-50%, 0); }

/* presente disponível no card da Consulta Essencial */
.gift-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--gold); color: var(--bg); font-family: var(--display); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}

/* avisos curtos (retomada da leitura paga) */
.numen-toast {
  position: fixed; left: 50%; top: 18px; transform: translate(-50%, -20px); opacity: 0; z-index: 80;
  background: rgba(11,12,20,.95); color: var(--ink); border: 1px solid var(--card-border); border-radius: 12px;
  padding: 12px 18px; max-width: min(92vw, 520px); text-align: center; font-size: .98rem;
  transition: opacity .45s ease, transform .45s ease; box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.numen-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media print { .gift-pill, .numen-toast { display: none !important; } }

/* carta revelada com a ilustração em aquarela (quando existe) */
.tarot-img { width: 100%; height: 150px; object-fit: cover; border-radius: 9px; border: 1px solid var(--card-border); }
.tarot-card.has-img .tarot-front { justify-content: flex-start; padding: 8px 8px 10px; gap: 8px; font-size: .86rem; }

/* formulário em blocos: quem é você · dados de nascimento · a consulta */
.form-block { border: 1px solid var(--card-border); border-radius: 16px; padding: 18px 18px 20px; margin: 0; display: flex; flex-direction: column; gap: 20px; background: var(--card); }
.form-block legend { font-family: var(--display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding: 0 8px; }
.form-block-sub { margin: -8px 0 0; font-size: .92rem; color: var(--ink-dim); font-style: italic; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { display: block; font-size: 1rem; color: var(--ink); }
.field-help { font-size: .86rem; color: var(--ink-dim); line-height: 1.4; }
.opt { font-size: .78rem; color: var(--ink-dim); font-style: italic; margin-left: 4px; }
@media (max-width: 560px) { .form-block { padding: 14px 12px 16px; } }

.reveal-optin { display: flex !important; flex-direction: row; gap: 10px; align-items: flex-start; font-family: var(--serif) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: .92rem !important; color: var(--ink-dim) !important; cursor: pointer; }
.reveal-optin input { width: 16px; height: 16px; margin-top: 3px; flex: none; accent-color: var(--gold); }

/* frontispício: os dados que teceram a leitura, legíveis (tela e PDF) */
.rp-data { margin: 1.4em auto .6em; max-width: 30em; text-align: left; border-top: 1px solid rgba(138,109,47,.35); border-bottom: 1px solid rgba(138,109,47,.35); padding: .9em .2em .7em; }
.rp-data-title { font-family: var(--display); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); text-align: center; margin: 0 0 .7em; }
.rp-data dl { margin: 0; display: grid; gap: .45em; }
.rp-data-row { display: grid; grid-template-columns: 11.5em 1fr; gap: .8em; align-items: baseline; }
.rp-data dt { font-family: var(--display); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sepia); }
.rp-data dd { margin: 0; font-size: .98rem; color: var(--ink-p); }
.rp-data .rp-note { color: var(--sepia); font-size: .85em; font-style: italic; }
.rp-data-moon dd { font-style: italic; color: var(--gold-ink); }
@media (max-width: 560px) { .rp-data-row { grid-template-columns: 1fr; gap: .1em; } }

/* formulário: frase de confiança junto do botão */
.form-reassure { text-align: center; font-size: .92rem; color: var(--ink-dim); margin: 4px 0 -6px; letter-spacing: .02em; }
#form-price { color: var(--gold-bright); }

/* data de nascimento em três caixas (dia · mês · ano) */
.field-label { display: block; font-size: 1rem; color: var(--ink); }
.date-parts { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 10px; max-width: 340px; }
.date-parts label.dp { gap: 4px; font-size: .82rem; color: var(--ink-dim); }
.date-parts input { width: 100%; min-width: 0; text-align: center; letter-spacing: .06em; }

/* exemplos de pergunta: um toque preenche */
.q-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.q-examples-label { width: 100%; font-size: .86rem; color: var(--ink-dim); }
.q-chip {
  font-family: var(--serif); font-size: .9rem; line-height: 1.3; text-align: left;
  color: var(--gold-bright); background: rgba(201,164,92,.06);
  border: 1px solid var(--card-border); border-radius: 999px; padding: 7px 13px; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.q-chip:hover, .q-chip:focus-visible { border-color: var(--gold); background: rgba(201,164,92,.13); outline: none; }

/* o que você recebe: confiança antes de pagar (formulário e Pix) */
.trust-box { border: 1px solid var(--card-border); border-radius: 16px; padding: 16px 18px; background: var(--card); }
.trust-box[hidden] { display: none; }
.trust-box-pay { margin-top: 18px; }
.trust-title { margin: 0 0 10px; font-family: var(--display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.trust-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.trust-list li { position: relative; padding-left: 20px; font-size: .95rem; line-height: 1.45; color: var(--ink); }
.trust-list li::before { content: '✦'; position: absolute; left: 0; top: .1em; color: var(--gold); font-size: .78rem; }
.trust-sample { margin-top: 12px; font-size: .95rem; }
.trust-sample summary { cursor: pointer; color: var(--gold); }
.trust-sample blockquote {
  margin: 10px 0 6px; padding: 10px 14px; border-left: 2px solid var(--gold);
  border-radius: 0 10px 10px 0; background: rgba(201,164,92,.05);
  color: var(--ink); font-style: italic; line-height: 1.6;
}
.trust-sample-note { margin: 0; font-size: .82rem; color: var(--ink-dim); }
@media (max-width: 560px) { .trust-box { padding: 14px 12px; } }

/* ---------- a barra que tece (tela de espera) ---------- */
/* Um fio de ouro que se acende da esquerda para a direita, com a runa Kenaz
   (a tocha) na ponta. O trecho que falta é um fio pontilhado, ainda por tecer. */
.weave { max-width: 520px; margin: 4px auto 0; text-align: left; }
.weave-track {
  position: relative; height: 10px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid rgba(201,164,92,.3);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.6);
}
.weave-track::before {
  content: ''; position: absolute; left: 8px; right: 8px; top: 50%; height: 1px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, rgba(201,164,92,.4) 0 5px, transparent 5px 11px);
}
.weave-fill {
  position: relative; height: 100%; width: 0; min-width: 10px; border-radius: inherit;
  background: linear-gradient(90deg, #8a6d2f, #c9a45c 45%, #e8c987 82%, #fff4d6);
  box-shadow: 0 0 12px rgba(232,201,135,.55), 0 0 30px rgba(201,164,92,.25);
  transition: width .6s cubic-bezier(.22,.8,.3,1);
}
.weave-fill::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(100deg, transparent 30%, rgba(255,250,235,.8) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: weave-shimmer 2.6s linear infinite;
  mix-blend-mode: screen;
}
.weave-spark {
  position: absolute; right: -12px; top: 50%;
  width: 24px; height: 24px; transform: translateY(-50%);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1rem; line-height: 1;
  color: #fff6de;
  text-shadow: 0 0 10px rgba(255,236,190,.95), 0 0 24px rgba(232,201,135,.85);
  animation: weave-spark 1.8s ease-in-out infinite;
}
.weave-spark::before {
  content: ''; position: absolute; inset: -7px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255,240,205,.6), rgba(232,201,135,.2) 45%, transparent 70%);
}
.weave-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.weave-stage { font-style: italic; color: var(--ink); font-size: 1.08rem; line-height: 1.35; }
.weave-pct {
  font-family: var(--display); color: var(--gold-bright); font-size: .95rem;
  letter-spacing: .08em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.weave-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 5px; }
.weave-steps li {
  position: relative; padding-left: 24px;
  color: var(--ink-dim); font-size: .96rem; opacity: .55;
  transition: color .5s, opacity .5s;
}
.weave-steps li::before { content: '·'; position: absolute; left: 7px; top: 0; color: var(--gold); }
.weave-steps li.done { color: var(--gold); opacity: .92; }
.weave-steps li.done::before { content: '✦'; left: 3px; font-size: .78rem; top: .2em; }
.weave-steps li.now { color: var(--ink); opacity: 1; }
.weave-steps li.now::before {
  content: 'ᚲ'; left: 4px; color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(232,201,135,.85);
  animation: weave-blink 1.6s ease-in-out infinite;
}
.weave.is-done .weave-fill::after,
.weave.is-done .weave-spark { animation: none; }
.weave.is-done .weave-pct { color: #fff4d6; text-shadow: 0 0 12px rgba(232,201,135,.8); }
@keyframes weave-shimmer { from { background-position: 125% 0; } to { background-position: -125% 0; } }
@keyframes weave-spark {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: .9; }
  50% { transform: translateY(-50%) scale(1.2); opacity: 1; }
}
@keyframes weave-blink { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* ---------- prelúdio: os símbolos da pessoa enquanto a leitura é escrita ---------- */
.prelude { max-width: 560px; margin: 28px auto 0; text-align: left; }
.prelude-title {
  text-align: center; margin: 0 0 12px;
  font-family: var(--display); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); opacity: .88;
}
.prelude-card {
  display: grid; grid-template-columns: 116px 1fr; gap: 18px; align-items: center;
  padding: 18px 20px; border-radius: 16px; min-height: 152px;
  background: linear-gradient(160deg, rgba(34,29,51,.82), rgba(17,19,31,.86));
  border: 1px solid rgba(201,164,92,.32);
  box-shadow: 0 12px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,244,214,.07);
  touch-action: pan-y;
}
.prelude-card.in { animation: prelude-in .7s cubic-bezier(.2,.7,.2,1); }
.prelude-art {
  width: 116px; height: 116px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(232,201,135,.18), rgba(201,164,92,.04) 70%);
  border: 1px solid rgba(201,164,92,.35);
  box-shadow: 0 0 26px rgba(201,164,92,.18);
}
.prelude-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prelude-glyph {
  font-family: var(--display); font-size: 2.6rem; line-height: 1;
  color: var(--gold-bright); text-shadow: 0 0 18px rgba(232,201,135,.7);
}
.prelude-glyph.has-svg { width: 78%; height: 78%; display: grid; place-items: center; }
.moon-svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 10px rgba(232,201,135,.45)); }
.moon-dark { fill: #17152a; }
.moon-lit { fill: #f1dca4; }
.moon-rim { fill: none; stroke: rgba(232,201,135,.55); stroke-width: 1.2; }
.prelude-kicker {
  margin: 0 0 3px; font-family: var(--display); font-size: .7rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.prelude-name { margin: 0 0 6px; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.15; color: var(--gold-bright); }
.prelude-inv { font-size: .88rem; font-weight: 700; color: var(--gold); margin-left: .3em; }
.prelude-key { margin: 0 0 6px; color: var(--ink); font-size: 1.04rem; line-height: 1.45; }
.prelude-advice { margin: 0; color: var(--ink-dim); font-style: italic; font-size: 1rem; line-height: 1.45; }
.prelude-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.prelude-btn {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid rgba(201,164,92,.4); background: rgba(201,164,92,.06);
  color: var(--gold-bright); font-size: 1.35rem; line-height: 1;
  transition: background .2s, border-color .2s;
}
.prelude-btn:hover, .prelude-btn:focus-visible { background: rgba(201,164,92,.16); border-color: var(--gold); outline: none; }
.prelude-dots { display: flex; gap: 7px; }
.prelude-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(201,164,92,.3); transition: background .3s, transform .3s; }
.prelude-dots .dot.on { background: var(--gold-bright); transform: scale(1.35); box-shadow: 0 0 8px rgba(232,201,135,.8); }
@keyframes prelude-in {
  from { opacity: 0; transform: translateY(8px); filter: blur(2px); }
  to { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 560px) {
  .loading-wrap { padding-top: 3dvh; }
  .loading-wrap .hero-runes { transform: scale(.6); margin: -38px auto -34px; }
  .loading-wrap .screen-title { font-size: 1.35rem; margin-bottom: 14px; }
  .weave-steps { display: none; }
  .weave-stage { font-size: 1rem; }
  .prelude { margin-top: 20px; }
  .prelude-card { grid-template-columns: 84px 1fr; gap: 14px; padding: 14px; min-height: 0; }
  .prelude-art { width: 84px; height: 84px; border-radius: 12px; }
  .prelude-glyph { font-size: 2.1rem; }
  .prelude-name { font-size: 1.25rem; }
  .prelude-key, .prelude-advice { font-size: .95rem; }
  .loading-wrap .warning { margin-top: 20px; font-size: .9rem; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .weave-fill { transition: none; }
  .weave-fill::after, .weave-spark, .weave-steps li.now::before, .prelude-card.in { animation: none; }
}

/* ===================== idiomas (js/i18n.js) ===================== */
/* Sem "piscar" português em /en/ e /es/: o corpo só aparece depois que o
   i18n.js aplica o dicionário (classe i18n-ready). Se o script falhar, a
   animação devolve a página sozinha depois de 2,5 s. */
html[data-lang="en"]:not(.i18n-ready) body,
html[data-lang="es"]:not(.i18n-ready) body {
  visibility: hidden;
  animation: i18n-failsafe 0s linear 2.5s forwards;
}
@keyframes i18n-failsafe { to { visibility: visible; } }

/* Bandeiras: faixa fixa no topo à direita, fundo escuro translúcido. */
.lang-switch {
  position: fixed; top: 6px; right: 10px; z-index: 310;
  display: flex; align-items: center; gap: 2px;
  padding: 2px;
  background: rgba(10, 8, 16, .72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 40px; min-height: 40px; padding: 0 10px;
  border: 1px solid transparent; border-radius: 999px;
  color: var(--ink-dim); text-decoration: none;
  font-family: var(--display); font-size: .74rem; font-weight: 600; letter-spacing: .1em;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.lang-btn:hover { color: var(--gold-bright); background: rgba(201, 164, 92, .08); }
.lang-btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.lang-btn.is-current {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(201, 164, 92, .14);
  cursor: default;
}
.lang-flag {
  display: block; flex: none;
  width: 22px; height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
  opacity: .82;
  transition: opacity .2s ease;
}
.lang-btn:hover .lang-flag, .lang-btn.is-current .lang-flag { opacity: 1; }

/* Folga no topo para a faixa não cobrir títulos nem botões. Em tela larga o
   conteúdo (720px) fica centralizado e o canto direito já está livre. */
@media (max-width: 1099px) {
  body.has-lang-switch:not(.has-account-bar) { padding-top: 52px; }
  body.has-lang-switch:not(.has-account-bar) #screen-home.active { min-height: calc(100dvh - 140px); }
}

/* Com a barra de conta (auth.js), as bandeiras entram nela, do lado esquerdo. */
body.has-account-bar .lang-switch {
  top: 4px; left: 8px; right: auto;
  padding: 0;
  background: none; border-color: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
@media (max-width: 560px) {
  body.has-account-bar .lang-switch .lang-code { display: none; }
  body.has-account-bar .lang-btn { padding: 0 8px; }
  body.has-account-bar.has-lang-switch .na-bar-user { display: none; }
}

/* Avisos (toast) descem para baixo da faixa das bandeiras, sem ficar por trás dela. */
body.has-lang-switch .numen-toast { top: 58px; }

/* Na espera da leitura as bandeiras somem (trocar ali recarregaria a página). */
body:has(#screen-loading.active) .lang-switch { display: none; }

@media print { .lang-switch { display: none !important; } }

/* Pagamento: 2ª opção com cartão (Stripe), abaixo do Pix. */
#btn-pay-card { display: block; margin: 18px auto 0; min-width: min(260px, 100%); }
.pay-card-note {
  margin-top: 10px;
  text-align: center;
  color: var(--ink-dim);
  font-size: .9rem;
  font-style: italic;
}
@media (max-width: 480px) {
  #btn-pay-card { width: 100%; padding-left: 18px; padding-right: 18px; }
}
