@font-face { font-family: "Young Serif"; src: url("assets/fonts/young-serif-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --mustard: #E9B72F;
  --ink: #2A1B12;
  --wine: #5A1A26;
  --wine-deep: #431019;
  --linen: #EFE6D2;
  --paper: #FBF6E9;
  --rust: #A8421F;
  --olive: #4F5A2E;
  --sky: #BFD3D6;
  --whats: #25D366;
  --line: 3px solid var(--ink);
  --display: "Young Serif", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mustard); color: var(--ink); font: 400 1.125rem/1.55 var(--body); overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.08; }
h3 { font-size: 1.375rem; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px var(--paper); }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; background: var(--paper); padding: 8px 14px; z-index: 30; }
.skip:focus { left: 8px; top: 8px; }

.whats { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 12px 22px; background: var(--whats); color: var(--ink); border: var(--line); border-radius: 6px; box-shadow: 4px 4px 0 var(--ink); font-weight: 600; font-size: 1.125rem; line-height: 1.2; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.whats svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.whats:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.hero { padding: 28px var(--gutter) 56px; }
.hero-inner { max-width: 1160px; margin: 0 auto; display: grid; gap: 32px; align-items: center; }
.signature { font-weight: 600; margin-bottom: 18px; }
h1 { font-size: clamp(2.75rem, 11.5vw, 5.75rem); line-height: 1; letter-spacing: -.01em; }
.lead { margin: 22px 0 26px; font-size: 1.25rem; max-width: 34em; }
.note { margin-top: 16px; font-size: 1rem; }

.tarot-frame { margin: 0 auto; width: min(100%, 440px); padding: 10px 10px 0; background: var(--paper); border: var(--line); border-radius: 12px; box-shadow: 8px 8px 0 var(--ink); transform: rotate(1.5deg); }
.tarot-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border: var(--line); }
.tarot-frame figcaption { padding: 8px 0 10px; text-align: center; font-family: var(--display); font-size: 1.125rem; letter-spacing: .14em; text-transform: uppercase; }

.table { background: var(--wine); color: var(--paper); padding: 64px var(--gutter) 72px; }
.table-inner { max-width: 960px; margin: 0 auto; text-align: center; }
.table-lead { margin: 14px auto 36px; max-width: 30em; }
.piles { display: flex; justify-content: center; gap: clamp(14px, 5vw, 48px); }
.pile { position: relative; width: min(28vw, 170px); background: none; border: 0; padding: 0 0 38px; color: inherit; font: inherit; cursor: pointer; }
.pile .card-back { position: relative; box-shadow: 3px 3px 0 var(--paper), 4px 4px 0 var(--ink), 7px 7px 0 var(--paper), 8px 8px 0 var(--ink); transition: transform .18s; }
.pile:hover .card-back, .pile:focus-visible .card-back { transform: translateY(-8px) rotate(-1.5deg); }
.pile:nth-child(2) .card-back { transform: rotate(-1deg); }
.pile:nth-child(3) .card-back { transform: rotate(1.5deg); }
.pile-label { position: absolute; left: 0; right: 0; bottom: 0; font-family: var(--display); font-size: 1.375rem; }
.card-back { display: block; aspect-ratio: 7 / 12; border-radius: 8px; border: 7px solid var(--paper); outline: 2px solid var(--ink); background-color: #33506B; background-image: repeating-linear-gradient(45deg, rgba(251,246,233,.28) 0 2px, transparent 2px 12px), repeating-linear-gradient(-45deg, rgba(251,246,233,.28) 0 2px, transparent 2px 12px); }
.pile:focus-visible { outline-color: var(--paper); box-shadow: none; }

.drawn { display: grid; gap: 28px; justify-items: center; text-align: left; outline: none; }
.flip { width: min(62vw, 270px); perspective: 1200px; }
.flip-inner { position: relative; aspect-ratio: 7 / 12; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, .8, .3, 1); }
.flip.is-open .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-face .card-back { height: 100%; }
.flip-front { transform: rotateY(180deg); }
.flip-front img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--wine-deep); }
.drawn-text { max-width: 32em; display: grid; gap: 14px; justify-items: start; }
.drawn-text h3 { font-size: clamp(2rem, 7vw, 3rem); }
.drawn-advice { background: var(--paper); color: var(--ink); padding: 14px 16px; border-radius: 6px; }
.drawn-advice span:first-child { font-weight: 600; }
.drawn-joke { font-size: 1rem; }
.table .whats { box-shadow: 4px 4px 0 var(--wine-deep); }

.how { background: var(--linen); padding: 72px var(--gutter); }
.how-inner { max-width: 1160px; margin: 0 auto; display: grid; gap: 48px; align-items: start; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: step; display: grid; gap: 24px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; }
.steps li::before { content: counter(step); grid-row: span 2; width: 52px; height: 52px; display: grid; place-items: center; background: var(--mustard); border: var(--line); border-radius: 50%; font-family: var(--display); font-size: 1.5rem; }
.steps h3 { margin-bottom: 4px; }

.chat { margin: 0; width: 100%; max-width: 460px; justify-self: center; }
.chat figcaption { margin-bottom: 12px; font-size: 1rem; }
.chat-body { background: #E6DDCB; border: var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 8px; justify-items: start; font-size: 1.0625rem; line-height: 1.4; }
.bubble { background: var(--paper); padding: 9px 12px; border-radius: 10px 10px 10px 2px; max-width: 88%; }
.bubble.in { justify-self: end; background: #CFE9BA; border-radius: 10px 10px 2px 10px; }
.bubble.spread { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 88%; padding: 8px; }
.spread img { border-radius: 4px; border: 1px solid var(--ink); }

.rules { background: var(--olive); color: var(--paper); padding: 72px var(--gutter); }
.rules-inner { max-width: 1000px; margin: 0 auto; }
.rules table { margin-top: 32px; width: 100%; border-collapse: collapse; }
.rules th { text-align: left; font-weight: 600; padding: 0 16px 12px 0; }
.rules td { vertical-align: top; padding: 18px 16px 18px 0; border-top: 2px solid rgba(251,246,233,.45); }
.rules td:first-child { width: 42%; opacity: .92; }
.rules td:last-child { font-family: var(--display); font-size: 1.25rem; line-height: 1.3; padding-right: 0; }

.prices { background: var(--mustard); padding: 72px var(--gutter); }
.prices-inner { max-width: 1160px; margin: 0 auto; }
.prices-lead { margin: 14px 0 32px; max-width: 34em; }
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.price-list li { background: var(--paper); border: var(--line); border-radius: 12px; padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.price-list li:first-child { background: var(--wine); color: var(--paper); }
.amount { font-weight: 600; font-size: 2.5rem; line-height: 1.1; letter-spacing: -.01em; }
.price-list a { margin-top: auto; padding-top: 12px; font-weight: 600; }

.voice { background: var(--wine-deep); color: var(--paper); padding: 72px var(--gutter); }
.voice-inner { max-width: 1160px; margin: 0 auto; display: grid; gap: 36px; align-items: center; }
.voice-photo { width: 100%; max-width: 460px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 10px; justify-self: center; }
.voice-text { display: grid; gap: 18px; }
.player { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; background: var(--paper); color: var(--ink); border-radius: 40px; padding: 8px 18px 8px 8px; }
.player button { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--mustard); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.player svg { width: 26px; height: 26px; fill: currentColor; }
.player-track { height: 6px; background: rgba(42,27,18,.2); border-radius: 3px; overflow: hidden; }
.player-track span { display: block; height: 100%; width: 0; background: var(--rust); }
.player-time { font-size: 1rem; }
blockquote { margin: 0; font-family: var(--display); font-size: 1.25rem; line-height: 1.4; }
.voice-more { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.voice-more img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; border-radius: 8px; }

.faq { background: var(--linen); padding: 72px var(--gutter); }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq h2 { margin-bottom: 28px; }
details { border-top: var(--line); }
details:last-child { border-bottom: var(--line); }
summary { padding: 18px 36px 18px 0; font-family: var(--display); font-size: 1.375rem; line-height: 1.25; cursor: pointer; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.75rem; }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 20px; max-width: 38em; }

.closing { background: var(--wine); color: var(--paper); padding: 72px var(--gutter) 40px; }
.closing-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.closing-line { font-family: var(--display); font-size: clamp(2rem, 6.5vw, 3.25rem); line-height: 1.1; margin-bottom: 30px; text-wrap: balance; }
.closing .whats { box-shadow: 4px 4px 0 var(--wine-deep); }
.fine { margin-top: 48px; display: grid; gap: 12px; font-size: .9375rem; text-align: left; }

.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); }
.sticky .whats { width: 100%; box-shadow: none; min-height: 52px; }
.hero .whats, .drawn .whats, .closing .whats { max-width: 100%; }

@media (min-width: 720px) {
  .sticky { display: none !important; }
  .price-list { grid-template-columns: repeat(2, 1fr); }
  .drawn { grid-template-columns: auto 1fr; gap: 48px; align-items: center; justify-content: center; }
}

@media (max-width: 719px) {
  body { padding-bottom: 0; }
  .closing { padding-bottom: 96px; }
  .hero .whats, .drawn .whats, .closing .whats { width: 100%; }
  .rules thead { display: none; }
  .rules tr { display: block; padding: 18px 0; border-top: 2px solid rgba(251,246,233,.45); }
  .rules td { display: block; padding: 0; border: 0; width: auto !important; }
  .rules td:first-child { margin-bottom: 8px; }
  .rules td:first-child::before { content: "Por aí: "; font-weight: 600; }
}

@media (min-width: 960px) {
  .hero { padding-top: 48px; padding-bottom: 80px; }
  .hero-inner { grid-template-columns: 1.25fr 1fr; gap: 64px; }
  .how-inner { grid-template-columns: 1.1fr 1fr; gap: 72px; }
  .price-list { grid-template-columns: repeat(4, 1fr); }
  .voice-inner { grid-template-columns: 1fr 1.2fr; gap: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
