/* Selmoon — hand-drawn edition (ink on paper, light + dark) */
/* Layout: white paper, black ink, wobbly hand-drawn outlines; one mascot; type does the talking. */
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #ffffff;
  --paper-2: #f5f4f0;
  --ink: #161616;
  --ink2: #5c5c5c;
  --soft: #6b6b6b;
  --hair: #e7e7e7;
  --err: #b3261e;
  color-scheme: light;

  --brand: "Fredoka", -apple-system, BlinkMacSystemFont, sans-serif;
  --head: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --hand: "Patrick Hand", "Comic Sans MS", cursive;
  --gutter: clamp(16px, 5vw, 56px);
  --maxw: 1120px;

  /* old token names still used by a few inline styles */
  --gold: var(--ink); --gold-2: var(--ink); --rose: var(--ink); --teal: var(--ink2);
  --text: var(--ink); --muted: var(--ink2); --faint: var(--soft); --line: var(--hair); --line-2: var(--hair);
  --serif: var(--head); --sans: var(--body);

  /* hand-drawn shapes, used as masks so they take the ink color in both themes */
  --box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M1.6,2.4 C30,1.1 70,2.8 98.3,1.7 C99,30 98.1,70 98.5,98.1 C70,99 30,97.9 1.9,98.5 C1,70 2,30 1.6,2.4 Z' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --box-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M1.6,2.4 C30,1.1 70,2.8 98.3,1.7 C99,30 98.1,70 98.5,98.1 C70,99 30,97.9 1.9,98.5 C1,70 2,30 1.6,2.4 Z' fill='none' stroke='%23000' stroke-width='1.6' stroke-dasharray='5 5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --box-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M1.2,2 C30,0.6 70,2.4 98.8,1.2 C99.6,30 98.6,70 99,98.6 C70,99.6 30,98.4 1.4,99 C0.5,70 1.6,30 1.2,2 Z' fill='%23000'/%3E%3C/svg%3E");
  --btn-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 56' preserveAspectRatio='none'%3E%3Cpath d='M4,6 C60,4 140,3 196,7 C198,22 197,38 195,51 C140,52 60,54 5,50 C2,36 3,20 4,6 Z' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --btn-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 56' preserveAspectRatio='none'%3E%3Cpath d='M5,7 C60,3 140,5 195,6 C197,22 196,38 194,50 C140,53 60,52 6,51 C3,36 4,20 5,7 Z' fill='%23000'/%3E%3C/svg%3E");
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpath d='M4,18 C60,8 120,24 180,14 S270,10 296,16' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #141414; --paper-2: #1e1e1d; --ink: #f1efe9; --ink2: #b4b1aa; --soft: #8f8d86; --hair: #2c2c2b; --err: #ff8a80; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #141414; --paper-2: #1e1e1d; --ink: #f1efe9; --ink2: #b4b1aa; --soft: #8f8d86; --hair: #2c2c2b; --err: #ff8a80; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font: 17px/1.6 var(--body); min-height: 100vh; overflow-x: hidden; transition: background-color .25s, color .25s; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px dashed var(--ink); outline-offset: 4px; }
#stars { display: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }

/* sketch outline: any element with this look gets a wobbly ink border */
.topic, .r-block, .panel, .offer, .opt, .step, .promise > div, .modal-box, .big3 > div, .balance > div, .phase-row, .bump, .city-list, .toast {
  position: relative; background: var(--paper);
}
.topic::before, .r-block::before, .panel::before, .offer::before, .opt::before, .step::before, .promise > div::before,
.modal-box::before, .big3 > div::before, .balance > div::before, .phase-row::before, .bump::before, .city-list::before, .toast::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; background: var(--ink);
  -webkit-mask: var(--box) center / 100% 100% no-repeat; mask: var(--box) center / 100% 100% no-repeat;
}
.bump::before { -webkit-mask-image: var(--box-dash); mask-image: var(--box-dash); }

/* ---------- header ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--paper); border-bottom: 1.5px solid transparent; transition: border-color .3s, background-color .25s; }
.site-head.lined { border-bottom-color: var(--ink); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 66px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.brand .mascot { width: 34px; height: 34px; overflow: visible; }
.brand-name { font: 600 24px var(--brand); letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 26px); font: 500 13px var(--body); letter-spacing: .08em; text-transform: uppercase; }
.nav a { text-decoration: none; }
.nav a:not(.btn):hover, .nav a.active { text-decoration: underline wavy var(--ink) 1px; text-underline-offset: 6px; }
.nav .btn { letter-spacing: 0; text-transform: none; font-size: 14px; }
.theme-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; cursor: pointer; display: grid; place-items: center; padding: 0; flex: none; }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } .brand-name { font-size: 22px; } }

/* ---------- type ---------- */
h1, h2, h3, .display { font-family: var(--head); font-weight: 700; line-height: 1.06; margin: 0; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 92px); letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h3 { font-size: 24px; letter-spacing: -.02em; }
.eyebrow { display: inline-block; font: 21px/1.2 var(--hand); color: var(--ink2); }
em.gild, .gild { font-style: normal; position: relative; display: inline-block; white-space: nowrap; }
em.gild::after, .gild::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: -.13em; height: .28em; background: var(--ink); -webkit-mask: var(--wave) center / 100% 100% no-repeat; mask: var(--wave) center / 100% 100% no-repeat; }
.lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink2); max-width: 40ch; text-wrap: pretty; }
.muted { color: var(--ink2); }
.small { font-size: 14px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.hand { font-family: var(--hand); }

/* ---------- buttons (hand-drawn boxes) ---------- */
.btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; background: none; cursor: pointer; padding: 14px 30px; font: 600 17px var(--body); color: var(--ink);
  text-decoration: none; text-align: center; transition: transform .15s ease; -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn::before { content: ""; position: absolute; inset: -2px; z-index: -1; background: var(--ink); -webkit-mask: var(--btn-line) center / 100% 100% no-repeat; mask: var(--btn-line) center / 100% 100% no-repeat; }
.btn-gold { color: var(--paper); }
.btn-gold::before { -webkit-mask-image: var(--btn-fill); mask-image: var(--btn-fill); }
.btn:hover { transform: rotate(-1.2deg) scale(1.02); }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-block { width: 100%; white-space: normal; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; color: var(--ink2); cursor: pointer; text-decoration: underline wavy 1px; text-underline-offset: 5px; padding: 6px; font: 19px var(--hand); }
.link-btn:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 30px; text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-art { position: relative; width: 300px; max-width: 100%; height: 230px; }
.hero-fan { position: absolute; left: 50%; bottom: 14px; width: 0; height: 0; }
.hero-fan .tcard { position: absolute; width: 92px; bottom: 0; transform-origin: 50% 100%; }
.hero-fan .tcard:nth-child(1) { left: -118px; transform: rotate(-14deg); }
.hero-fan .tcard:nth-child(2) { left: -46px; bottom: 8px; }
.hero-fan .tcard:nth-child(3) { left: 26px; transform: rotate(14deg); }
.hero-ground { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 22px; overflow: visible; }
.hero-mascot-wrap { position: absolute; left: 50%; top: -6px; width: 92px; height: 92px; transform: translateX(-20%) rotate(-8deg); z-index: 3; }
.hero-mascot-wrap .mascot { width: 92px; height: 92px; }
.hero-spark { position: absolute; right: -30px; top: -10px; width: 40px; height: 40px; overflow: visible; }
.hero h1 { max-width: 13ch; }
.hero .lead { margin: 0 auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 8px 0 4px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; color: var(--ink2); font: 19px var(--hand); padding: 0; margin: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; flex: none; }
.hint { margin-top: 6px; font: 20px var(--hand); color: var(--soft); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hint svg { width: 22px; height: 40px; }
.ln { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ln.thin { stroke-width: 1.6; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.draw-in { stroke-dasharray: var(--l); stroke-dashoffset: var(--l); animation: draw 1.4s ease forwards; animation-delay: var(--d, 0s); }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.mascot .eye { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
.mascot { color: var(--ink); overflow: visible; }

/* ---------- sections ---------- */
section { padding: 60px 0; }
.section-head { margin-bottom: 34px; }
.section-head h2 { margin: 6px 0 12px; }
.divider { height: 0; border: 0; border-top: 1.5px solid var(--ink); margin: 0 auto; max-width: var(--maxw); }

.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.topic { display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 20px; color: var(--ink); text-decoration: none; transition: transform .2s ease; }
.topic:hover { transform: rotate(-.8deg) translateY(-2px); }
.topic .t-icon { width: 40px; height: 40px; display: grid; place-items: center; }
.topic .t-icon svg { width: 30px; height: 30px; }
.topic h3 { font-size: 24px; }
.topic p { margin: 0; color: var(--ink2); font-size: 15.5px; }
.topic .t-go { margin-top: auto; padding-top: 8px; font: 20px var(--hand); display: inline-flex; gap: 6px; }
.topic.feature { grid-column: span 2; background: transparent; color: var(--paper); isolation: isolate; }
.topic.feature::before { z-index: -1; -webkit-mask-image: var(--box-fill); mask-image: var(--box-fill); }
.topic.feature p { color: var(--paper); opacity: .78; }
.topic.feature h3 { font-size: clamp(30px, 3.6vw, 40px); }
.pill { align-self: flex-start; font: 18px var(--hand); padding: 0 10px; border: 1.5px solid currentColor; border-radius: 10px 14px 9px 13px / 13px 9px 14px 10px; }
@media (max-width: 860px) { .topics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .topics { grid-template-columns: 1fr; } .topic.feature { grid-column: auto; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 26px; }
.step b { display: block; font: 46px/1 var(--hand); margin-bottom: 8px; }
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink2); font-size: 15.5px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.panel-pad { padding: 30px; }
@media (max-width: 560px) { .panel-pad { padding: 22px 18px; } }

.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.promise > div { padding: 20px; }
.promise b { display: block; font-size: 16px; margin-bottom: 4px; }
.promise span { color: var(--ink2); font-size: 14.5px; line-height: 1.5; display: block; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .promise { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1.5px solid var(--ink); padding: 18px 0; }
.faq details:first-child { border-top: 1.5px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 28px/0.8 var(--hand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink2); margin: 10px 0 0; font-size: 16px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1.5px solid var(--ink); padding: 28px 0 40px; margin-top: 40px; color: var(--soft); font-size: 14px; }
.site-foot .wrap { display: grid; gap: 16px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.disclaimer { max-width: 760px; line-height: 1.6; margin: 0; }

/* ---------- tarot card ---------- */
.tcard { aspect-ratio: 7 / 12; perspective: 1200px; position: relative; color: var(--ink); }
.tcard .c-paper { fill: var(--paper); }
.tcard-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.tcard.flipped .tcard-inner { transform: rotateY(180deg); }
.tcard-face, .tcard-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tcard-face { transform: rotateY(180deg); }
.tcard.static .tcard-face { transform: none; }
.tcard.static .tcard-back { display: none; }
.tcard svg { width: 100%; height: 100%; overflow: visible; }
.tcard.reversed .tcard-face svg { transform: rotate(180deg); }
@keyframes wiggle { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
.tcard.glow { animation: wiggle 2.6s ease-in-out infinite; }

/* ---------- quiz / funnel ---------- */
.funnel { min-height: calc(100vh - 66px); display: flex; flex-direction: column; }
.progress { height: 2px; background: var(--hair); position: relative; }
.progress i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); width: 0; transition: width .5s ease; }
.stage { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 36px max(16px, env(safe-area-inset-right, 0px)) 60px max(16px, env(safe-area-inset-left, 0px)); }
.screen { width: 100%; max-width: 580px; animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.screen.wide { max-width: 980px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.screen h2 { font-size: clamp(30px, 5.4vw, 44px); margin: 10px 0 10px; }
.screen .sub { color: var(--ink2); margin: 0 0 26px; }
.back-btn { background: none; border: 0; color: var(--ink2); cursor: pointer; padding: 4px 0; font: 19px var(--hand); display: inline-flex; gap: 6px; align-items: center; }
.back-btn:hover { color: var(--ink); }
.step-count { color: var(--soft); font: 18px var(--hand); }
.q-top { display: flex; justify-content: space-between; align-items: center; min-height: 30px; }

.options { display: grid; gap: 14px; }
.opt { text-align: left; cursor: pointer; width: 100%; padding: 17px 20px; border: 0; font-size: 17px; line-height: 1.35; color: var(--ink); display: flex; align-items: center; gap: 14px; transition: transform .12s, background-color .15s; -webkit-tap-highlight-color: transparent; }
.opt:hover { background: var(--paper-2); transform: rotate(-.5deg); }
.opt.sel { background: var(--ink); color: var(--paper); }
.opt .o-ico { font: 24px/1 var(--hand); width: 26px; text-align: center; flex: none; }
.opt small { display: block; color: var(--ink2); font-size: 13px; margin-top: 2px; }
.sign-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font: 19px var(--hand); color: var(--ink2); }
.input, select.input {
  width: 100%; padding: 14px 16px; background: var(--paper); color: var(--ink); font: inherit; font-size: 17px;
  border: 1.8px solid var(--ink); border-radius: 4px 9px 5px 10px / 10px 4px 9px 5px; -webkit-appearance: none; appearance: none;
}
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select.input option { background: var(--paper); color: var(--ink); }
.input:disabled { opacity: .45; }
.input:focus { outline: none; background: var(--paper-2); box-shadow: 3px 3px 0 var(--ink); }
.input::placeholder { color: var(--soft); }
.row { display: grid; grid-template-columns: 1.1fr .9fr 1fr; gap: 10px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink2); cursor: pointer; line-height: 1.45; }
.check input { margin-top: 2px; accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.err { color: var(--err); font-size: 14.5px; min-height: 20px; margin: 6px 0 0; }
.fine { color: var(--soft); font-size: 13px; line-height: 1.55; margin-top: 14px; }
.fine a { color: var(--ink2); }

.interstitial { text-align: center; padding-top: 18px; }
.big-glyph { display: grid; place-items: center; font: 64px/1 "Apple Symbols", "Segoe UI Symbol", var(--head); margin-bottom: 8px; }
.big-glyph .mascot { width: 120px; height: 120px; }
.interstitial .eyebrow { display: block; }
.interstitial .btn { margin-top: 6px; }

.loader { text-align: center; padding-top: 24px; }
.loader-orb { width: 130px; height: 130px; margin: 0 auto 24px; position: relative; }
.loader-orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--ink); animation: spin 6s linear infinite; }
.loader-orb span { position: absolute; inset: 14px; display: grid; place-items: center; }
.loader-orb .mascot { width: 90px; height: 90px; animation: wiggle 1.6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-steps { list-style: none; padding: 0; margin: 20px auto 0; max-width: 340px; text-align: left; display: grid; gap: 10px; }
.loader-steps li { display: flex; gap: 12px; align-items: center; color: var(--soft); font-size: 16px; transition: color .3s; }
.loader-steps li::before { content: ""; width: 18px; height: 18px; border: 1.8px solid currentColor; border-radius: 5px 8px 4px 7px; flex: none; }
.loader-steps li.on { color: var(--ink); }
.loader-steps li.on::before { background: var(--ink); box-shadow: inset 0 0 0 3px var(--paper); }

/* card picking */
.spread-pick { display: grid; gap: 6px; padding: 16px 0 6px; margin: 0 auto; max-width: 720px; }
.pick-row { display: flex; justify-content: center; }
.spread-pick .pick { width: 86px; margin: 0 -6px; cursor: pointer; border: 0; padding: 0; background: none; position: relative; transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .3s; transform: rotate(var(--r, 0deg)) translateY(var(--y, 0)); -webkit-tap-highlight-color: transparent; }
.spread-pick .pick:hover { transform: rotate(var(--r, 0deg)) translateY(calc(var(--y, 0px) - 12px)); z-index: 3; }
.spread-pick .pick.taken { opacity: 0; pointer-events: none; transform: translateY(-50px) scale(.85); }
.spread-pick .pick .tcard { width: 100%; }
@media (max-width: 560px) { .spread-pick { gap: 2px; } .spread-pick .pick { width: 60px; margin: 0 -5px; } }
@media (max-width: 360px) { .spread-pick .pick { width: 52px; } }
.slots { display: flex; justify-content: center; gap: 14px; margin-top: 12px; }
.slot { width: 104px; text-align: center; }
.slot .slot-card { aspect-ratio: 7/12; display: grid; place-items: center; color: var(--soft); font: 30px var(--hand); position: relative; border: 1.8px dashed var(--soft); border-radius: 6px 10px 7px 11px / 11px 6px 10px 7px; }
.slot .slot-card .tcard { position: absolute; inset: -2px; animation: drop .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-40px) rotate(-6deg); } to { opacity: 1; transform: none; } }
.slot small { display: block; color: var(--ink2); font: 17px/1.2 var(--hand); margin-top: 8px; }
@media (max-width: 420px) { .slot { width: 92px; } }

/* reading */
.reading-head { text-align: center; margin-bottom: 28px; }
.reading-head h2 { margin: 6px 0 6px; }
.spread-show { display: flex; justify-content: center; gap: 18px; margin: 0 auto 34px; }
.spread-show > div { width: 150px; text-align: center; }
.spread-show .tcard { width: 100%; }
.spread-show small { display: block; margin-top: 10px; color: var(--ink2); font: 18px/1.2 var(--hand); }
@media (max-width: 560px) { .spread-show { gap: 12px; } .spread-show > div { width: 31%; } }

.r-block { padding: 26px 26px 24px; margin-bottom: 20px; }
.locked .lock-body { overflow: hidden; }
.r-block .r-pos { font: 20px var(--hand); color: var(--ink2); }
.r-block h3 { font-size: 30px; margin: 4px 0 4px; }
.r-block .r-kw { color: var(--soft); font-size: 14.5px; margin-bottom: 12px; }
.r-block p { margin: 0 0 10px; }
.r-block p:last-child { margin-bottom: 0; }
.r-block .r-q { font: 23px/1.35 var(--hand); margin-top: 14px; }
.r-block.hl { background: var(--paper-2); }
.r-block.quiet { background: var(--paper-2); }
.hand-label { font: 400 21px var(--hand); }
.tag-rev { font: 18px var(--hand); margin-left: 10px; vertical-align: middle; padding: 0 8px; border: 1.5px solid var(--ink); border-radius: 9px 12px 8px 11px; letter-spacing: 0; }
.phases { display: grid; gap: 12px; margin-top: 14px; }
.phase-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; }
.phase-row.col { display: block; }
.phase-row .ph-date { min-width: 96px; }

.locked .lock-body { filter: blur(6px); user-select: none; pointer-events: none; opacity: .7; }
.locked .lock-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 20px; background: linear-gradient(180deg, transparent, var(--paper) 62%); }
.lock-cover svg { width: 28px; height: 28px; }
.lock-cover b { font-size: 17px; }
.lock-cover span { color: var(--ink2); font: 19px var(--hand); }

/* offer / paywall */
.offer { padding: 32px 26px; margin: 30px 0; }
.offer::before { inset: -2px; }
.offer::after { content: ""; position: absolute; inset: 7px -7px -7px 7px; z-index: -1; background: var(--ink); -webkit-mask: var(--box) center / 100% 100% no-repeat; mask: var(--box) center / 100% 100% no-repeat; opacity: .5; }
.offer { isolation: isolate; }
.offer h3 { font-size: 34px; text-align: center; margin-bottom: 6px; }
.offer .o-sub { text-align: center; color: var(--ink2); margin: 0 0 22px; font: 21px var(--hand); }
.offer ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.offer li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.offer li svg { width: 19px; height: 19px; flex: none; margin-top: 3px; }
.price-line { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 2px; }
.price-line .price { font: 700 58px/1 var(--head); letter-spacing: -.04em; }
.price-line .per { color: var(--ink2); font: 21px var(--hand); }
.price-note { text-align: center; font: 21px var(--hand); margin-bottom: 18px; }
.bump { display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px; margin-bottom: 18px; cursor: pointer; font-size: 15px; line-height: 1.45; }
.bump input { accent-color: var(--ink); width: 19px; height: 19px; flex: none; margin-top: 1px; }
.secure { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; color: var(--soft); font-size: 13px; margin-top: 14px; text-align: center; }
.secure svg { width: 14px; height: 14px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: color-mix(in srgb, var(--paper) 70%, transparent); backdrop-filter: blur(3px); }
.modal.open { display: flex; animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-box { width: 100%; max-width: 440px; padding: 28px 26px; animation: rise .3s ease both; max-height: calc(100vh - 40px); overflow: auto; box-shadow: 8px 8px 0 color-mix(in srgb, var(--ink) 18%, transparent); }
.modal-box h3 { font-size: 24px; margin-bottom: 2px; }
.modal-box .m-sub { color: var(--ink2); font: 19px var(--hand); margin: 0 0 16px; }
.modal-box .m-line { display: flex; justify-content: space-between; font-size: 16px; padding: 9px 0; border-bottom: 1.5px dashed var(--hair); }
.modal-box .m-line.total { font-weight: 700; border-bottom: 0; padding-top: 14px; }
.modal-box .demo-note { background: var(--paper-2); border-radius: 6px; padding: 11px 13px; font-size: 13.5px; margin: 16px 0; line-height: 1.5; color: var(--ink2); }
.modal-box .btn-pay { position: relative; isolation: isolate; width: 100%; background: none; color: var(--paper); padding: 15px; border: 0; font: 600 17px var(--body); cursor: pointer; }
.modal-box .btn-pay::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); -webkit-mask: var(--btn-fill) center / 100% 100% no-repeat; mask: var(--btn-fill) center / 100% 100% no-repeat; }
.modal-box .m-cancel { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--ink2); cursor: pointer; font: 19px var(--hand); }

/* chart */
.chart-layout { display: grid; grid-template-columns: 1.05fr .95fr; grid-template-areas: "wheel report" "table report"; gap: 22px 36px; align-items: start; }
.chart-layout > * { min-width: 0; }
.cl-wheel { grid-area: wheel; } .cl-report { grid-area: report; } .cl-table { grid-area: table; }
@media (max-width: 900px) { .chart-layout { grid-template-columns: 1fr; grid-template-areas: "wheel" "report" "table"; } }
.wheel-box { padding: 18px; color: var(--ink); }
.wheel-box svg { width: 100%; height: auto; overflow: visible; }
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.big3 > div { padding: 16px 10px; text-align: center; }
.big3 .g { font: 32px/1.1 "Apple Symbols", "Segoe UI Symbol", var(--head); }
.big3 small { display: block; color: var(--ink2); font: 18px var(--hand); margin-top: 4px; }
.big3 b { display: block; font: 700 21px var(--head); letter-spacing: -.02em; }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ptable td { padding: 9px 6px; border-bottom: 1.5px dashed var(--hair); }
.ptable td:first-child { width: 34px; font-size: 18px; text-align: center; font-family: "Apple Symbols", "Segoe UI Symbol", var(--head); }
.ptable td:last-child { text-align: right; color: var(--ink2); font-variant-numeric: tabular-nums; }
.ptable td:nth-child(3), .ptable td:last-child { white-space: nowrap; }
.ptable .rx { font: 15px var(--hand); margin-left: 4px; }
@media (max-width: 560px) { .ptable { font-size: 14px; } .ptable td { padding: 8px 3px; } }
.balance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.balance > div { text-align: center; padding: 10px 4px; }
.balance b { display: block; font: 700 19px var(--head); }
.balance span { font: 17px var(--hand); color: var(--ink2); }
.balance i { display: block; height: 4px; border-radius: 3px; margin: 6px auto 0; background: var(--c); width: var(--w); }
.city-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: 240px; overflow: auto; display: none; padding: 4px; }
.city-list.open { display: block; }
.city-list button { display: block; width: 100%; text-align: left; padding: 10px 12px; background: none; border: 0; cursor: pointer; color: var(--ink); font-size: 16px; position: relative; z-index: 1; }
.city-list button:hover, .city-list button.hl { background: var(--paper-2); }
.city-list button small { color: var(--soft); margin-left: 6px; }

/* legal pages */
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(40px, 6vw, 60px); margin: 6px 0 10px; }
.prose h2 { font-size: 28px; margin: 36px 0 10px; }
.prose li { margin-bottom: 6px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(30px); opacity: 0; padding: 12px 18px; font: 19px var(--hand); z-index: 120; transition: all .3s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }

.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .draw-in { stroke-dashoffset: 0; }
}

/* ---------- content pages (card meanings, signs, compatibility, guides) ---------- */
.crumbs.wrap { max-width: 860px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 22px; font: 18px var(--hand); color: var(--ink2); }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline wavy 1px; text-underline-offset: 4px; }
.crumbs i { font-style: normal; color: var(--soft); }
.article { max-width: 860px; padding-block: 18px 30px; }
.article .art-head { display: grid; grid-template-columns: 190px 1fr; gap: 34px; align-items: start; margin: 14px 0 22px; }
.article .art-head.single { grid-template-columns: 1fr; }
.article .art-head h1 { font-size: clamp(36px, 5.6vw, 60px); margin: 6px 0 12px; }
.article .art-head .lead { max-width: 60ch; margin: 0 0 14px; }
.art-card .tcard { width: 190px; }
@media (max-width: 640px) { .article .art-head { grid-template-columns: 1fr; } .art-card .tcard { width: 150px; margin: 0 auto; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0 0; }
.facts > div { padding: 12px 14px; border: 1.5px dashed var(--hair); border-radius: 6px 10px 7px 11px; }
.facts dt { font: 18px var(--hand); color: var(--ink2); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.art-sec { margin: 0 0 30px; max-width: 70ch; }
.art-sec h2 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 10px; }
.art-sec p { margin: 0 0 12px; }
.art-sec .big { font-size: 24px; line-height: 1.4; }
.cta-box { position: relative; text-align: center; padding: 28px 22px; margin: 10px 0 36px; background: var(--paper-2); border-radius: 8px 14px 10px 16px / 16px 8px 14px 10px; display: grid; justify-items: center; gap: 8px; }
.cta-box .hand { font-size: 22px; margin: 0; }
.cta-box .fine { margin: 6px 0 0; }
.link-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 18px; }
.link-grid a { text-decoration: none; } .link-grid a:hover { text-decoration: underline wavy 1px; text-underline-offset: 4px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1.5px solid var(--ink); padding-top: 16px; font: 19px var(--hand); }
.pager a { text-decoration: none; }
.deck-grid { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 14px; }
.deck-grid a { display: grid; gap: 6px; text-decoration: none; text-align: center; font: 17px/1.2 var(--hand); }
.deck-grid a:hover .tcard { transform: rotate(-2deg) translateY(-3px); }
.deck-grid .mini { display: block; } .deck-grid .mini .tcard { width: 100%; transition: transform .2s; }
.sign-glyph { font-family: "Apple Symbols", "Segoe UI Symbol", var(--head); font-weight: 400; }
.sign-index { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.sign-index a { display: grid; gap: 2px; padding: 16px; text-decoration: none; border: 1.5px solid var(--ink); border-radius: 6px 12px 8px 14px / 14px 6px 12px 8px; }
.sign-index a:hover { background: var(--paper-2); }
.sign-index .sign-glyph { font-size: 30px; } .sign-index b { font-size: 19px; } .sign-index span:last-child { color: var(--ink2); font-size: 14px; }
.score { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; position: relative; padding-bottom: 14px; max-width: 320px; }
.score b { font: 700 52px/1 var(--head); letter-spacing: -.03em; } .score span { font: 22px var(--hand); color: var(--ink2); }
.score i { position: absolute; left: 0; bottom: 0; height: 6px; width: var(--w); background: var(--ink); border-radius: 4px; }
.steps-list { padding-left: 22px; margin: 0; display: grid; gap: 8px; } .dot-list { padding-left: 20px; margin: 0; display: grid; gap: 10px; }
.art-sec.faq details:first-of-type { border-top: 1.5px solid var(--ink); }
.tile { position: relative; background: var(--paper); }
.tile::before { content: ""; position: absolute; inset: -1px; pointer-events: none; background: var(--ink); -webkit-mask: var(--box) center / 100% 100% no-repeat; mask: var(--box) center / 100% 100% no-repeat; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- horoscopes ---------- */
.hs-block { margin: 0 0 18px; }
.hs-label { font: 19px var(--hand); color: var(--ink2); margin: 0 0 2px; }
.hs-title { font-size: 19px; letter-spacing: -.01em; margin: 0 0 4px; }
.hs-block p:last-child { margin: 0; }
.sky-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.sky-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1.5px dashed var(--hair); }
.sky-list li span { color: var(--ink2); font: 18px var(--hand); }
.hs-picker { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.hs-picker a { grid-template-columns: auto 1fr; align-items: center; gap: 8px; padding: 10px 12px; }
.hs-picker .sign-glyph { font-size: 22px; }
.hs-picker b { font-size: 16px; }
.hs-picker a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* AI reading: placeholder while it's being written, and the week's steps */
.r-writing .r-lines span { display: block; height: 12px; margin: 12px 0; border-radius: 6px; background: var(--hair); animation: rWrite 1.4s ease-in-out infinite; }
.r-writing .r-lines span:nth-child(2) { width: 92%; animation-delay: .2s; }
.r-writing .r-lines span:nth-child(3) { width: 68%; animation-delay: .4s; }
@keyframes rWrite { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .r-writing .r-lines span { animation: none; } }
.r-steps { margin: 4px 0 0; padding-left: 22px; }
.r-steps li { margin: 6px 0; }
@media (max-width: 340px) { .site-head .nav .btn-sm { padding-inline: 10px; font-size: 14px; } }
/* card meaning pages: hold the card's space before the art is drawn (no layout shift) */
.art-card { min-height: 326px; }
@media (max-width: 640px) { .art-card { min-height: 257px; } }
