/* Numinastra — night-sky editorial theme.
   Layout: fixed glass header; home = layered parallax sky hero, then long-form sections
   on a deep ink ground; inner pages reuse .wrap/.grid/.card. */
:root {
  --ink: #07060f;
  --bg: #0b0a17;
  --bg-2: #12102a;
  --card: #171433;
  --line: rgba(236, 228, 255, .12);
  --line-2: rgba(236, 228, 255, .22);
  --text: #efeaf9;
  --muted: #a8a1c6;
  --gold: #e3bd74;
  --gold-2: #f6dfb0;
  --violet: #8b78f2;
  --error: #ff9a9a;
  --radius: 18px;
  --display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
}
body.inner { background: radial-gradient(1200px 600px at 75% -10%, #2a1f5c 0%, transparent 60%), var(--bg); }
/* Full-page sky drawn by site.js; content sits above it. */
#cosmos { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
main, footer.site { position: relative; z-index: 1; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
header.site {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
header.site.scrolled, body.inner header.site { background: rgba(11, 10, 23, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { font-family: var(--display); font-size: 1.75rem; color: var(--text); text-decoration: none; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.logo i { font-style: italic; color: var(--gold); }
.logo svg { width: 22px; height: 22px; }
nav.top { display: flex; align-items: center; gap: 26px; }
nav.top a { color: var(--muted); text-decoration: none; font-size: .92rem; letter-spacing: .01em; transition: color .2s; }
nav.top a:hover { color: var(--text); }
nav.top a.cta { color: var(--ink); background: var(--gold); padding: 9px 18px; border-radius: 999px; font-weight: 700; }
nav.top a.cta:hover { background: var(--gold-2); }
nav.top .menu { position: relative; }
nav.top .menu summary { list-style: none; cursor: pointer; color: var(--muted); font-size: .92rem; }
nav.top .menu summary::-webkit-details-marker { display: none; }
nav.top .menu summary::after { content: "▾"; margin-left: 6px; font-size: .7em; }
nav.top .menu summary:hover { color: var(--text); }
nav.top .menu > div { position: absolute; right: 0; top: calc(100% + 14px); display: grid; gap: 2px; min-width: 190px; padding: 8px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(18, 16, 42, .97); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
nav.top .menu > div a { padding: 8px 12px; border-radius: 8px; }
nav.top .menu > div a:hover { background: rgba(227, 189, 116, .1); }
@media (max-width: 760px) { nav.top > a:not(.cta), nav.top .menu { display: none; } }
nav.top a.cta { white-space: nowrap; }
.foot-guides a { margin-left: 4px; }
.lp-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
@media (max-width: 520px) { .lp-duo { grid-template-columns: 1fr; } }
.lp-duo h3 { margin-top: 0; }
.ticks.minus li::before { content: "–"; color: var(--muted); }
.lp-links a { display: inline-grid; place-items: center; min-width: 34px; height: 34px; margin: 0 2px; border: 1px solid rgba(227, 189, 116, .5); border-radius: 999px; text-decoration: none; font-family: var(--display); font-size: 1.15rem; }
.lp-links span { color: var(--muted); font-size: .88rem; margin-left: 8px; }
.lp-next { margin-top: 40px; padding: 26px 28px; border-radius: var(--radius); border: 1px solid rgba(227, 189, 116, .45); background: linear-gradient(160deg, rgba(227, 189, 116, .1), rgba(139, 120, 242, .08)); }
.lp-next h3 { color: var(--text); font-size: 1.8rem; margin-top: .3em; }
main { display: block; }
body.inner main { padding-top: 96px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); margin: .3em 0 .35em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin: 1.4em 0 .5em; }
h3 { font-size: 1.55rem; margin: 1.1em 0 .35em; color: var(--gold-2); }
h1 em, h2 em { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 700; color: var(--gold); margin: 0; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
p { max-width: 68ch; }

/* ---------- Generic blocks (all pages) ---------- */
.hero { padding: 24px 0 8px; }
.grid { display: grid; gap: 40px; grid-template-columns: 1.05fr 1fr; align-items: start; }
.grid > * { min-width: 0; }
@media (max-width: 880px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(180deg, rgba(31, 27, 66, .92), rgba(18, 16, 42, .94));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.card h2 { margin-top: 0; font-size: 2rem; }

label { display: block; font-size: .86rem; color: var(--muted); margin: 14px 0 6px; }
input, select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(7, 6, 15, .65); color: var(--text); font: inherit; font-size: 16px;
  transition: border-color .2s;
}
input:hover, select:hover { border-color: rgba(227, 189, 116, .45); }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227, 189, 116, .18); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row > * { min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin-top: 16px; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--gold); }
.linkish { background: none; border: 0; padding: 0; margin-top: 8px; color: var(--gold); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.range { display: none; margin-top: 4px; padding: 12px; border: 1px dashed var(--line-2); border-radius: 12px; }
.range.show { display: block; }
.range label { margin-top: 0; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 18px; padding: 15px 22px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #f0cf8c, var(--gold) 45%, #c08a3e);
  color: #1a1205; font: 700 1.02rem/1.2 var(--sans); cursor: pointer; text-align: center; text-decoration: none;
  box-shadow: 0 10px 30px rgba(227, 189, 116, .22);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(227, 189, 116, .32); color: #1a1205; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid rgba(227, 189, 116, .6); box-shadow: none; }
.btn.ghost:hover { background: rgba(227, 189, 116, .08); color: var(--gold-2); }
.btn.inline { width: auto; }

.error { color: var(--error); font-size: .9rem; margin-top: 10px; min-height: 1em; }
.places { margin-top: 8px; display: grid; gap: 6px; }
.places button { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(7, 6, 15, .5); color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.places button.selected { border-color: var(--gold); background: rgba(227, 189, 116, .1); }

.result { margin-top: 22px; display: none; }
.result.show { display: block; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tags span { font-size: .78rem; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; color: var(--muted); }
.locked { position: relative; margin-top: 16px; padding: 16px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--muted); }
.locked p { filter: blur(4px); user-select: none; margin: 0 0 8px; }
.locked .unlock { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px; color: var(--text); font-weight: 700; }

.paths { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.paths a { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); background: rgba(23, 20, 51, .55); transition: border-color .25s, transform .25s var(--ease); }
.paths a:hover { border-color: var(--gold); transform: translateY(-3px); }
.paths a b { font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--gold-2); display: block; line-height: 1; margin-bottom: 4px; }
.paths a span { font-size: .85rem; color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* Reading page */
article.reading h2 { color: var(--gold-2); border-top: 1px solid var(--line); padding-top: 1em; font-size: 1.9rem; }
article.reading .section-title { font-family: var(--display); font-size: 2.6rem; color: var(--text); margin: 1.6em 0 .2em; padding-top: .5em; border-top: 2px solid var(--gold); }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.chips div { border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.chips b { display: block; color: var(--gold-2); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.status { padding: 18px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--muted); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

.legal h2 { font-size: 1.9rem; }
.legal p, .legal li { color: var(--muted); }
footer.site { margin-top: 80px; padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
footer.site a { color: var(--muted); margin-right: 16px; }
.disclaimer { font-size: .8rem; color: var(--muted); }

/* Free profile result */
.portrait { padding: 20px 22px; border-radius: 16px; border: 1px solid rgba(227, 189, 116, .55); background: linear-gradient(160deg, rgba(227, 189, 116, .10), rgba(139, 120, 242, .08)); margin-bottom: 14px; }
.portrait p { margin: 6px 0 0; font-size: 1.04rem; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .pgrid { grid-template-columns: 1fr; } }
.pcard { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; background: rgba(7, 6, 15, .45); min-width: 0; }
.pcard .plabel { text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 700; color: var(--gold); }
.pcard .pvalue { font-family: var(--display); font-size: 1.6rem; color: var(--gold-2); margin: 2px 0 4px; line-height: 1.1; }
.pcard p { margin: 0 0 4px; font-size: .9rem; color: var(--text); }
.pcard p.hint { color: var(--muted); font-size: .78rem; }
.asc-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; font-size: .84rem; font-variant-numeric: tabular-nums; }
.asc-list li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 8px; border-radius: 8px; color: var(--muted); }
.asc-list li.on { background: rgba(227, 189, 116, .14); color: var(--text); }
.grid.expanded { grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
.grid.expanded .tool-intro { display: none; }
.grid.expanded .pgrid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid.expanded .pgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid.expanded .pgrid { grid-template-columns: 1fr; } }
.cn-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.cn-table th, .cn-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.cn-table th { color: var(--gold); font-weight: 700; }

/* ======================================================================
   HOME
   ====================================================================== */
.sky { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; background: radial-gradient(900px 600px at 70% 20%, rgba(43, 31, 99, .55) 0%, transparent 65%), radial-gradient(700px 500px at 10% 90%, rgba(58, 23, 71, .5) 0%, transparent 60%); }
.sky .layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.sky .wheel { position: absolute; width: min(118vw, 1100px); aspect-ratio: 1; right: -30%; top: 50%; translate: 0 -50%; opacity: .55; }
.sky .wheel svg { width: 100%; height: 100%; animation: turn 240s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.sky .moon { position: absolute; width: 220px; aspect-ratio: 1; border-radius: 50%; right: 14%; top: 18%; background: radial-gradient(circle at 35% 35%, #fff7e3, #e9cf98 45%, #8a6a3a 100%); box-shadow: 0 0 120px 30px rgba(246, 223, 176, .25); opacity: .9; }
@media (max-width: 760px) { .sky .moon { width: 120px; right: 6%; top: 12%; } .sky .wheel { right: -60%; opacity: .35; } }
.sky .fog { position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(11, 10, 23, .35)); z-index: 2; }
.sky .content { position: relative; z-index: 3; padding-block: 120px 150px; }
.sky h1 { font-size: clamp(3rem, 9vw, 7.4rem); line-height: .95; margin: .25em 0 .3em; max-width: 12ch; }
.sky h1 .line { display: block; overflow: hidden; }
.sky h1 .line > span { display: inline-block; animation: rise 1.2s var(--ease) both; }
.sky h1 .line:nth-child(2) > span { animation-delay: .12s; }
.sky h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.sky .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #cfc8e8; animation: fade 1.4s .5s var(--ease) both; }
.sky .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; animation: fade 1.4s .7s var(--ease) both; }
.sky .actions .btn { width: auto; margin: 0; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 26px; translate: -50% 0; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); display: grid; justify-items: center; gap: 8px; }
.scroll-cue::after { content: ""; width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); } }

/* Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: rgba(11, 10, 23, .55); }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: slide 38s linear infinite; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--muted); white-space: nowrap; }
.marquee .track span::after { content: "✦"; color: var(--gold); margin-left: 48px; font-size: .6em; vertical-align: middle; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.band { position: relative; padding-block: clamp(80px, 12vw, 150px); }
.band.tool { background: radial-gradient(800px 500px at 0% 40%, rgba(139, 120, 242, .12), transparent 60%); }
.kicker { display: flex; align-items: baseline; gap: 14px; }
.kicker .n { font-family: var(--display); font-size: 1rem; color: var(--gold); border: 1px solid rgba(227, 189, 116, .5); border-radius: 999px; padding: 2px 12px; }
.tool-intro ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.tool-intro li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: var(--muted); }
.tool-intro li b { color: var(--text); display: block; }
.tool-intro li .g { font-family: var(--display); font-size: 1.6rem; color: var(--gold); line-height: 1; text-align: center; }

/* What you get: sticky title + chapters */
.offer { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.offer > * { min-width: 0; }
.offer .sticky { position: sticky; top: 110px; }
@media (max-width: 880px) { .offer { grid-template-columns: 1fr; } .offer .sticky { position: static; } }
.year-badge { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 18px; border-radius: 14px; border: 1px solid rgba(227, 189, 116, .5); background: rgba(227, 189, 116, .07); font-size: .95rem; }
.year-badge strong { font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--gold-2); line-height: 1; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 18px; max-width: 420px; }
.months span { font-size: .62rem; text-align: center; color: var(--muted); border-top: 2px solid var(--gold); padding-top: 4px; letter-spacing: .04em; }
.chapters { display: grid; gap: 16px; counter-reset: ch; }
.chapter { position: relative; padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23, 20, 51, .75), rgba(12, 11, 26, .6)); transition: border-color .3s, transform .4s var(--ease); }
.chapter:hover { border-color: rgba(227, 189, 116, .5); }
.chapter header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chapter h3 { margin: 0; font-size: 1.9rem; color: var(--text); }
.chapter .pages { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.chapter p { color: var(--muted); margin: 10px 0 12px; }
.chapter ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chapter li { font-size: .8rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: #d9d3ee; }

/* Excerpt as a printed page */
.excerpt-band { background: linear-gradient(180deg, transparent, rgba(18, 15, 39, .55) 50%, transparent); overflow: hidden; }
.excerpt { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.excerpt > * { min-width: 0; }
@media (max-width: 880px) { .excerpt { grid-template-columns: 1fr; } }
.paper { position: relative; background: #f6f0e3; color: #2b2236; border-radius: 6px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 50px 120px rgba(0, 0, 0, .6); rotate: -1.6deg; font-size: .95rem; line-height: 1.7; will-change: transform; }
.paper::before { content: ""; position: absolute; inset: 10px -14px -14px 14px; background: #e6dcc6; border-radius: 6px; z-index: -1; rotate: 3deg; }
.paper .pe { text-transform: uppercase; letter-spacing: .22em; font-size: .66rem; color: #8a6420; font-weight: 700; }
.paper h4 { font-family: var(--display); font-weight: 400; font-size: 2.4rem; margin: .1em 0 .1em; line-height: 1; color: #1d1626; }
.paper .meta { color: #6f6380; font-size: .85rem; margin: 0 0 14px; }
.paper .pchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.paper .pchips span { font-size: .72rem; border: 1px solid #d5c7a6; border-radius: 6px; padding: 3px 8px; color: #4c3f5a; }
.paper h5 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: #8a6420; margin: 14px 0 4px; border-top: 1px solid #ddd0b4; padding-top: 10px; }
.paper p { margin: 0 0 8px; }
.paper .fadeout { position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, #f6f0e3); border-radius: 0 0 6px 6px; }

/* Price */
.price-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: 24px; overflow: hidden; border: 1px solid rgba(227, 189, 116, .45); background: linear-gradient(135deg, rgba(43, 31, 99, .6), rgba(12, 11, 26, .9)); }
.price-card > div { padding: clamp(28px, 4vw, 48px); min-width: 0; }
.price-card .right { border-left: 1px solid var(--line); background: rgba(7, 6, 15, .4); }
@media (max-width: 820px) { .price-card { grid-template-columns: 1fr; } .price-card .right { border-left: 0; border-top: 1px solid var(--line); } }
.price { font-family: var(--display); font-size: clamp(4rem, 9vw, 6.5rem); line-height: .9; color: var(--gold-2); margin: 10px 0 6px; }
.price small { font-family: var(--sans); font-size: 1rem; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: #d9d3ee; font-size: .95rem; }
.ticks li::before { content: "✦"; color: var(--gold); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps > div { padding: 24px; border-top: 1px solid var(--gold); }
.steps .n { font-family: var(--display); font-size: 3rem; color: var(--gold); line-height: 1; }
.steps p { color: var(--muted); margin: 6px 0 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Scroll reveal (only when JS has run; content stays visible otherwise) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media print {
  body { background: #fff; color: #111; font-size: 12pt; }
  header.site, footer.site, .noprint { display: none !important; }
  body.inner main { padding-top: 0; }
  article.reading h2, .chips b, h3 { color: #6b4b10; }
  .chips div { border-color: #ccc; }
  a { color: #111; }
}

/* Compatibility form */
fieldset.person { border: 1px solid var(--line-2); border-radius: 14px; padding: 6px 16px 16px; margin: 0 0 14px; min-width: 0; }
fieldset.person legend { font-family: var(--display); font-size: 1.4rem; color: var(--gold-2); padding: 0 8px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .duo { grid-template-columns: 1fr; } }
.meter { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line); margin: 8px 0 4px; }
.meter span:nth-child(1) { background: var(--gold); }
.meter span:nth-child(2) { background: var(--violet); }
.meter span:nth-child(3) { background: #e07a8a; }

/* ======================================================================
   COMPATIBILITY — "lovers" palette and Sun/Moon eclipse
   ====================================================================== */
body.love { --rose: #e8b4b8; --copper: #c8794f; --bordeaux: #6b1f35; }
body.love h1 em, body.love h2 em { background: linear-gradient(90deg, var(--rose), var(--gold) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.love .eyebrow, body.love .chapter .pages { color: var(--rose); }
body.love .card { border-color: rgba(232, 180, 184, .3); background: linear-gradient(180deg, rgba(48, 22, 52, .92), rgba(22, 13, 32, .95)); }
body.love .chapter:hover { border-color: rgba(232, 180, 184, .55); }
body.love .year-badge { border-color: rgba(200, 121, 79, .6); background: rgba(107, 31, 53, .22); }
body.love fieldset.person legend { color: var(--rose); }
body.love .btn:not(.ghost) { background: linear-gradient(135deg, #f6d2b8, #dc9a72 45%, #a9524b); box-shadow: 0 10px 30px rgba(200, 121, 79, .28); }

.eclipse { --p: .15; --size: 150px; --gap: 190px; position: relative; z-index: 1; height: var(--size); margin: 8px auto 36px; width: var(--size); pointer-events: none; }
.eclipse > div { position: absolute; inset: 0; border-radius: 50%; will-change: transform; }
.eclipse .sun { background: radial-gradient(circle at 45% 42%, #fff6e0, #f4cf86 40%, #d98a55 78%, #9c4a37); box-shadow: 0 0 60px 14px rgba(246, 207, 150, .35), 0 0 140px 40px rgba(200, 121, 79, .18); transform: translateX(calc(-1 * var(--gap) * (1 - var(--p)))); }
.eclipse .moon-disc { inset: -3%; background: radial-gradient(circle at 62% 40%, #2a1424, #12070f 70%); box-shadow: inset -5px -2px 12px rgba(232, 180, 184, .28); transform: translateX(calc(var(--gap) * (1 - var(--p)))); }
.eclipse .corona { inset: -22%; background: radial-gradient(circle, transparent 44%, rgba(255, 236, 214, .85) 46%, rgba(232, 180, 184, .45) 52%, rgba(200, 121, 79, .12) 64%, transparent 72%); opacity: calc((var(--p) - .82) * 5.5); filter: blur(1.5px); }
@media (max-width: 760px) { .eclipse { --size: 104px; --gap: 120px; margin-bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .eclipse { --p: 1; } }

/* Birthplace picker status */
.place-status { min-height: 0; margin-top: 8px; font-size: .88rem; border-radius: 10px; }
.place-status:empty { display: none; }
.place-status.ok { color: #9be3b0; padding: 8px 12px; background: rgba(76, 175, 110, .12); border: 1px solid rgba(76, 175, 110, .5); }
.place-status.ok .tick { font-weight: 700; margin-right: 4px; }
.place-status.todo { color: #ffd38a; padding: 8px 12px; background: rgba(227, 189, 116, .1); border: 1px solid rgba(227, 189, 116, .55); }
.place-status .arrow { display: inline-block; color: #4fd17a; font-weight: 700; margin-right: 6px; transform: rotate(-90deg); animation: nudge 1s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
input.place-ok { border-color: rgba(76, 175, 110, .8); }
input.place-todo { border-color: rgba(227, 189, 116, .8); }
.places.pick-me button { border-color: rgba(79, 209, 122, .7); box-shadow: 0 0 0 2px rgba(79, 209, 122, .15); }
.places button:hover { border-color: #4fd17a; }

/* Precise profile details */
.pcard .pvalue small { font-family: var(--sans); font-size: .8rem; color: var(--muted); vertical-align: middle; }
.pcard .decan { margin: 8px 0 6px; padding: 10px 12px; border-left: 2px solid var(--gold); background: rgba(227, 189, 116, .06); border-radius: 0 10px 10px 0; font-size: .86rem; }
.pcard .decan b { display: block; color: var(--gold-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.elements { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; gap: 6px; font-size: .8rem; }
.elements li { display: grid; grid-template-columns: 46px 1fr 20px; gap: 8px; align-items: center; color: var(--muted); }
.elements i { display: block; height: 7px; border-radius: 999px; background: var(--line); position: relative; overflow: hidden; }
.elements i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--c); }
.elements b { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.el-feu { --c: #e8875b; } .el-terre { --c: #b9a26a; } .el-air { --c: #9fc3e6; } .el-eau { --c: #7e8cf0; }

/* Baby name tool */
.names { display: grid; gap: 8px; }
.name-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.name-row .linkish { margin-top: 0; }
#baby-result h2 { margin-top: 1.2em; }
.baby-card .plabel { font-size: .78rem; letter-spacing: .08em; }
.days summary { cursor: pointer; color: var(--gold); margin: 10px 0; }
.days tr.due td { background: rgba(227, 189, 116, .1); }
.days td a { font-family: var(--display); font-size: 1.1rem; text-decoration: none; }

/* First-name pages */
.table-scroll { overflow-x: auto; }
.letters th, .letters td { text-align: center; min-width: 30px; }
.letters .v { color: var(--gold-2); background: rgba(227, 189, 116, .08); }
.name-links { display: flex; flex-wrap: wrap; gap: 8px; }
.name-links a { padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--text); font-size: .92rem; }
.name-links a:hover { border-color: var(--gold); }
.name-links small { color: var(--gold); margin-left: 4px; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 0; }
.az a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; text-decoration: none; font-family: var(--display); }
.quick-name { max-width: 720px; margin-top: 24px; }

.pcard p.reading-lead { font-family: var(--display); font-size: 1.35rem; line-height: 1.35; color: var(--gold-2); margin: 10px 0 14px; }
.reading-card p { max-width: none; }
.combo { padding: 12px 14px; border-radius: 12px; background: rgba(139, 120, 242, .1); border: 1px solid rgba(139, 120, 242, .3); }

/* Home showcase */
.band.showcase { padding-block: clamp(56px, 8vw, 100px); }
.shop { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.shop-main { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--radius); text-decoration: none; color: var(--text); border: 1px solid rgba(227, 189, 116, .5); background: linear-gradient(150deg, rgba(43, 31, 99, .75), rgba(12, 11, 26, .85)); transition: transform .3s var(--ease), border-color .3s; }
.shop-main:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--text); }
.shop-main.love { border-color: rgba(232, 180, 184, .5); background: linear-gradient(150deg, rgba(107, 31, 53, .55), rgba(22, 13, 32, .9)); }
.shop-main .tag { justify-self: start; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--ink); background: var(--gold); padding: 3px 10px; border-radius: 999px; }
.shop-main.love .tag { background: #e8b4b8; }
.shop-main b { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.05; }
.shop-main .desc { color: var(--muted); font-size: .95rem; }
.shop-main .row-end { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.price-sm { font-family: var(--display); font-size: 2.2rem; color: var(--gold-2); line-height: 1; }
.shop-main .go { color: var(--gold); font-weight: 700; font-size: .9rem; }
.shop-free-title { margin: 30px 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); font-weight: 700; }
.shop-free { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shop-free a { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(23, 20, 51, .55); text-decoration: none; color: var(--text); transition: border-color .25s; }
.shop-free a:hover { border-color: var(--gold); color: var(--text); }
.shop-free b { font-weight: 700; font-size: .95rem; }
.shop-free span { color: var(--muted); font-size: .82rem; }
@media (max-width: 820px) { .shop { grid-template-columns: 1fr; } .shop-free { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .shop-free { grid-template-columns: 1fr; } }
/* Method page */
.method { display: grid; gap: 14px; }
.method > div { padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(23, 20, 51, .5); }
.method h3 { margin: 0 0 6px; font-size: 1.35rem; }
.method p { margin: 0; color: #d9d3ee; }
.baby-paid { margin-top: 36px; max-width: 760px; }
.baby-paid .ticks { margin: 14px 0 6px; }
.baby-paid h3 .hint { font-family: var(--sans); }
.soon { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(227, 189, 116, .6); background: rgba(227, 189, 116, .07); font-size: .92rem; color: var(--text); }
.ok-msg { color: #9be3b0; }
