/* Birthmap design tokens — direction A "Celestial classic": night sky, gold, serif display.
   Shared by the app (imported in main.tsx) and the static site (copied by scripts/build-site.mjs). */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bm-night: #0d0b1f;          /* page */
  --bm-night-2: #15122e;        /* raised panel */
  --bm-night-3: #1d1940;        /* inputs, chips */
  --bm-line: rgba(201, 168, 90, 0.22);      /* hairline gold */
  --bm-line-soft: rgba(233, 217, 168, 0.1);
  --bm-gold: #c9a85a;           /* primary accent, CTA */
  --bm-gold-hover: #d8b96b;
  --bm-gold-light: #e9d9a8;     /* glyphs, highlights */
  --bm-ink-on-gold: #1a1430;
  --bm-text: #f3ead2;           /* body text on night */
  --bm-text-2: #b9b0d6;         /* secondary text */
  --bm-text-3: #8c84ad;         /* captions */
  --bm-lilac: #8f7fd6;          /* aspect lines, focus */
  --bm-rose: #e58fa3;           /* hard aspects, errors */
  --bm-success: #8fd3b6;
  --bm-radius: 10px;
  --bm-radius-lg: 16px;
  --bm-font-display: "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --bm-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Noto Sans", "Noto Sans Hebrew", "Noto Sans Arabic", sans-serif;
  --bm-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Cormorant defaults to old-style figures ("10" reads like "IO"); use lining numerals everywhere. */
h1, h2, h3, h4, .price, .stat, time { font-variant-numeric: lining-nums; }

/* Birthmap marketing site — direction A "Celestial classic".
   Appended after src/theme.css by scripts/build-site.mjs, so every --bm-* token is available here.
   CSP: style-src 'self' only — no inline styles anywhere in the generated HTML. */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bm-night);
}
/* smooth only for in-page clicks; a link from another page (/#pricing) jumps straight to the section */
html:focus-within { scroll-behavior: smooth; }

body {
  color: var(--bm-text);
  font: 16px/1.65 var(--bm-font-body);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  text-rendering: optimizeLegibility;
}

/* CSS-only starfield: a fixed layer of tiled single-dot gradients (tile sizes chosen to avoid an obvious grid). */
body::before {
  background-color: transparent;
  background-image:
    radial-gradient(ellipse 80% 55% at 78% -8%, rgba(143, 127, 214, 0.2), transparent 70%),
    radial-gradient(ellipse 60% 45% at 8% 4%, rgba(201, 168, 90, 0.07), transparent 70%),
    radial-gradient(1.3px 1.3px at 31px 47px, rgba(243, 234, 210, 0.85), transparent),
    radial-gradient(1px 1px at 129px 163px, rgba(243, 234, 210, 0.6), transparent),
    radial-gradient(1px 1px at 211px 71px, rgba(233, 217, 168, 0.55), transparent),
    radial-gradient(1.6px 1.6px at 97px 241px, rgba(243, 234, 210, 0.75), transparent),
    radial-gradient(1px 1px at 283px 199px, rgba(185, 176, 214, 0.6), transparent),
    radial-gradient(1.2px 1.2px at 167px 331px, rgba(233, 217, 168, 0.5), transparent);
  background-repeat: no-repeat, no-repeat, repeat, repeat, repeat, repeat, repeat, repeat;
  background-size: 100% 100%, 100% 100%, 173px 173px, 241px 241px, 307px 307px, 389px 389px, 457px 457px, 523px 523px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

::selection { background: rgba(201, 168, 90, 0.35); color: var(--bm-text); }

a { color: var(--bm-gold-light); text-decoration-color: rgba(233, 217, 168, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--bm-text); text-decoration-color: var(--bm-gold); }
a:focus-visible, summary:focus-visible { border-radius: 4px; outline: 2px solid var(--bm-lilac); outline-offset: 3px; }

img, svg { max-width: 100%; }

h1, h2, h3 {
  color: var(--bm-text);
  font-family: var(--bm-font-display);
  font-weight: 600;
  letter-spacing: 0;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 500; line-height: 1.06; margin: 0 0 22px; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.12; margin: 0 0 18px; max-width: 30ch; }
h3 { font-size: 1.45rem; line-height: 1.2; margin: 0 0 8px; }
p { margin: 0 0 1em; }

.muted { color: var(--bm-text-3); font-size: 0.88rem; }

/* ---------- Header ---------- */

.nav {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(13, 11, 31, 0.84);
  border-bottom: 1px solid var(--bm-line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 auto;
  max-width: 1160px;
  padding: 12px clamp(16px, 4vw, 40px);
}
.brand { flex: none; }
.brand img { display: block; height: 36px; width: auto; }
.links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-inline-start: auto; }
.links a { color: var(--bm-text-2); font-size: 0.92rem; text-decoration: none; }
.links a:hover { color: var(--bm-gold-light); }
.lang { display: flex; flex-wrap: wrap; gap: 2px; }
.lang a {
  border-radius: 6px;
  color: var(--bm-text-3);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  padding: 3px 5px;
  text-decoration: none;
}
.lang a:hover { color: var(--bm-text); }
.lang a[aria-current="true"] { color: var(--bm-gold); font-weight: 700; }

/* ---------- Buttons ---------- */

.btn {
  background: var(--bm-gold);
  border: 1px solid var(--bm-gold);
  border-radius: var(--bm-radius);
  box-shadow: 0 10px 30px rgba(201, 168, 90, 0.18);
  color: var(--bm-ink-on-gold);
  display: inline-block;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.3;
  padding: 14px 24px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--bm-gold-hover); border-color: var(--bm-gold-hover); color: var(--bm-ink-on-gold); }
.btn.ghost { background: transparent; border-color: rgba(201, 168, 90, 0.6); box-shadow: none; color: var(--bm-gold-light); }
.btn.ghost:hover { background: rgba(201, 168, 90, 0.1); border-color: var(--bm-gold); color: var(--bm-text); }
.btn.small { box-shadow: none; font-size: 0.86rem; padding: 8px 14px; }

/* ---------- Page frame ---------- */

main { margin: 0 auto; max-width: 1160px; padding: 0 clamp(16px, 4vw, 40px); }

/* ---------- Hero ---------- */

.hero {
  align-items: center;
  display: grid;
  gap: 28px;
  padding: 36px 0 56px;
}
.hero-art { margin: 0 auto; max-width: 210px; order: -1; position: relative; width: 62%; }
.hero-art::before {
  background: radial-gradient(circle, rgba(143, 127, 214, 0.18), transparent 65%);
  content: "";
  inset: -18%;
  position: absolute;
  z-index: -1;
}
.eyebrow {
  color: var(--bm-gold);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.hero h1 { max-width: 17ch; }
.hero h1.h1-long { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 22ch; }
.lead { color: var(--bm-text-2); font-size: 1.08rem; line-height: 1.7; max-width: 60ch; }
.actions, .card-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 28px; }
.hero .actions .btn { flex: 1 1 auto; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 28px 0 0; padding: 0; }
.proof li { color: var(--bm-text-2); font-size: 0.9rem; }
.proof li::before, .checks li::before { color: var(--bm-gold); content: "✓"; font-weight: 700; margin-inline-end: 8px; }
.hero-plain { display: block; padding: 96px 0; text-align: center; }
.hero-plain h1 { margin-inline: auto; }

/* Natal wheel */
.wheel { direction: ltr; display: block; filter: drop-shadow(0 0 28px rgba(201, 168, 90, 0.12)); height: auto; width: 100%; }
.w-glow { fill: rgba(21, 18, 46, 0.6); }
.w-ring { fill: none; stroke: var(--bm-gold); stroke-width: 1.3; }
.w-ring-soft { fill: none; stroke: rgba(201, 168, 90, 0.35); stroke-width: 1; }
.w-tick { stroke: var(--bm-gold); stroke-width: 1; }
.w-tick-soft { stroke: rgba(201, 168, 90, 0.5); stroke-width: 0.8; }
.w-glyph {
  fill: var(--bm-gold-light);
  font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", "Noto Sans Symbols", "DejaVu Sans", serif;
  font-size: 20px;
}
.w-axis { stroke: rgba(233, 217, 168, 0.55); stroke-width: 1; }
.w-aspect { stroke: var(--bm-lilac); stroke-opacity: 0.75; stroke-width: 1; }
.w-planet { fill: var(--bm-gold-light); stroke: var(--bm-night); stroke-width: 2; }
.w-core { fill: var(--bm-gold); }

/* ---------- Sections ---------- */

.block { padding: 56px 0; position: relative; }
.block::before,
.cta-band::before {
  background: linear-gradient(90deg, transparent, var(--bm-line) 12%, var(--bm-line) 88%, transparent);
  content: "";
  height: 1px;
  inset-inline: 0;
  position: absolute;
  top: 0;
}
.block::after,
.cta-band::after {
  background: var(--bm-night);
  border: 1px solid var(--bm-gold);
  content: "";
  height: 7px;
  left: 50%;
  position: absolute;
  top: -3px;
  transform: translateX(-50%) rotate(45deg);
  width: 7px;
}
.block > p { color: var(--bm-text-2); max-width: 68ch; }

.kicker {
  align-items: center;
  color: var(--bm-gold);
  display: flex;
  font-family: var(--bm-font-display);
  font-size: 1rem;
  font-weight: 600;
  gap: 12px;
  letter-spacing: 0.16em;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.kicker span + span::before {
  background: var(--bm-gold);
  content: "";
  display: inline-block;
  height: 1px;
  margin-inline-end: 12px;
  opacity: 0.6;
  vertical-align: middle;
  width: 28px;
}

/* How it works */
.steps { counter-reset: step; display: grid; gap: 28px; list-style: none; margin: 32px 0 0; padding: 0; }
.steps li { border-top: 1px solid var(--bm-line); counter-increment: step; padding-top: 18px; }
.steps li::before {
  color: var(--bm-gold);
  content: "0" counter(step);
  display: block;
  font-family: var(--bm-font-display);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 12px;
}
.steps p { color: var(--bm-text-2); margin: 0; }

/* Pricing cards */
.cards { display: grid; gap: 18px; margin-top: 32px; }
.card {
  background: var(--bm-night-2);
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg);
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
}
.card h3 { font-size: 1.7rem; }
.card p:not(.price):not(.stars):not(.muted) { color: var(--bm-text-2); flex: 1; font-size: 0.97rem; }
.price {
  border-bottom: 1px solid var(--bm-line-soft);
  color: var(--bm-gold);
  font-family: var(--bm-font-display);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
  margin: 6px 0 18px;
  padding-bottom: 18px;
}
.price span { color: var(--bm-text-3); font-family: var(--bm-font-body); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em; }
.card-actions { margin-top: 8px; }
.card-actions a:not(.btn) { color: var(--bm-text-2); font-size: 0.9rem; }
.card-actions a:not(.btn):hover { color: var(--bm-gold-light); }
.card:not(.featured) .btn { background: transparent; border-color: rgba(201, 168, 90, 0.6); box-shadow: none; color: var(--bm-gold-light); }
.card:not(.featured) .btn:hover { background: rgba(201, 168, 90, 0.1); color: var(--bm-text); }
.card.featured {
  background: linear-gradient(180deg, rgba(143, 127, 214, 0.12), rgba(21, 18, 46, 0) 55%), var(--bm-night-2);
  border-color: rgba(201, 168, 90, 0.65);
  box-shadow: var(--bm-shadow), 0 0 0 1px rgba(201, 168, 90, 0.12) inset;
}
.card.featured h3 { color: var(--bm-gold-light); }

/* Excerpt pull-quote */
blockquote {
  border-inline-start: 1px solid var(--bm-gold);
  color: var(--bm-text);
  font-family: var(--bm-font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  font-weight: 500;
  line-height: 1.5;
  margin: 28px 0 18px;
  max-width: 62ch;
  padding: 2px 0 2px clamp(18px, 3vw, 32px);
  padding-inline: clamp(18px, 3vw, 32px) 0;
}
blockquote p:last-child { margin-bottom: 0; }
.excerpt .more, .reading .others a { font-weight: 600; }

/* Method */
.checks { list-style: none; margin: 24px 0 0; max-width: 72ch; padding: 0; }
.checks li { border-bottom: 1px solid var(--bm-line-soft); color: var(--bm-text-2); padding: 12px 0 12px 28px; padding-inline: 28px 0; position: relative; }
.checks li::before { inset-inline-start: 0; position: absolute; }

/* FAQ */
#faq details { border-bottom: 1px solid var(--bm-line); max-width: 820px; }
#faq details:first-of-type { border-top: 1px solid var(--bm-line); margin-top: 28px; }
summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-family: var(--bm-font-display);
  font-size: 1.3rem;
  font-weight: 600;
  gap: 16px;
  justify-content: space-between;
  line-height: 1.3;
  list-style: none;
  padding: 18px 0;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  border: 1px solid rgba(201, 168, 90, 0.6);
  border-radius: 50%;
  color: var(--bm-gold);
  content: "+";
  flex: none;
  font-family: var(--bm-font-body);
  font-size: 1.1rem;
  font-weight: 400;
  height: 28px;
  line-height: 26px;
  text-align: center;
  transition: transform 0.2s ease;
  width: 28px;
}
details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: var(--bm-gold-light); }
details p { color: var(--bm-text-2); margin: 0 0 20px; max-width: 68ch; }

/* Reviews (only rendered when SHOW_REVIEWS) */
.review .stars { color: var(--bm-gold); letter-spacing: 3px; margin: 0 0 10px; }

/* Closing CTA */
.cta-band { padding: 64px 0 80px; position: relative; text-align: center; }
.cta-mark { color: var(--bm-gold); font-size: 1.3rem; margin: 0 0 12px; }
.cta-band h2 { margin-inline: auto; max-width: 22ch; }
.cta-band .btn { margin-top: 10px; }
.cta-band .others { color: var(--bm-text-3); margin-top: 22px; }

/* ---------- Long-form: sample readings and legal pages ---------- */

.reading { font-size: 1.0625rem; line-height: 1.75; margin: 0 auto; max-width: 720px; padding: 32px 0 0; }
.reading .back { font-size: 0.9rem; margin-bottom: 28px; }
.reading .back a { color: var(--bm-text-2); text-decoration: none; }
.reading .back a:hover { color: var(--bm-gold-light); }
.reading h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; }
.reading .lead { font-size: 1.15rem; }
.signal {
  border-inline-start: 1px solid var(--bm-gold);
  color: var(--bm-gold-light);
  font-family: var(--bm-font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 26px 0;
  padding-inline-start: 20px;
}
.toc {
  background: rgba(21, 18, 46, 0.75);
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg);
  margin: 28px 0 12px;
  padding: 18px 22px;
}
.toc ol { columns: 2 220px; column-gap: 32px; font-size: 0.95rem; margin: 0; padding-inline-start: 22px; }
.toc li { break-inside: avoid; padding: 3px 0; }
.toc li::marker { color: var(--bm-gold); font-family: var(--bm-font-display); }
.toc a { color: var(--bm-text-2); text-decoration: none; }
.toc a:hover { color: var(--bm-gold-light); }
.reading section { border-top: 1px solid var(--bm-line); margin-top: 36px; padding-top: 30px; scroll-margin-top: 140px; }
.reading section h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.reading p, .reading li { color: var(--bm-text); }
.reading ul { padding-inline-start: 22px; }
.reading li { margin: 6px 0; }
.reading li::marker { color: var(--bm-gold); }
.reading .muted { color: var(--bm-text-3); }
.reading .cta-band { margin-top: 48px; }

.legal h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin-top: 40px; max-width: none; }
.legal strong { color: var(--bm-gold-light); font-weight: 600; }

/* ---------- Footer ---------- */

footer { border-top: 1px solid var(--bm-line); color: var(--bm-text-3); font-size: 0.86rem; margin-top: 24px; }
.footer-inner { margin: 0 auto; max-width: 1160px; padding: 32px clamp(16px, 4vw, 40px) 40px; text-align: center; }
.footer-mark { color: var(--bm-gold); margin-bottom: 14px; }
footer a { color: var(--bm-text-2); }
footer a:hover { color: var(--bm-gold-light); }
.legal-links a { margin: 0 2px; }

/* ---------- Responsive ---------- */

@media (max-width: 639px) {
  .links { display: none; }
  .nav-inner { gap: 8px 12px; }
  .brand img { height: 30px; }
  .nav .btn.small { margin-inline-start: auto; }
  .lang { order: 5; width: 100%; }
  .hero .actions .btn { width: 100%; }
}

@media (min-width: 640px) and (max-width: 1359px) {
  .lang { order: 5; width: 100%; }
}

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reading { font-size: 1.125rem; }
  .hero .actions .btn { flex: 0 0 auto; }
}

@media (min-width: 900px) {
  .cards { align-items: stretch; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card.featured { transform: translateY(-8px); }
  .hero {
    gap: clamp(32px, 5vw, 72px);
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    min-height: 560px;
    padding: 72px 0 88px;
  }
  .hero-art { max-width: 460px; order: 0; width: 100%; }
  .lead { font-size: 1.18rem; }
}

@media (prefers-reduced-motion: reduce) {
  html, html:focus-within { scroll-behavior: auto; }
  summary::after, .btn { transition: none; }
}

/* Long-form overrides that must beat `.reading p` */
.reading .eyebrow { color: var(--bm-gold); }
.reading .lead { color: var(--bm-text-2); }
.reading .signal { color: var(--bm-gold-light); }
.reading .toc li { margin: 0; }

/* Hebrew and Arabic: no letter-spacing or case transforms on small labels */
[dir="rtl"] .eyebrow,
[dir="rtl"] .kicker,
[dir="rtl"] .lang a { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .eyebrow { font-size: 0.9rem; }

/* ---------- Methodology page ---------- */
.method-page section { margin-top: 36px; }
.table-wrap { -webkit-overflow-scrolling: touch; margin: 16px 0 12px; max-width: 100%; overflow-x: auto; }
.compare { border-collapse: collapse; font-size: 0.95rem; min-width: 560px; width: 100%; }
.compare th, .compare td { border-bottom: 1px solid var(--bm-line); padding: 12px 14px; text-align: start; vertical-align: top; }
.compare thead th { color: var(--bm-text-2); font-family: var(--bm-font-display); font-size: 1.15rem; font-weight: 600; }
.compare tbody th { color: var(--bm-text-2); font-weight: 600; width: 22%; }
.compare td { color: var(--bm-text-2); }
.compare .ours { background: rgba(201, 168, 90, 0.08); color: var(--bm-gold-light); }
.compare thead .ours { color: var(--bm-gold); }

/* ---------- Transit articles ---------- */
.article-page section { margin-top: 36px; }
.compare.dates { min-width: 480px; }
.rising-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 18px; }
.rising-card { background: var(--bm-night-2); border: 1px solid var(--bm-line); border-radius: var(--bm-radius); padding: 16px 18px; }
.rising-card h3 { color: var(--bm-gold-light); margin-bottom: 6px; }
.rising-card p { color: var(--bm-text-2); font-size: 0.95rem; margin: 0; }
.article-list { display: grid; gap: 16px; margin-top: 28px; }
.article-card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); max-width: none; }
.article-card h2 a { color: var(--bm-text); text-decoration: none; }
.article-card h2 a:hover { color: var(--bm-gold-light); }


/* ---------- Hero wheel motion (CSS only; the site runs no scripts) ---------- */
.w-zodiac, .w-inner { transform-box: view-box; transform-origin: 50% 50%; }
.w-zodiac { animation: w-turn 300s linear infinite; }
.w-inner { animation: w-turn 480s linear infinite reverse; }
.w-glyph {
  fill-opacity: 0.72;
  paint-order: stroke;
  stroke: rgba(233, 217, 168, 0);
  stroke-width: 0;
  transform-origin: 0 0; /* the glyph sits at its own (0,0) inside a translated <g> */
  /* counter-rotation keeps every sign upright while the ring turns; the glow lights them one by one */
  animation: w-turn 300s linear infinite reverse, w-sign-glow 14s ease-in-out infinite;
}
.w-glyph.s0 { animation-delay: 0s, -8.17s; }
.w-glyph.s1 { animation-delay: 0s, -2.33s; }
.w-glyph.s2 { animation-delay: 0s, -11.67s; }
.w-glyph.s3 { animation-delay: 0s, -5.83s; }
.w-glyph.s4 { animation-delay: 0s, -0.00s; }
.w-glyph.s5 { animation-delay: 0s, -10.50s; }
.w-glyph.s6 { animation-delay: 0s, -3.50s; }
.w-glyph.s7 { animation-delay: 0s, -12.83s; }
.w-glyph.s8 { animation-delay: 0s, -7.00s; }
.w-glyph.s9 { animation-delay: 0s, -1.17s; }
.w-glyph.s10 { animation-delay: 0s, -9.33s; }
.w-glyph.s11 { animation-delay: 0s, -4.67s; }
.w-planet { animation: w-planet-pulse 9s ease-in-out infinite; transform-origin: 0 0; }
.w-planet.p0 { animation-delay: -3.38s; }
.w-planet.p1 { animation-delay: -6.75s; }
.w-planet.p2 { animation-delay: -1.12s; }
.w-planet.p3 { animation-delay: -7.88s; }
.w-planet.p4 { animation-delay: -4.50s; }
.w-planet.p5 { animation-delay: -0.00s; }
.w-planet.p6 { animation-delay: -5.62s; }
.w-planet.p7 { animation-delay: -2.25s; }
@keyframes w-turn { to { transform: rotate(360deg); } }
@keyframes w-sign-glow {
  0%, 18%, 100% { fill: var(--bm-gold-light); fill-opacity: 0.72; stroke: rgba(233, 217, 168, 0); stroke-width: 0; }
  6% { fill: #fffaf0; fill-opacity: 1; stroke: rgba(233, 217, 168, 0.55); stroke-width: 5px; }
  11% { fill: #fff3d6; fill-opacity: 0.95; stroke: rgba(233, 217, 168, 0.25); stroke-width: 3px; }
}
@keyframes w-planet-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .w-zodiac, .w-inner, .w-glyph, .w-planet { animation: none; }
}
.powered a { color: var(--bm-text-2); }
.powered a:hover { color: var(--bm-gold-light); }


/* ---------- Clickable signs on the hero wheel (CSS only) ---------- */
.w-sign { cursor: pointer; outline: none; }
.w-hit { fill: transparent; stroke: transparent; stroke-width: 1; transition: fill 0.2s ease, stroke 0.2s ease; }
.w-sign:hover .w-hit, .w-sign:focus .w-hit { fill: rgba(201, 168, 90, 0.2); stroke: var(--bm-gold); }
.w-sign:focus-visible .w-hit { stroke-width: 2; }
/* the wheel holds still while the reader is on it, so a sign is easy to hit */
.hero-art:hover :is(.w-zodiac, .w-inner, .w-glyph, .w-planet),
.hero-art:focus-within :is(.w-zodiac, .w-inner, .w-glyph, .w-planet) { animation-play-state: paused; }
.sign-tip {
  background: rgba(21, 18, 46, 0.97);
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg);
  box-shadow: var(--bm-shadow);
  left: 50%;
  opacity: 0;
  padding: 16px 18px;
  pointer-events: none;
  position: absolute;
  text-align: start;
  top: calc(100% + 4px);
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  visibility: hidden;
  width: min(340px, 88vw);
  z-index: 5;
}
.sign-tip p { color: var(--bm-text-2); font-size: 0.95rem; line-height: 1.55; margin: 0 0 8px; }
.sign-tip .sign-tip-name { color: var(--bm-gold-light); font-family: var(--bm-font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: 6px; }
.sign-tip .sign-tip-purpose { color: var(--bm-text); margin: 0; }
.hero-art:has(.w-sign.k0:hover, .w-sign.k0:focus) .sign-tip.t0 ,
.hero-art:has(.w-sign.k1:hover, .w-sign.k1:focus) .sign-tip.t1 ,
.hero-art:has(.w-sign.k2:hover, .w-sign.k2:focus) .sign-tip.t2 ,
.hero-art:has(.w-sign.k3:hover, .w-sign.k3:focus) .sign-tip.t3 ,
.hero-art:has(.w-sign.k4:hover, .w-sign.k4:focus) .sign-tip.t4 ,
.hero-art:has(.w-sign.k5:hover, .w-sign.k5:focus) .sign-tip.t5 ,
.hero-art:has(.w-sign.k6:hover, .w-sign.k6:focus) .sign-tip.t6 ,
.hero-art:has(.w-sign.k7:hover, .w-sign.k7:focus) .sign-tip.t7 ,
.hero-art:has(.w-sign.k8:hover, .w-sign.k8:focus) .sign-tip.t8 ,
.hero-art:has(.w-sign.k9:hover, .w-sign.k9:focus) .sign-tip.t9 ,
.hero-art:has(.w-sign.k10:hover, .w-sign.k10:focus) .sign-tip.t10 ,
.hero-art:has(.w-sign.k11:hover, .w-sign.k11:focus) .sign-tip.t11 {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
  .sign-tip { transition: none; }
}

/* decorative glows must never create sideways scrolling (clip keeps the sticky header working) */
html, body { overflow-x: clip; }

/* Desktop: the card opens inside the inner circle, the zodiac ring stays visible around it */
@media (min-width: 900px) {
  .sign-tip { top: 50%; transform: translate(-50%, -46%); width: min(62%, 290px); padding: 14px 16px; }
  .sign-tip p { font-size: 0.86rem; line-height: 1.5; margin-bottom: 6px; }
  .sign-tip .sign-tip-name { font-size: 1.25rem; }
  .hero-art:has(.w-sign.k0:hover, .w-sign.k0:focus) .sign-tip.t0 ,
  .hero-art:has(.w-sign.k1:hover, .w-sign.k1:focus) .sign-tip.t1 ,
  .hero-art:has(.w-sign.k2:hover, .w-sign.k2:focus) .sign-tip.t2 ,
  .hero-art:has(.w-sign.k3:hover, .w-sign.k3:focus) .sign-tip.t3 ,
  .hero-art:has(.w-sign.k4:hover, .w-sign.k4:focus) .sign-tip.t4 ,
  .hero-art:has(.w-sign.k5:hover, .w-sign.k5:focus) .sign-tip.t5 ,
  .hero-art:has(.w-sign.k6:hover, .w-sign.k6:focus) .sign-tip.t6 ,
  .hero-art:has(.w-sign.k7:hover, .w-sign.k7:focus) .sign-tip.t7 ,
  .hero-art:has(.w-sign.k8:hover, .w-sign.k8:focus) .sign-tip.t8 ,
  .hero-art:has(.w-sign.k9:hover, .w-sign.k9:focus) .sign-tip.t9 ,
  .hero-art:has(.w-sign.k10:hover, .w-sign.k10:focus) .sign-tip.t10 ,
  .hero-art:has(.w-sign.k11:hover, .w-sign.k11:focus) .sign-tip.t11 { transform: translate(-50%, -50%); }
}

/* in-page anchors (#pricing, #faq…) land below the sticky header */
.block[id] { scroll-margin-top: 84px; }

/* Pricing grouped by what is read: the chart · a relationship · places */
.product-groups { display: grid; gap: 34px; margin-top: 32px; }
.product-group { display: flex; flex-direction: column; gap: 16px; }
.group-title {
  color: var(--bm-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin: 0;
  text-transform: uppercase;
}
.group-title::after { background: linear-gradient(90deg, rgba(201, 168, 90, 0.5), transparent); content: ""; display: block; height: 1px; margin-top: 10px; }
.product-group .card { flex: 1; padding: 24px 22px 22px; }
.product-group .card h3 { font-size: 1.45rem; }
.product-group .price { font-size: 2.3rem; margin-bottom: 14px; padding-bottom: 14px; }
@media (min-width: 900px) {
  .product-groups { align-items: stretch; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-group .card.featured { transform: none; }
}
.card { position: relative; }
.card.is-new { border-color: rgba(143, 127, 214, 0.55); background: linear-gradient(180deg, rgba(143, 127, 214, 0.16), rgba(21, 18, 46, 0) 60%), var(--bm-night-2); }
.card-badge {
  background: rgba(143, 127, 214, 0.22);
  border: 1px solid rgba(143, 127, 214, 0.6);
  border-radius: 999px;
  color: var(--bm-text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  position: absolute;
  right: 18px;
  text-transform: uppercase;
  top: 18px;
}
.card-includes { font-size: 0.92rem; margin: 4px 0 18px; }
.card-includes li { color: var(--bm-text-2); }
.card.is-new p:not(.price):not(.stars):not(.muted) { flex: 0 0 auto; }
.card.is-new .card-includes { flex: 1; }

/* Desktop: one shared grid so cards in the same row have the same height and their buttons line up;
   the single relationship card spans both rows. */
@media (min-width: 900px) {
  .product-groups { column-gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; row-gap: 16px; }
  .product-group { display: contents; }
  .product-group:nth-child(1) > * { grid-column: 1; }
  .product-group:nth-child(2) > * { grid-column: 2; }
  .product-group:nth-child(3) > * { grid-column: 3; }
  .product-group > .group-title { grid-row: 1; }
  .product-group > .card:nth-of-type(1) { grid-row: 2; }
  .product-group > .card:nth-of-type(2) { grid-row: 3; }
  .product-group > .card:only-of-type { grid-row: 2 / span 2; }
  .product-group .card-actions { margin-top: auto; padding-top: 8px; }
}
.card.is-new h3 { padding-inline-end: 92px; }
/* languages always sit on their own row under the menu: ten codes never squeeze the menu or the button */
.nav .lang { order: 5; width: 100%; }

/* Guide links under “How it works”: one wrapping row of chips instead of a long column */
.guide-chips { align-items: center; border-top: 1px solid var(--bm-line-soft); display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; padding-top: 22px; }
.guide-chips .chips-title { color: var(--bm-gold); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; margin-inline-end: 6px; text-decoration: none; text-transform: uppercase; }
.guide-chips .chip {
  border: 1px solid var(--bm-line);
  border-radius: 999px;
  color: var(--bm-text-2);
  font-size: 0.88rem;
  padding: 6px 14px;
  text-decoration: none;
}
.guide-chips .chip:hover { border-color: rgba(201, 168, 90, 0.6); color: var(--bm-gold-light); }

/* English explainer video on the home page */
.video-block h2 { margin-bottom: 22px; }
.video-block video { aspect-ratio: 16 / 9; background: #0a0918; border: 1px solid var(--bm-line); border-radius: var(--bm-radius-lg); box-shadow: var(--bm-shadow); display: block; height: auto; width: 100%; }
