:root {
  --bg: #F7F3ED; --surface: #FFFCF8; --ink: #17231C; --muted: #5F6D63;
  --primary: #153D32; --primary-ink: #fff; --gold: #AE8250; --line: #E3DBD5;
  --soft: #E7EDDE; --ok: #24684A; --ok-bg: #E5F2EA; --warn: #8A5A12; --warn-bg: #FBF0DB; --err: #A3302A; --err-bg: #FBE7E5;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 14px; --nav-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 7vw, 2.5rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
/* Títulos recebem foco por script (leitor de tela anuncia a nova tela) sem moldura visual. */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Estrutura ---------- */
.demo-bar { background: var(--primary); color: #F3E9D6; font-size: .8rem; text-align: center; padding: 6px 16px; }
.demo-bar a { color: #fff; }
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #EAD8AE; font-size: 1rem; }
.brand-name { font-family: var(--serif); font-size: 1.15rem; line-height: 1; }
.brand-sig { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .02em; margin-top: 2px; }
.sign-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font: 600 .85rem var(--sans); color: var(--ink); cursor: pointer; min-height: 40px; }
main { max-width: 600px; margin: 0 auto; padding: 20px 16px calc(var(--nav-h) + 40px); }
main:focus { outline: none; }

.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav ul { max-width: 600px; margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--nav-h); text-decoration: none; color: var(--muted); font-size: .74rem; font-weight: 600; }
.nav a svg { width: 22px; height: 22px; }
.nav a[aria-current="page"] { color: var(--primary); }
.nav a[aria-current="page"] svg { stroke: var(--gold); }

footer.foot { max-width: 600px; margin: 0 auto; padding: 8px 16px calc(var(--nav-h) + 32px); color: var(--muted); font-size: .82rem; text-align: center; }
footer.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-bottom: 8px; }

/* ---------- Componentes ---------- */
.eyebrow { font: 700 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .6em; display: block; }
.lead { font-size: 1.08rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 0 0 16px; }
.card.tint { background: var(--soft); border-color: #CFDCCB; }
.section { margin: 36px 0; }
.divider { height: 1px; background: var(--line); margin: 28px 0; border: 0; }
.ornament { text-align: center; color: var(--gold); letter-spacing: .6em; margin: 28px 0; font-size: .8rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 12px; border: 1.5px solid var(--primary); background: var(--primary); color: var(--primary-ink); font: 700 1rem var(--sans); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { filter: brightness(1.12); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.quiet { background: transparent; border-color: var(--line); color: var(--ink); font-weight: 600; min-height: 44px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; filter: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.linkbtn { background: none; border: 0; padding: 8px 0; color: var(--primary); font: 600 .95rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }

.pill { display: inline-block; font: 700 .72rem var(--sans); padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--primary); letter-spacing: .02em; }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.err { background: var(--err-bg); color: var(--err); }
.notice { border-radius: 12px; padding: 12px 14px; font-size: .9rem; margin: 0 0 16px; border: 1px solid; }
.notice.warn { background: var(--warn-bg); color: #5A3B0B; border-color: #EFD9AE; }
.notice.ok { background: var(--ok-bg); color: #18452F; border-color: #BFE0CB; }
.notice.err { background: var(--err-bg); color: #6B1D19; border-color: #F1C4BF; }
.notice.info { background: var(--soft); color: var(--primary); border-color: #CFDCCB; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }

/* ---------- Home ---------- */
.hero { padding: 8px 0 4px; display: grid; gap: 20px; }
.hero h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); }
.hero-art { display: flex; justify-content: center; height: 150px; position: relative; margin: 4px 0 -4px; }
.hero-art .c { width: 86px; position: absolute; top: 6px; filter: drop-shadow(0 8px 18px rgba(16, 43, 34, .18)); }
.hero-art .c1 { transform: translateX(-62px) rotate(-10deg); }
.hero-art .c2 { z-index: 1; top: 0; }
.hero-art .c3 { transform: translateX(62px) rotate(10deg); }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price strong { font: 500 2rem var(--serif); color: var(--primary); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--primary); display: grid; place-items: center; font: 600 .95rem var(--serif); }
.steps strong { display: block; }
.dl { display: grid; gap: 0; margin: 0; }
.dl div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.dl div:last-child { border-bottom: 0; }
.dl dt { color: var(--muted); font-size: .9rem; }
.dl dd { margin: 0; font-weight: 600; }

.sign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
.sign-grid label { position: relative; }
.sign-grid input { position: absolute; opacity: 0; inset: 0; }
.sign-grid span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 76px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: center; font-weight: 600; font-size: .86rem; }
.sign-grid span b { font: 400 1.35rem var(--serif); color: var(--gold); line-height: 1; }
.sign-grid span small { font-weight: 500; font-size: .68rem; color: var(--muted); }
.sign-grid input:checked + span { border-color: var(--primary); background: var(--soft); box-shadow: inset 0 0 0 1px var(--primary); }
.sign-grid input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 600; list-style: none; position: relative; min-height: 44px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font: 400 1.3rem var(--serif); color: var(--gold); }
details.faq[open] summary::after { content: '–'; }
details.faq > div { padding: 0 0 14px; color: var(--muted); }

/* ---------- Formulários ---------- */
.field { margin: 0 0 18px; }
.field > label, .field > .label, fieldset legend { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; padding: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.hint { font-size: .84rem; color: var(--muted); margin: 4px 0 0; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=month], input[type=datetime-local], input[type=number], select, textarea {
  width: 100%; font: 16px/1.5 var(--sans); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 50px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(21, 61, 50, .15); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.err-msg { color: var(--err); font-size: .85rem; margin: 6px 0 0; font-weight: 600; }
.choice { display: grid; gap: 10px; }
.choice label { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--primary); background: var(--soft); }
.choice input { margin-top: 4px; accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.choice b { display: block; }
.choice small { color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.counter { font-size: .8rem; color: var(--muted); text-align: right; margin-top: 4px; }
.progress { display: flex; gap: 6px; margin: 0 0 6px; }
.progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.progress i.on { background: var(--primary); }
.step-label { font-size: .82rem; color: var(--muted); margin: 0 0 18px; }
.review { white-space: pre-wrap; word-break: break-word; }

/* ---------- Leituras ---------- */
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin: 0 0 22px; }
.tabs a { text-align: center; padding: 10px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .92rem; }
.tabs a[aria-current="page"] { background: var(--primary); color: #fff; }
.reading-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; flex-wrap: wrap; }
.sign-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.sign-badge b { font: 400 1.4rem var(--serif); color: var(--gold); }
.step-box { background: var(--primary); color: #F4EBD9; border-radius: var(--r); padding: 20px; margin: 20px 0; position: relative; }
.step-box .eyebrow { color: #DEC5A1; }
.step-box p { font: 400 1.18rem/1.45 var(--serif); margin: 0; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font: 600 .9rem var(--sans); color: var(--ink); cursor: pointer; min-height: 42px; }
.chips button[aria-pressed="true"] { border-color: var(--primary); background: var(--soft); color: var(--primary); }
.expand details { border-top: 1px solid var(--line); }
.expand details:last-child { border-bottom: 1px solid var(--line); }
.expand summary { padding: 14px 0; cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; min-height: 48px; list-style: none; }
.expand summary::-webkit-details-marker { display: none; }
.expand summary::after { content: '▾'; color: var(--gold); transition: transform .2s; }
.expand details[open] summary::after { transform: rotate(180deg); }
.expand details p { color: var(--muted); }
.actions-row { display: flex; gap: 8px; margin: 18px 0; }
.link-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.link-card .mini { width: 52px; flex: none; }
.offer { border: 1px solid var(--gold); background: linear-gradient(180deg, var(--surface), #FBF5EA); }
.list-actions { padding-left: 20px; }
.list-actions li { margin-bottom: 6px; }
.question { font: italic 400 1.2rem/1.4 var(--serif); color: var(--primary); border-left: 3px solid var(--gold); padding: 4px 0 4px 14px; margin: 8px 0 0; }

/* ---------- Tarô ---------- */
.tarot-stage { display: flex; justify-content: center; margin: 12px 0 24px; perspective: 1200px; }
.flip { width: min(62vw, 230px); aspect-ratio: 200 / 340; position: relative; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.flip.revealed { transform: rotateY(180deg); }
.flip .face { position: absolute; inset: 0; backface-visibility: hidden; filter: drop-shadow(0 12px 26px rgba(16, 43, 34, .25)); }
.flip .face.front { transform: rotateY(180deg); }
.card-svg { display: block; width: 100%; height: auto; }
.keywords { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 0 0 16px; }
.breath { text-align: center; }
.breath-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); margin: 0 auto 18px; animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(2.4); opacity: 1; } }
.fade-in { animation: fade .6s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Pedido ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 30px; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.timeline li::after { content: ''; position: absolute; left: 11px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--primary); border-color: var(--primary); }
.timeline li.current::before { border-color: var(--gold); background: var(--gold); }
.timeline small { display: block; color: var(--muted); }
.pix-code { font: 500 .85rem/1.4 ui-monospace, Consolas, monospace; background: var(--bg); border: 1px dashed var(--gold); border-radius: 10px; padding: 12px; word-break: break-all; margin: 8px 0; }
.qr-placeholder { width: 168px; height: 168px; margin: 8px auto 12px; border: 2px dashed var(--gold); border-radius: 12px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .8rem; padding: 12px; }
.qr-img { display: block; width: 200px; margin: 8px auto; image-rendering: pixelated; }
.answer { font: 400 1.08rem/1.7 var(--serif); white-space: pre-wrap; }

/* ---------- Estados ---------- */
.skeleton { background: linear-gradient(90deg, var(--line) 25%, #EEE7DD 50%, var(--line) 75%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 8px; height: 16px; margin: 10px 0; }
.skeleton.h { height: 34px; width: 70%; }
@keyframes sk { to { background-position: -200% 0; } }
.state { text-align: center; padding: 40px 8px; }
.state .glyph { font: 400 2.2rem var(--serif); color: var(--gold); display: block; margin-bottom: 8px; }
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .9rem; z-index: 40; max-width: calc(100% - 32px); }

/* ---------- Diálogo ---------- */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100% - 24px)); max-height: 86vh; background: var(--bg); color: var(--ink); }
dialog::backdrop { background: rgba(10, 26, 20, .5); }
dialog .dlg-in { padding: 22px 18px; }
dialog .dlg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }

@media (min-width: 640px) {
  .sign-grid { grid-template-columns: repeat(4, 1fr); }
  main { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Primeira tela (horóscopo + carta do dia + arcano do ano) ---------- */
main.home { max-width: 1120px; }
main.home .narrow { max-width: 600px; margin-left: auto; margin-right: auto; }
.home-top { display: grid; gap: 28px; align-items: start; }
.home-main h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); margin-bottom: .2em; }
.home-sub { margin-bottom: 18px; }
.sign-tiles { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sign-tile { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 4px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, transform .15s; }
.sign-tile:hover { border-color: var(--gold); transform: translateY(-2px); }
.sign-tile[aria-current="true"] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.sign-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--primary); font: 400 1.6rem/1 var(--serif); margin-bottom: 6px; }
.sign-tile:nth-child(odd) .sign-ico, .sign-tiles li:nth-child(odd) .sign-ico { background: #F3E9D6; color: #7A5A2B; }
.sign-name { font-weight: 700; font-size: .92rem; }
.sign-dates { font-size: .72rem; color: var(--muted); }
.daily-card { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; background: var(--primary); color: #F4EBD9; border-radius: 16px; padding: 14px 18px; text-decoration: none; }
.daily-card .eyebrow { color: #DEC5A1; }
.daily-card .muted { color: #C9D6C4; }
.daily-card-title { display: block; font: 500 1.2rem var(--serif); color: #fff; }
.daily-card-go { font-size: 1.4rem; color: #DEC5A1; }
.lead-box { border-color: var(--gold); padding: 22px 20px; box-shadow: 0 10px 30px rgba(16, 43, 34, .08); }
.lead-box h2 { font-size: 1.5rem; }
.lead-box .field { margin-bottom: 12px; }
.opt-ins { margin: 4px 0 6px; }
.opt-ins legend { font-weight: 700; color: var(--muted); }
.opt-ins .check { padding: 6px 0; font-size: .88rem; }
.ask-band { margin: 48px 0 24px; padding: 26px 20px; border-radius: 18px; background: var(--soft); border: 1px solid #CFDCCB; display: grid; gap: 24px; }
.ask-band h2 { font-size: 1.7rem; }
main.home > .card.narrow { margin-bottom: 16px; }
@media (min-width: 900px) {
  .home-top { grid-template-columns: 1fr 380px; gap: 40px; }
  .sign-tiles { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .lead-box { position: sticky; top: 80px; }
  .ask-band { grid-template-columns: 1fr 1fr; padding: 36px; align-items: center; }
}

/* ---------- Arcano do ano ---------- */
.arcano-hero { text-align: center; }
.arcano-hero h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
.arcano-hero .flip { width: min(66vw, 250px); }
.year-theme { font-size: 1.6rem; }
.annual-cta { margin-top: 32px; }
.annual-hero { text-align: center; }
.annual-hero .price { justify-content: center; }
.annual-card { width: 120px; margin: 0 auto 14px; transform: rotate(-4deg); filter: drop-shadow(0 10px 22px rgba(16, 43, 34, .22)); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before { content: '✶'; position: absolute; left: 4px; color: var(--gold); }
.arcano-jump { display: inline-block; margin: -6px 0 18px; padding: 8px 14px; border-radius: 999px; background: #F3E9D6; color: #6B4D22; font-weight: 700; font-size: .86rem; text-decoration: none; }
@media (min-width: 900px) { .arcano-jump { display: none; } }
@media (min-width: 600px) and (max-width: 899px) { .sign-tiles { grid-template-columns: repeat(4, 1fr); } }
