:root {
  color-scheme: light;
  /* Quatro direções (as cores dos selos), versão clara: fundo branco-norte, texto quase preto, vermelho-leste
     como marca (rótulos e botão principal), azul-oeste nos links, amarelo-sul em detalhes. Cards brancos.
     Paletas anteriores em _versoes/ (style-zodiaco-coral.css, style-cafe.css, style-lareira-rose.css,
     style-obsidiana.css, style-quatro-direcoes.css) */
  --bg: #f4efe6;
  --surface: #ffffff;
  --surface-2: #ece5d8;
  --ink: #1f1b18;
  --muted: #554c44;
  --line: #e0d6c6;
  --accent: #b83a2e;    /* vermelho leste: rótulos ("KIN DO DIA"), selo Premium */
  --tie: #2c5d8f;       --tie-bg: #e1eaf3;   /* azul oeste: links de texto, foco do teclado */
  /* nomes antigos mantidos para não quebrar regras existentes */
  --lilac: var(--tie); --lilac-bg: var(--tie-bg);
  --g-navy: var(--surface); --g-plum: var(--surface); --g-violet: var(--surface-2); --g-peri: var(--tie); --g-mauve: var(--red);
  --gold: #b83a2e;      /* botão principal e logo: vermelho leste */
  --gold-soft: #9e3127; /* hover do botão: vermelho mais fundo */
  --gold-grad: linear-gradient(var(--gold), var(--gold));
  --on-accent: #ffffff;
  --title: #1f1b18;     /* títulos em quase preto, como na referência */
  --title-2: #1f1b18;
  --sun: #e8b03a;       /* amarelo sul: só em preenchimentos e detalhes (estrelas, dia de hoje), nunca em texto */

  /* cores dos selos: a forte para ícone e rótulo, a clara para o fundo do ícone e realce */
  --red: #b83a2e;     --red-bg: #f6e1dc;
  --white: #6f665e;   --white-bg: #ebe5db;
  --blue: #2c5d8f;    --blue-bg: #e1eaf3;
  --yellow: #8f6309;  --yellow-bg: #f8ecd0;

  --radius: 26px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; font-variation-settings: 'SOFT' 100; line-height: 1.2; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: .6rem; }
h3 { font-size: 1.35rem; margin-bottom: .3rem; }
p { color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* Cabeçalho */
header.site { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 94%, transparent); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.4rem; }
.brand svg { color: var(--accent); }
.brand { color: var(--ink); }
nav.main { display: flex; gap: 4px; }
nav.main a { text-decoration: none; font-size: .9rem; padding: 7px 14px; border-radius: 999px; color: var(--muted); transition: .2s; }
nav.main a:hover { color: var(--ink); }
nav.main a.active { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }

footer.site { border-top: 1px solid var(--line); margin-top: 80px; padding: 32px 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* Blocos */
section { padding: 56px 0 0; }
.hero { text-align: center; padding-top: 64px; }
.hero p { max-width: 560px; margin: 14px auto 0; color: var(--muted); }
.eyebrow { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Formulário */
form.date { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
form.date input { font: inherit; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); min-width: 0; }
form.date input[type=text] { width: 200px; }
.btn { font: inherit; transition: background .3s, border-color .3s, box-shadow .3s, transform .3s; font-size: .95rem; cursor: pointer; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); padding: 12px 24px; border-radius: 999px; text-decoration: none; display: inline-block; transition: .2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); box-shadow: 0 8px 26px -8px var(--lilac); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); font-weight: 700; border-radius: 14px; }
.btn.ghost:hover { border-color: var(--ink); opacity: 1; }

/* Kin */
.c-red { --c: var(--red); --cbg: var(--red-bg); }
.c-white { --c: var(--white); --cbg: var(--white-bg); }
.c-blue { --c: var(--blue); --cbg: var(--blue-bg); }
.c-yellow { --c: var(--yellow); --cbg: var(--yellow-bg); }

.kin-main { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.kin-emblem { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--cbg); color: var(--c); border-radius: 28px; padding: 22px 26px; }
.kin-emblem .num { font-family: var(--serif); font-size: 1rem; color: var(--ink); opacity: .7; }
.kin-main h2 { margin-bottom: .2rem; }
.kin-main .kin-label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 65%, var(--ink)); font-weight: 500; }
.keywords { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.chip { font-size: .8rem; padding: 4px 12px; border-radius: 999px; background: var(--cbg, var(--white-bg)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 22%, transparent); }
.chip b { font-weight: 500; color: color-mix(in srgb, var(--c, var(--accent)) 72%%, var(--ink)); }

.mini { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.mini .ic { color: var(--c); background: var(--cbg); border-radius: 12px; padding: 6px; display: flex; }
.mini .role { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mini .nm { font-family: var(--serif); font-size: 1.1rem; line-height: 1.2; }

/* Oráculo em cruz */
.oracle { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-areas: ". guide ." "anti dest anal" ". occ ."; gap: 12px; max-width: 560px; margin: 0 auto; }
.oracle .o-guide { grid-area: guide; } .oracle .o-anti { grid-area: anti; } .oracle .o-dest { grid-area: dest; }
.oracle .o-anal { grid-area: anal; } .oracle .o-occ { grid-area: occ; }
.oracle .mini { flex-direction: column; text-align: center; gap: 6px; }
.oracle .mini .sub { font-size: .78rem; color: var(--c); margin: 2px 0 4px; }
.oracle .lit .mini { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 12px 26px -18px var(--c); }
.oracle-intro { text-align: center; max-width: 520px; margin: 0 auto 18px; }
.oracle-reading-title { font-family: var(--serif); font-weight: 400; margin: 0 0 12px; }
.oracle-reading { display: grid; gap: 10px; max-width: 720px; }
.o-read { margin: 0; padding: 12px 16px; line-height: 1.65; border-radius: 18px; transition: background .25s; outline: none; }
.o-read b { color: var(--c); }
.o-read.lit, .o-read:focus-visible { background: var(--cbg); }

/* Bloqueio premium */
.locked { position: relative; overflow: hidden; }
.locked .blur { filter: blur(7px); opacity: .55; pointer-events: none; user-select: none; }
.locked .gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 24px; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--surface) 80%, transparent) 30%); }
.gate .lock { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--accent); }
.badge { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--accent); }

.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .95rem; }
dl.facts dt { color: var(--muted); }

/* Aprender */
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-top: 24px; }
.toggle button { font: inherit; font-size: .9rem; border: 0; background: none; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.toggle button.on { background: var(--accent); color: var(--bg); }
.toggle button { transition: background .3s, color .3s; }
body.simple .deep { display: none; }
body.deep-mode .simple-only { display: none; }
.prose { max-width: 680px; }
.prose p + p { margin-top: .8rem; }
.prose ul { margin: .6rem 0 0 1.2rem; }
.prose li { margin-top: .3rem; }
.note { border-left: 2px solid var(--line); padding: 4px 0 4px 16px; color: var(--muted); font-size: .92rem; margin-top: 16px; }

.seal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.seal-card {
  position: relative; padding: 20px 12px 16px; border-radius: 22px; text-align: center; cursor: pointer; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cbg) 85%, var(--surface)) 0%, var(--surface) 58%);
  border: 1px solid color-mix(in srgb, var(--c) 18%, var(--line));
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.seal-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); opacity: .85; }
.seal-card .ic {
  color: var(--c); background: var(--surface); border-radius: 50%; width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 10px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--cbg) 70%, transparent), 0 6px 16px -8px var(--c);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.seal-card .n { display: inline-block; font-size: .68rem; letter-spacing: .08em; padding: 1px 9px; border-radius: 999px; color: color-mix(in srgb, var(--c) 65%, var(--ink)); background: var(--cbg); font-weight: 500; margin-bottom: 2px; }
.seal-card .nm { font-family: var(--serif); font-size: 1.18rem; color: color-mix(in srgb, var(--c) 60%, var(--ink)); }
.seal-card .kw { font-size: .78rem; color: var(--muted); }
.seal-card .kw i { color: color-mix(in srgb, var(--c) 55%, var(--muted)); }
.seal-card:hover, .seal-card.open, .seal-card:focus-visible {
  transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 55%, var(--line)); outline: none;
  box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--c) 80%, #000);
}
.seal-card:hover .ic, .seal-card.open .ic { transform: scale(1.08) rotate(-4deg); box-shadow: 0 0 0 8px var(--cbg), 0 8px 20px -8px var(--c); }
.mini.hoverable { cursor: pointer; transition: transform .3s, box-shadow .3s, border-color .3s; }
.mini.hoverable:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 50%, var(--line)); box-shadow: 0 12px 26px -18px var(--c); }

/* Popover de detalhes */
.pop {
  position: fixed; z-index: 50; width: min(320px, calc(100vw - 32px)); padding: 18px 20px; border-radius: 22px;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line));
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7), 0 0 30px -12px color-mix(in srgb, var(--c, var(--lilac)) 40%, transparent);
  opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .2s, transform .2s; pointer-events: none;
}
.pop.show { opacity: 1; transform: none; }
.pop .head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pop .head .ic { color: var(--c); background: var(--cbg); border-radius: 50%; width: 46px; height: 46px; display: grid; place-items: center; flex: none; }
.pop .head .t { font-family: var(--serif); font-size: 1.3rem; line-height: 1.1; color: color-mix(in srgb, var(--c) 60%, var(--ink)); }
.pop .head .s { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pop p { font-size: .88rem; line-height: 1.55; }
.pop .q { font-style: italic; color: color-mix(in srgb, var(--c) 55%, var(--muted)); margin-top: 8px; }
.pop dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: .8rem; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.pop dt { color: var(--muted); }
.pop .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }

.tzolkin { display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px; max-width: 620px; }
.tzolkin > * { text-decoration: none; aspect-ratio: 1; border-radius: 6px; background: var(--cbg); font-size: .6rem; display: grid; place-items: center; color: color-mix(in srgb, var(--c) 65%, var(--ink)); cursor: pointer; transition: transform .2s, background .2s; }
.tzolkin > *:hover { transform: scale(1.25); background: var(--c); color: var(--surface); position: relative; z-index: 1; }
.tzolkin > .today { background: var(--c); color: var(--surface); }

/* Planos */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 40px; }
.plan { display: flex; flex-direction: column; gap: 14px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 10px 40px -16px color-mix(in srgb, var(--accent) 55%, transparent); }
.price { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.price small { font-family: var(--sans); font-size: .9rem; color: var(--muted); }
.plan ul { list-style: none; display: grid; gap: 8px; font-size: .93rem; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "◦"; color: var(--accent); }
.plan li.off { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.plan .btn { margin-top: auto; text-align: center; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: .9rem; opacity: 0; transition: .3s; pointer-events: none; }
.toast.show { opacity: 1; }

@media (max-width: 640px) {
  header.site .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-direction: column; gap: 8px; }
  nav.main { flex-wrap: wrap; justify-content: center; }
  nav.main a { padding: 6px 10px; }
  .kin-main { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .keywords { justify-content: center; }
  .card { padding: 20px; }
  .oracle { gap: 6px; }
  .oracle .mini { padding: 10px 6px; }
  .oracle .mini .nm { font-size: .9rem; }
}

/* Páginas de significado */
a.seal-card, a.mini { display: block; text-decoration: none; color: inherit; }
a.mini { display: flex; }
.prose a, .hero p a { color: var(--accent); text-underline-offset: 3px; }
.crumbs { padding-top: 24px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.pager { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .92rem; }
.pager a { text-decoration: none; color: var(--accent); }
.pager a:hover { color: var(--ink); }
footer.site a { color: var(--muted); }

/* Onda Encantada */
.wave { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 18px; }
.wave-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.wave-head h3 { margin: 2px 0 0; color: color-mix(in srgb, var(--c) 60%, var(--ink)); }
.wave-track {
  display: grid; grid-template-columns: repeat(13, minmax(52px, 1fr)); column-gap: 6px; row-gap: 4px;
  overflow-x: auto; padding: 34px 2px 4px; margin-top: 8px; scrollbar-width: thin;
}
.wave-step {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 6px;
  border-radius: 18px; text-decoration: none; color: inherit; cursor: pointer;
  transform: translateY(var(--y)); transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s, box-shadow .3s;
}
.wave-step .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: var(--cbg); transition: .3s; }
.wave-step .tn { color: var(--muted); line-height: 0; }
.wave-step .k { font-size: .68rem; color: var(--muted); }
.wave-step:hover, .wave-step.open { transform: translateY(calc(var(--y) - 4px)); background: color-mix(in srgb, var(--cbg) 55%, transparent); }
.wave-step.current { background: var(--cbg); box-shadow: 0 0 0 1.5px var(--c); }
.wave-step.current .ic { background: var(--c); color: var(--surface); }
.wave-step.current .k { color: var(--ink); font-weight: 500; }
.wave-step .here { position: absolute; top: -22px; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 65%, var(--ink)); font-weight: 500; white-space: nowrap; }
.wave-phase { font-size: .68rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; margin-top: 10px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wave-phase b { font-weight: 500; color: var(--accent); }

/* ---------- Céu e estrelas cadentes ---------- */
body { position: relative; min-height: 100vh; }
body > header, body > main, body > footer { position: relative; z-index: 1; }
header.site { z-index: 10; }
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--bg); }
/* fundo claro: só um sopro das quatro direções nos cantos, sem via láctea */
.sky::before, .sky::after { content: ""; position: absolute; inset: -20%; will-change: transform; }
.sky::before {
  background: radial-gradient(34% 40% at 96% 40%, color-mix(in srgb, var(--red) 11%, transparent), transparent 70%),
              radial-gradient(34% 40% at 4% 60%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 70%),
              radial-gradient(40% 28% at 50% 100%, color-mix(in srgb, var(--sun) 16%, transparent), transparent 70%);
  animation: aurora 30s ease-in-out infinite alternate; }
.sky::after { display: none; }
.sky > * { z-index: 1; }
@keyframes aurora { from { transform: translate(-3%, -2%) scale(1); } to { transform: translate(3%, 3%) scale(1.08); } }
.sky .twinkle { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: var(--sun); opacity: .25;
  animation: twinkle var(--d) ease-in-out var(--o) infinite; }
.sky .twinkle.gold { background: var(--sun); }
@keyframes twinkle { 0%, 100% { opacity: .1; transform: scale(.8); } 50% { opacity: .45; transform: scale(1.1); } }
/* estrelas cadentes não combinam com o fundo claro */
.sky .shooting { display: none; }
/* chuva suave: todas vêm da mesma direção e atravessam a tela inteira */
@keyframes shoot {
  0%   { opacity: 0; transform: rotate(-32deg) translateX(0) scaleX(.4); }
  12%  { opacity: var(--peak, .75); transform: rotate(-32deg) translateX(-14vmax) scaleX(1); }
  80%  { opacity: var(--peak, .75); }
  100% { opacity: 0; transform: rotate(-32deg) translateX(-130vmax) scaleX(.7); }
}

/* ---------- Transições suaves ---------- */
/* Cabeçalho e céu ficam parados; só o conteúdo faz o cross-fade */
@view-transition { navigation: auto; }
.sky { view-transition-name: sky; }
header.site { view-transition-name: site-header; }
::view-transition-group(sky), ::view-transition-group(site-header) { animation: none; }
::view-transition-old(sky), ::view-transition-new(sky),
::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; }
::view-transition-old(sky) { display: none; }
::view-transition-old(root) { animation: vt-out .3s ease-out both; }
::view-transition-new(root) { animation: vt-in .4s ease-out .06s both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* Sem View Transitions: a entrada é feita aqui */
html:not(.vt) body > main, html:not(.vt) body > footer { animation: page-in .45s ease-out both; }
@keyframes page-in { from { opacity: 0; } }
body.leaving > main, body.leaving > footer { opacity: 0; transition: opacity .22s ease-in; }

.js-fx .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.8,.2,1) var(--delay, 0ms), transform .7s cubic-bezier(.2,.8,.2,1) var(--delay, 0ms); }
.js-fx .reveal.in { opacity: 1; transform: none; }

/* Simples ⇄ Aprofundado e conteúdo trocado na hora */
.deep, .simple-only, #result > section { animation: fade-swap .5s ease both; }
@keyframes fade-swap { from { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; transition: none !important; }
  .js-fx .reveal { opacity: 1; transform: none; }
}

/* ---------- Calendário (de-para) ---------- */
.cal-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.cal-bar h2 { margin: 0; min-width: 12ch; text-align: center; }
.cal-bar > .btn { padding: 8px 14px; font-size: 1.1rem; line-height: 1; }
.cal-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.cal-tools .btn { padding: 8px 14px; font-size: .85rem; }
.cal-tools input { font: inherit; font-size: .85rem; padding: 7px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cal-col { display: grid; gap: 18px; min-width: 0; }
.cal-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cal-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.greg, .moon-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.greg .wd, .moon-grid .wd { font-size: .68rem; text-align: center; color: var(--muted); letter-spacing: .04em; padding-bottom: 4px; }
.greg .day, .mday { font: inherit; color: var(--ink); border: 1px solid transparent; background: color-mix(in srgb, var(--cbg) 55%, var(--surface)); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer;
  transition: background .25s, transform .25s, box-shadow .25s, border-color .25s, opacity .25s; position: relative; }
.greg .day { aspect-ratio: 1 / .92; }
.greg .day .dn { font-family: var(--serif); font-size: 1.25rem; line-height: 1; }
.greg .day .dk { font-size: .6rem; color: color-mix(in srgb, var(--c) 65%, var(--ink)); }
.mday { padding: 5px 2px 4px; color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
.mday .md { font-size: .6rem; color: var(--muted); position: absolute; top: 3px; left: 6px; }
.mday .mk { font-size: .62rem; }
.mday svg { margin-top: 6px; }
.mday.out { opacity: .45; }
.moon + .moon { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.moon-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: .92rem; }
.mday.doot { width: 90px; padding: 8px; }
.greg .today, .mday.today { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.greg .pinned, .mday.pinned { box-shadow: 0 0 0 2px var(--accent); }
.greg .day.lit, .mday.lit { background: var(--c); color: var(--surface); opacity: 1; transform: scale(1.08); z-index: 1;
  box-shadow: 0 8px 22px -8px var(--c), 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.greg .day.lit .dk, .mday.lit .md { color: color-mix(in srgb, var(--surface) 85%, transparent); }
.cal-detail { padding: 20px; transition: background .3s; background: linear-gradient(160deg, color-mix(in srgb, var(--cbg) 70%, var(--surface)), var(--surface) 70%); }
.cd-date { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.cd-main { display: flex; gap: 14px; align-items: center; margin: 10px 0; }
.cd-main .ic { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--c); background: var(--cbg); border-radius: 16px; padding: 10px 12px; }
.cd-main h3 { margin: 0; }
.cd-main > div { min-width: 0; }
.cd-moon { margin-bottom: 8px; }
.cal-detail a { color: var(--accent); }
.tz-month { max-width: 600px; }
.tz-month > * { opacity: .32; }
.tz-month > .in-month { opacity: 1; }
.tz-month > .lit { opacity: 1; background: var(--c); color: var(--surface); transform: scale(1.35); position: relative; z-index: 2; box-shadow: 0 6px 16px -6px var(--c); }
@media (max-width: 820px) {
  .cal-layout { grid-template-columns: minmax(0, 1fr); }
  .cal-tools { margin-left: 0; }
}
@media (max-width: 480px) {
  .cal-panel { padding: 12px; }
  .greg .day .dk { font-size: .52rem; }
  .mday svg { width: 14px; height: 14px; }
}

/* ---------- WiKin ---------- */
.wiki { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; align-items: start; }
.wiki-toc { position: sticky; top: 88px; padding-top: 56px; font-size: .86rem; max-height: calc(100vh - 100px); overflow: auto; }
.toc-title { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.wiki-toc ol { list-style: none; border-left: 1px solid var(--line); }
.wiki-toc a { display: block; padding: 4px 0 4px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.wiki-toc a:hover { color: var(--ink); }
.wiki-toc a.on { color: var(--accent); border-left-color: var(--accent); }
.wiki-body { max-width: 700px; }
.wiki-body section { scroll-margin-top: 80px; }
.wiki-body h3 { margin-top: 1.4rem; }
.wiki-body ol { margin: .6rem 0 0 1.2rem; }
.wiki-body ol li { margin-top: .3rem; }
.wiki-box { background: linear-gradient(160deg, var(--lilac-bg), var(--surface) 75%); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; }
.wiki-box .box-title { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 4px; }
.wiki-example { margin: 16px 0; }
.wiki-seals, .wiki-tones { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 16px 0; }
.wiki-seals .mini, .wiki-tones .mini { padding: 10px; }
.wiki-seals .mini .nm, .wiki-tones .mini .nm { font-size: .95rem; }
#colors { margin: 16px 0; }
.wiki-oracle { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-areas: ". g ." "a d n" ". o ."; gap: 8px; max-width: 360px; margin: 18px auto; text-align: center; }
.wiki-oracle > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; display: flex; flex-direction: column; font-size: .92rem; }
.wiki-oracle span { font-size: .72rem; color: var(--muted); }
.wiki-oracle .o-guide { grid-area: g; } .wiki-oracle .o-anti { grid-area: a; } .wiki-oracle .o-ana { grid-area: n; } .wiki-oracle .o-occ { grid-area: o; }
.wiki-oracle .o-dest { grid-area: d; background: var(--lilac-bg); border-color: var(--lilac); }
.wiki-moons { columns: 2; column-gap: 32px; }
.wiki-search { width: 100%; font: inherit; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); margin: 6px 0 16px; }
.wiki-search:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px var(--lilac-bg); }
.wiki-terms .term { padding: 12px 0; border-bottom: 1px solid var(--line); }
.wiki-terms dt { font-weight: 500; color: var(--accent); }
.wiki-terms dd { margin-top: 2px; }
@media (max-width: 860px) {
  .wiki { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .wiki-toc { position: static; max-height: none; padding-top: 32px; }
  .wiki-toc ol { columns: 2; column-gap: 16px; }
}
@media (max-width: 480px) { .wiki-moons, .wiki-toc ol { columns: 1; } }

/* ---------- Painéis sobre o céu azul-marinho ---------- */
/* o card se separa do fundo pela cor, sem vidro, brilho ou sombra pesada */
.card, .wave, .cal-panel, .wiki-box { background-color: var(--surface); }
::selection { background: color-mix(in srgb, var(--tie) 40%, transparent); }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--tie); outline-offset: 2px; }

/* ---------- Verde-menta: destaque principal; rosa: secundário ---------- */
.eyebrow, .toc-title, .cd-date { color: var(--accent); font-weight: 700; }
.brand svg { color: var(--gold); }
nav.main a.active { background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); }
.hero h1 { color: var(--title); }

/* botão principal: menta em pílula, texto azul-marinho */
.btn:not(.ghost) { background: var(--gold); border-color: var(--gold); color: var(--on-accent); font-weight: 700; border-radius: 14px; }
.btn:not(.ghost):hover { background: var(--gold-soft); border-color: var(--gold-soft); box-shadow: none; }
.btn.ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

.card, .wave, .cal-panel { position: relative; }
.divider { background: var(--line); }

.kin-emblem { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); }
.tzolkin > .today { box-shadow: 0 0 0 2px var(--gold); }

/* plano em destaque */
.plan.featured { border-color: var(--gold); box-shadow: none; }
.plan.featured .price { color: var(--gold-soft); }
.plan li::before { color: var(--gold); }

.seal-card:hover, .seal-card.open { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }

/* cintilações em forma de estrela de quatro pontas (raras e discretas) */
.sky .glint { position: absolute; width: var(--s); height: var(--s); background: var(--sun);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  opacity: 0; animation: glint var(--d) ease-in-out var(--o) infinite; }
@keyframes glint { 0%, 70%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 82% { opacity: .6; transform: scale(1) rotate(45deg); } }

.mini, .toggle, form.date input, .cal-tools input, .wiki-search { background: var(--surface-2); }
h1 { color: var(--title); font-weight: 700; font-variation-settings: 'SOFT' 0; }
h2, h3 { color: var(--title-2); font-weight: 600; }
/* links de texto em rosa (elemento secundário) */
p a, li a, .muted a, dd a { color: var(--tie); text-underline-offset: 3px; }
p a:hover, li a:hover, .muted a:hover, dd a:hover { color: var(--ink); }

/* fio com as quatro cores sob o cabeçalho */
header.site::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; opacity: .55;
  background: linear-gradient(90deg, var(--red) 0 25%, var(--white) 25% 50%, var(--blue) 50% 75%, var(--yellow) 75% 100%); }

/* ---------- Mais vida: as quatro direções com mais presença ----------
   Só CSS, sem imagens nem scripts novos; as animações usam apenas transform/opacity. */
/* cor "cheia" de cada selo (preenchimento) e a cor do símbolo por cima dela */
.c-red    { --cfill: var(--red);    --con: #ffffff; }
.c-white  { --cfill: #e6ddcf;       --con: var(--ink); }
.c-blue   { --cfill: var(--blue);   --con: #ffffff; }
.c-yellow { --cfill: var(--sun);    --con: var(--ink); }

/* emblema do Kin como um bloco de cor sólida, igual à referência */
.kin-emblem { background: var(--cfill, var(--cbg)); color: var(--con, var(--c)); box-shadow: none; }
.kin-emblem .num { color: var(--con, var(--ink)); opacity: .85; }

/* ícones dos selos preenchidos: Oráculo, onda, popover, calendário */
.mini .ic, .pop .head .ic, .cd-main .ic, .wave-step .ic { background: var(--cfill, var(--cbg)); color: var(--con, var(--c)); }
.wave-step .ic { opacity: .55; }
.wave-step.current .ic, .wave-step:hover .ic { opacity: 1; }
.oracle .lit .mini { background: var(--cbg); }

/* fio das quatro cores sob o cabeçalho, mais firme */
header.site::after { height: 3px; opacity: 1;
  background: linear-gradient(90deg, var(--red) 0 25%, #d9cfbf 25% 50%, var(--blue) 50% 75%, var(--sun) 75% 100%); }

/* assinatura das quatro direções sob o rótulo do topo de cada página */
.hero .eyebrow::after { content: ""; display: block; width: 72px; height: 4px; margin: 12px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--red) 0 25%, #d9cfbf 25% 50%, var(--blue) 50% 75%, var(--sun) 75% 100%); }

/* cards e botões respondem ao toque/mouse */
.card, .plan { transition: transform .25s ease, box-shadow .25s ease; }
.plan:hover, .card.hover-lift:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -22px color-mix(in srgb, var(--ink) 60%, transparent); }
.btn:not(.ghost):hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--red) 70%, transparent); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip { border-color: color-mix(in srgb, var(--c, var(--accent)) 35%, transparent); }

/* céu claro: cintilações nas quatro cores, bem leves */
.sky .twinkle:nth-child(4n+1) { background: var(--red); }
.sky .twinkle:nth-child(4n+2) { background: var(--blue); }
.sky .twinkle:nth-child(4n+3) { background: #c9bda9; }

@media (prefers-reduced-motion: reduce) {
  .card, .plan, .btn { transition: none; }
  .plan:hover, .btn:not(.ghost):hover { transform: none; }
}

/* ---------- Conta: login, cadastro, perfil ---------- */
.card.narrow, .auth { max-width: 440px; margin-left: auto; margin-right: auto; }
.auth { display: grid; gap: 14px; }
.auth-tabs { margin: 0 auto; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; font: inherit; font-weight: 700;
  padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color .2s, transform .2s; }
.btn-google:hover { border-color: var(--ink); transform: translateY(-1px); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
form.stack { display: grid; gap: 6px; }
form.stack label { font-size: .85rem; font-weight: 700; color: var(--ink); margin-top: 6px; }
form.stack input { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); min-width: 0; width: 100%; }
form.stack .btn { margin-top: 10px; }
form.stack.inline .row-btns input { flex: 1 1 220px; width: auto; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.row-btns .btn { margin-top: 0; }
.auth-links { text-align: center; font-size: .9rem; color: var(--muted); }
.auth-links a, .linklike { color: var(--tie); }
.linklike { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
#msg, #pmsg, #rmsg, #nmsg, #pwmsg { text-align: center; min-height: 1.4em; margin-top: 8px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 6px 0 4px; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.plan-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
