/* =========================================================================
   Oracul — landing page styles
   Cosmic / mystical theme mirrored from the mobile app:
   deep navy-violet space, gold accents, electric-purple glow.
   ========================================================================= */

:root {
  /* Core palette (from apps/mobile/src/theme/colors.js) */
  --bg: #081120;
  --bg-deep: #04060f;
  --ink-900: #0c0c2c;
  --ink-800: #160d30;
  --ink-700: #1a1140;

  --surface: rgba(20, 16, 52, 0.55);
  --surface-2: rgba(20, 16, 52, 0.38);
  --surface-glass: rgba(255, 255, 255, 0.04);
  --border: rgba(120, 110, 200, 0.22);
  --border-soft: rgba(120, 110, 200, 0.12);

  --text: #f5f7fb;
  --muted: #9bb0cf;
  --muted-2: #6f7ca6;

  --gold: #f1c27d;
  --gold-strong: #ffb454;
  --gold-soft: rgba(255, 180, 84, 0.14);

  --purple: #9b5cff;
  --purple-2: #8e2de2;
  --purple-glow: rgba(155, 92, 255, 0.45);

  /* Onboarding (FeatureIntroScreen) palette: cream-gold text, violet panels */
  --cream: #ffe2a8;
  --cream-line: rgba(255, 226, 168, 0.42);
  --lilac-line: rgba(216, 180, 254, 0.24);
  --panel: rgba(20, 11, 38, 0.72);
  --violet: #a855f7;

  --success: #61d095;
  --danger: #ff7a7a;

  --maxw: 1180px;
  --radius: 20px;
  --radius-sm: 14px;

  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-rune: "Cinzel", "Cormorant Garamond", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow-card: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 40px -6px var(--purple-glow);
}

/* ----------------------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
/* Firefox for Android could inflate text beyond the CSS sizes (the brand ran
   under the language switcher, 2026-10-31); the page is mobile-ready, so no
   inflation anywhere. The user's own text zoom still applies — the header is
   built to survive it (see .brand / .nav-cta). */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: none;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* ------------------------------------------------------ cosmic backdrop
   Three fixed layers: the ray-traced black hole (scripts/blackhole.js, WebGL2),
   the CSS nebula glows over it and the twinkling starfield canvas on top.
   The canvas fades in after its first frame; without WebGL2 it removes itself
   and the gradients carry the page. 100vh (not 100%) keeps the buffers stable
   while a mobile URL bar shows and hides.
   ⚠️ No backdrop-filter anywhere on the page: it cannot sample the separately
   composited WebGL layer (no visible blur), yet the compositor still copies
   and blurs behind the element on every canvas frame — pure jank. */
#hole {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -3;
  display: block;
  width: 100%;
  height: 100vh;
  opacity: 0;
  transition: opacity 1.4s ease;
}
#hole.is-ready {
  opacity: 1;
}
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(142, 45, 226, 0.22), transparent 60%),
    radial-gradient(900px 700px at 10% 12%, rgba(80, 60, 200, 0.16), transparent 58%),
    radial-gradient(1200px 900px at 50% 110%, rgba(241, 194, 125, 0.08), transparent 55%);
}
#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}
/* No CSS film grain: a full-screen mix-blend-mode overlay forced the whole
   page to be re-blended on every animation frame (2026-10-31); the WebGL
   composite already adds ±1/255 grain against banding. */
/* Reading progress, thin gold-to-violet line under the top edge. */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold-strong), var(--purple));
  pointer-events: none;
}

/* --------------------------------------------------------- layout utils */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}
section {
  position: relative;
  padding: clamp(64px, 9vw, 130px) 0;
}
.eyebrow {
  font-family: var(--font-rune);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before,
.eyebrow.center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow.center::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 54px;
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.04;
  margin: 16px 0 14px;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.section-head p {
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
}
.grad-text {
  background: linear-gradient(120deg, #ffe6b0 0%, var(--gold-strong) 40%, #d3a6ff 70%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* no shimmer animation: animating background-position repainted every
     gradient heading 60 times a second (2026-10-31, CPU load) */
}

/* -------------------------------------------------------------- buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
/* light sweep across the gold button on hover */
.btn-gold::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.btn-gold:hover::after {
  left: 130%;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn-gold {
  color: #2a1c05;
  background: linear-gradient(180deg, #ffd98a, var(--gold-strong));
  box-shadow: 0 12px 34px -10px rgba(255, 180, 84, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -10px rgba(255, 180, 84, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-ghost {
  color: var(--text);
  background: rgba(16, 12, 40, 0.6);
  border-color: rgba(255, 255, 255, 0.14);
}
.btn-ghost:hover {
  border-color: rgba(241, 194, 125, 0.6);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(241, 194, 125, 0.15), var(--shadow-glow);
  transform: translateY(-2px);
}
.btn-purple {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: 0 12px 34px -12px var(--purple-glow);
}
.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -10px var(--purple-glow);
}
.btn-block {
  width: 100%;
}

/* store badges */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 56px;
  padding: 0 18px 0 14px;
  border-radius: 10px;
  background: #000;
  border: 1px solid #a6a6a6;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Roboto, Arial, sans-serif;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.store-slot {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.store-soon {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
/* desktop: the badges sit in a row, so the caption goes under the App Store
   badge (column-reverse keeps the markup order «caption, badge» for phones) */
@media (min-width: 761px) {
  .store-slot { flex-direction: column-reverse; }
}
/* App Store: no iPhone version yet — visibly inactive */
.store-badge.is-disabled {
  opacity: 0.42;
  filter: grayscale(1);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}
.store-badge:hover {
  transform: translateY(-2px);
  border-color: #fff;
  box-shadow: 0 14px 34px -16px rgba(255, 180, 84, 0.5);
}
.store-badge svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.store-badge .s-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.store-badge .s-top {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}
.store-badge .s-top.s-caps {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.store-badge .s-main {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  white-space: nowrap;
}

/* ----------------------------------------------------------------- nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 8, 28, 0.62);
  box-shadow: 0 10px 40px -22px rgba(0, 0, 0, 0.9);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled .nav-inner {
  background: rgba(9, 8, 28, 0.86);
  border-color: rgba(241, 194, 125, 0.16);
}
.container.nav-inner {
  width: calc(100% - 28px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: var(--font-rune);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 19px;
  text-transform: uppercase;
}
/* With a big system font the name may not fit: it gets the room that is left
   and clips there, it never slides under the language switcher. */
.brand-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-inner > .brand {
  flex: 0 1 auto;
  margin-right: 10px;
}
.nav-inner > .nav-cta {
  flex: none;
}
.brand img,
.brand .brand-icon {
  flex: none;
}
.brand img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 10px var(--purple-glow));
}
.brand .brand-icon {
  border-radius: 50%;
  object-fit: cover;
  background: #03040c;
  border: 1px solid rgba(201, 157, 255, 0.34);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  position: relative;
  padding: 4px 1px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--purple));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.25s ease;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
/* Six links + language + CTA don't fit a narrow desktop in FR/DE/RO: keep each
   link on one line, tighten, and drop "Reviews"/"FAQ" (both stay in the page
   and the footer) until there is room. */
.nav-links a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1180px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13.5px; }
  .nav-links a[href$="#faq"] { display: none; }
  .nav-cta { gap: 10px; }
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.language-switcher { position: relative; }
.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px 8px 4px 4px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(9, 7, 29, .35);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
  list-style: none;
}
.language-trigger::-webkit-details-marker { display: none; }
.language-trigger::marker { content: ""; }
.language-trigger:hover, .language-switcher[open] .language-trigger {
  border-color: rgba(241, 194, 125, .45);
  background: rgba(255, 255, 255, .08);
  color: var(--gold-strong);
}
.language-trigger .flag, .language-option .flag {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #12152d;
  line-height: 1;
}
.flag svg { display: block; width: 100%; height: 100%; }
.current-flag .flag-art { display: none; }
.current-flag[data-lang="en"] .flag-art[data-flag="en"],
.current-flag[data-lang="fr"] .flag-art[data-flag="fr"],
.current-flag[data-lang="it"] .flag-art[data-flag="it"],
.current-flag[data-lang="de"] .flag-art[data-flag="de"],
.current-flag[data-lang="ro"] .flag-art[data-flag="ro"] { display: block; }
.language-chevron { width: 14px; height: 14px; transition: transform .2s ease; }
.language-switcher[open] .language-chevron { transform: rotate(180deg); }
.language-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 60;
  display: grid;
  gap: 3px;
  min-width: 106px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: rgba(13, 8, 38, .97);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .32);
}
.language-option {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  min-height: 38px;
  padding: 4px 7px 4px 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.language-option:hover, .language-option.is-active {
  border-color: rgba(241, 194, 125, .22);
  background: rgba(255, 255, 255, .06);
  color: var(--gold-strong);
}
.language-check { margin-left: auto; opacity: 0; color: var(--gold-strong); font-size: 13px; }
.language-option.is-active .language-check { opacity: 1; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  padding: 6px;
}
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 80px 14px auto 14px;
    flex-direction: column;
    gap: 0;
    background: rgba(9, 8, 28, 0.96);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 8px 20px 16px;
    transform: translateY(-130%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav-links a::after { display: none; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 16px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-cta .btn {
    display: none;
  }
}

/* ---------------------------------------------------------------- hero */
.hero {
  padding-top: clamp(120px, 16vw, 180px);
  padding-bottom: clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
/* soft dark pool behind the headline: the disk band crosses it */
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -12% -18% -10% -24%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(5, 3, 16, 0.62), rgba(5, 3, 16, 0.3) 60%, transparent);
  pointer-events: none;
}
.hero-copy h1,
.hero-copy p.lead {
  text-shadow: 0 2px 22px rgba(5, 3, 16, 0.75);
}
/* gradient text is transparent: a text-shadow would show through the glyphs
   and muddy the gold, so the accent gets a drop-shadow of its rendered shape */
.hero-copy h1 .grad-text {
  text-shadow: none;
  filter: drop-shadow(0 2px 14px rgba(5, 3, 16, 0.7));
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 20px 0 20px;
  text-wrap: balance;
}
.hero-copy p.lead {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
}
/* hero orb / phone visual */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
}
.orb-wrap {
  position: relative;
  width: min(420px, 78vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.orb-wrap .glow {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 92, 255, 0.55), rgba(142, 45, 226, 0.18) 55%, transparent 72%);
  filter: blur(8px);
  animation: pulse 5.5s ease-in-out infinite;
}
/* horar_ball.mp4 is a ball held by hands on black. The circle tapers to
   transparent over its outer ~50 px (eased stops, not a linear ramp), so the
   video dissolves into the black hole's photon ring and arch behind it
   instead of ending on a hard edge. The clip-path stays: Firefox Android can
   flash the rectangular video frame between frames without it. */
/* The ball is 15 % smaller than the box (93.6 % × 0.85) and sits lower in
   the shadow: 6 % of its own size = 20 px at the 420 px desktop box, scaled
   down with the box on phones. #orbWrap itself is unchanged, so the black
   hole (placed from #orbWrap) stays where it was. 30 % transparent: the hole
   shows through the ball. */
.hero-orb-mask {
  position: relative;
  width: 79.56%;
  aspect-ratio: 1;
  transform: translateY(6%);
  opacity: 0.7;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  clip-path: circle(50% at 50% 50%);
  -webkit-clip-path: circle(50% at 50% 50%);
  --orb-taper: 50px;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 calc(100% - var(--orb-taper)), rgba(0, 0, 0, 0.84) calc(100% - var(--orb-taper) * 0.75), rgba(0, 0, 0, 0.52) calc(100% - var(--orb-taper) * 0.5), rgba(0, 0, 0, 0.2) calc(100% - var(--orb-taper) * 0.25), transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 calc(100% - var(--orb-taper)), rgba(0, 0, 0, 0.84) calc(100% - var(--orb-taper) * 0.75), rgba(0, 0, 0, 0.52) calc(100% - var(--orb-taper) * 0.5), rgba(0, 0, 0, 0.2) calc(100% - var(--orb-taper) * 0.25), transparent 100%);
}
.hero-orb-mask .hero-orb-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
/* Rings and in-falling stars around the hole (built by scripts/blackhole.js
   inside #orbWrap). Sizes are fractions of the reference stage height
   (--hole-stage, = rim / 0.1019 of the ball box). Transforms/opacity only. */
.hole-deco {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: var(--hole-stage, 540%);
  height: var(--hole-stage, 540%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hole-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  /* only the top arc shows; the mask stays still while the line turns */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 30%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 30%);
}
.hole-ring-line {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(186, 156, 255, 0.3);
}
.hole-ring-line.spins {
  animation: spin 100s linear infinite;
}
.hole-ring-line i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(214, 196, 255, 0.75);
  box-shadow: 0 0 8px rgba(186, 156, 255, 0.7);
  transform: translate(-50%, -50%);
}
.hole-stars {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86.4%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  /* ring-shaped mask: nothing over the ball, nothing at the field edge */
  -webkit-mask-image: radial-gradient(closest-side, transparent 26%, #000 40%, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, transparent 26%, #000 40%, #000 72%, transparent 100%);
}
.hole-field {
  position: absolute;
  inset: 0;
  animation: spin 70s linear infinite reverse;
}
.hole-field b {
  position: absolute;
  width: 2px;
  height: 2px;
  margin: -1px 0 0 -1px;
  border-radius: 50%;
  background: #f1eaff;
  box-shadow: 0 0 4px rgba(200, 176, 255, 0.85);
  opacity: 0;
  animation-name: hole-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes hole-fall {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  8% { opacity: 1; }
  88% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.5); }
}
.hole-deco.is-paused .hole-ring-line,
.hole-deco.is-paused .hole-field,
.hole-deco.is-paused .hole-field b {
  animation-play-state: paused;
}
@media (max-width: 1247px) {
  .hole-rings { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hole-deco * { animation: none !important; }
  .hole-stars { display: none; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* static strip of the sections: centred, wraps on narrow screens */
.ticker {
  margin-top: 30px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ticker-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 8px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}
.ticker-item {
  position: relative;
  padding: 0 20px;
  white-space: nowrap;
  font-family: var(--font-rune);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(241, 194, 125, 0.78);
}
.ticker-item:not(:last-child)::after {
  content: "✦";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  letter-spacing: 0;
  color: rgba(155, 92, 255, 0.85);
}
@media (max-width: 620px) {
  .ticker-item { padding: 0 12px; font-size: 10.5px; letter-spacing: 0.16em; }
}

/* --------------------------------------------------------- feature slides
   «Что внутри» = the app's first-run tour (FeatureIntroScreen) laid out as a
   grid: per section a deck of real screens (FeatureIntroShowcase: gold-rimmed
   390×600 frames on two soft violet halos; with two screens the front one sits
   left of centre and the next peeks out on the right, turned 7°, 84 %, 62 %
   opacity), then icon + menu name, title, text and three pills — the same
   colours and sizes as the app. No card chrome: the slides sit on the page. */
.fi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 72px 36px;
}
/* a slide is one button: hover lifts it (and turns its deck), click zooms it */
.fi-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  border-radius: 24px;
  cursor: zoom-in;
  outline-offset: 8px;
}
.fi-slide.is-zoomed {
  visibility: hidden;
}
.fi-show {
  width: 100%;
  max-width: 380px;
}
.fi-stage {
  /* frame width as a share of the slide and a stage exactly one frame tall
     (frames are 390×600). One size for single screens and decks, so the
     titles of a grid row line up (the app uses .76 / .66 per slide). */
  --fw: 62%;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 390 / 372;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
}
.fi-stage.is-deck {
  /* horizontal swipes go to the deck (main.js), vertical ones scroll the page */
  touch-action: pan-y;
}
/* single screens get the room of the deck dots, so every caption lines up */
.fi-stage:not(.is-deck) {
  margin-bottom: 22px;
}
.fi-stage {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .fi-grid .fi-slide:hover .fi-stage {
    transform: translateY(-8px);
  }
  .fi-grid .fi-slide:hover .fi-shot {
    box-shadow: 0 18px 36px rgba(168, 85, 247, 0.6);
  }
}
.fi-stage::before,
.fi-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.fi-stage::before {
  width: calc(var(--fw) * 1.25);
  height: 78%;
  background: rgba(168, 85, 247, 0.12);
  filter: blur(14px);
}
.fi-stage::after {
  width: calc(var(--fw) * 0.95);
  height: 60%;
  background: rgba(192, 132, 252, 0.12);
  filter: blur(10px);
}
.fi-shot {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: var(--fw);
  height: 100%;
  object-fit: cover;
  object-position: top;
  border: 1px solid rgba(255, 226, 168, 0.42);
  border-radius: 7.5% / 4.875%;
  background: #070514;
  box-shadow: 0 10px 22px rgba(168, 85, 247, 0.45);
  transform: translateX(-50%);
  transition: transform 0.46s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}
.is-deck .fi-shot[data-slot="front"] {
  z-index: 3;
  transform: translateX(-60%);
}
.is-deck .fi-shot[data-slot="next"] {
  z-index: 2;
  opacity: 0.62;
  transform: translateX(-20%) rotate(7deg) scale(0.84);
}
.fi-dots {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 22px;
}
.fi-dots i {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 226, 168, 0.3);
  transition: width 0.3s ease, background 0.3s ease;
}
.fi-dots i.on {
  width: 18px;
  background: #ffe2a8;
}
.fi-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 380px;
  margin-top: 18px;
  text-align: center;
}
.fi-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #ffe2a8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}
.fi-kicker img {
  width: 24px;
  height: 24px;
  flex: none;
}
.fi-info h3 {
  color: #fffaf5;
  font-family: var(--font-body);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.016em;
  line-height: 30px;
  text-wrap: balance;
}
.fi-text {
  max-width: 360px;
  margin-top: 8px;
  color: #c4bad6;
  font-size: 14.5px;
  line-height: 21px;
}
.fi-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.fi-points li {
  padding: 5px 10px;
  border-radius: 13px;
  border: 1px solid rgba(255, 226, 168, 0.32);
  background: rgba(255, 226, 168, 0.08);
  color: #ffe2a8;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}
.fi-points li::before {
  content: "✦ ";
}
/* Link from a section slide to its own page (/family-horoscope/, /horary-astrology/). */
.fi-more {
  margin-top: 14px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-underline-offset: 3px;
}
.fi-more:hover,
.fi-more:focus-visible { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .fi-shot,
  .fi-stage { transition: none; }
}

/* zoomed slide: a clone of the clicked slide, centred over a dark violet
   backdrop (no backdrop-filter — see #hole). Wide screens lay it out as a big
   deck on the left and the copy on the right. */
.fi-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.fi-modal[hidden] {
  display: none;
}
.fi-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 46%, rgba(88, 40, 170, 0.32), transparent 70%),
    rgba(5, 3, 16, 0.92);
  cursor: zoom-out;
}
.fi-modal-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.fi-modal-slide {
  pointer-events: auto;
  cursor: default;
  transform-origin: 50% 50%;
}
.fi-modal-slide .fi-show,
.fi-modal-slide .fi-info {
  max-width: none;
}
.fi-modal-slide .fi-stage.is-deck {
  cursor: pointer;
}
.fi-modal-slide .fi-info h3 {
  font-size: 27px;
  line-height: 32px;
}
.fi-modal-slide .fi-text {
  max-width: 420px;
  font-size: 15.5px;
  line-height: 23px;
}
.fi-modal-slide.is-wide {
  flex-direction: row;
  align-items: center;
  gap: 56px;
}
.fi-modal-slide.is-wide .fi-show {
  width: calc(var(--fi-stage-h, 600px) * 390 / 372);
}
.fi-modal-slide.is-wide .fi-info {
  width: 420px;
  margin-top: 0;
  align-items: flex-start;
  text-align: left;
}
.fi-modal-slide.is-wide .fi-kicker {
  justify-content: flex-start;
  font-size: 14px;
  margin-bottom: 12px;
}
.fi-modal-slide.is-wide .fi-kicker img {
  width: 30px;
  height: 30px;
}
.fi-modal-slide.is-wide .fi-info h3 {
  font-size: 38px;
  line-height: 44px;
}
.fi-modal-slide.is-wide .fi-text {
  max-width: none;
  margin-top: 14px;
  font-size: 17px;
  line-height: 26px;
}
.fi-modal-slide.is-wide .fi-points {
  justify-content: flex-start;
  gap: 9px;
  margin-top: 20px;
}
.fi-modal-slide.is-wide .fi-points li {
  padding: 7px 13px;
  border-radius: 15px;
  font-size: 14px;
}
.fi-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0 0 3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 226, 168, 0.48);
  background: rgba(18, 11, 40, 0.84);
  box-shadow: 0 0 16px rgba(180, 118, 255, 0.32);
  color: #ffe7ad;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.fi-modal-close:hover {
  background: rgba(46, 26, 92, 0.92);
  transform: rotate(90deg);
}

/* ---------------------------------------------------------- tool panels */
.tool {
  position: relative;
}
.tool-card {
  position: relative;
  border: 1px solid var(--lilac-line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(22, 13, 48, 0.84), rgba(8, 8, 24, 0.86));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
/* gold-to-violet hairline along the top edge */
.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 194, 125, 0.8), rgba(155, 92, 255, 0.8), transparent);
  pointer-events: none;
}
.tool-card-inner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
}
/* Натальная карта: колонка ввода и колонка результата стоят друг под другом —
   колесо, таблица и разбор длинные, и рядом с формой половина экрана пустовала.
   Сама карточка при этом уже полосы контента: во всю ширину вертикальный блок
   выглядел растянутым. */
.tool-card.stacked {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.tool-card.stacked .tool-card-inner {
  grid-template-columns: 1fr;
}
.tool-card.stacked .tool-form {
  border-right: 0;
  border-bottom: 1px solid var(--border-soft);
}
/* Рамку оставляем во всю ширину, а поля держим читаемой колонкой по центру. */
.tool-card.stacked .tool-form > * {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
/* .btn — inline-flex, у инлайнового бокса `margin: auto` не центрирует: кнопка
   «Рассчитать карту» уезжала влево и была шире полей. Делаем её блочной. */
.tool-card.stacked .tool-form > .btn {
  display: flex;
}
.tool-card.stacked .tool-result > * {
  width: 100%;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.tool-form {
  padding: clamp(26px, 3.4vw, 44px);
  border-right: 1px solid var(--border-soft);
}
.tool-result {
  padding: clamp(26px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(600px 400px at 80% -10%, rgba(155, 92, 255, 0.16), transparent 60%);
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
  font-weight: 600;
}
.field input,
.field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(6, 8, 22, 0.7);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder {
  color: var(--muted-2);
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.18);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field select option {
  background: #11102a;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Поля даты/времени/места — перенос формы профиля рождения из приложения
   (components/BirthProfileForm.js, вариант "cosmic"): подпись внутри рамки,
   крупное значение и фиолетовая иконка-пикер справа.
   -------------------------------------------------------------------------- */
.app-datetime {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.app-field {
  min-width: 0;
}
.app-field-date {
  flex: 1.15;
}
.app-field-time {
  flex: 0.85;
}
.app-shell {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: rgba(9, 13, 31, 0.72);
  padding: 10px 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.app-shell:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.18);
}
.app-shell.invalid {
  border-color: #ff7a7a;
}
.app-shell-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.app-field-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 15px;
  font-weight: 600;
}
.app-field-input {
  width: 100%;
  min-height: 28px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
}
.app-field-input:focus {
  outline: none;
}
.app-picker {
  position: relative;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.app-picker svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #a855f7;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Нативный пикер лежит прозрачным слоем поверх иконки: клик по ней открывает
   системный календарь/часы в любом браузере, без showPicker(). */
.app-native-picker {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  opacity: 0;
  cursor: pointer;
}
.app-native-picker::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

/* Поиск места рождения — то же поведение, что в приложении: подсказки из
   /api/lookup/places и кнопка «Определить место». */
.app-place {
  position: relative;
}
.place-suggest {
  margin-top: 8px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: rgba(13, 18, 40, 0.96);
  overflow: hidden;
}
.place-suggest .ps-title {
  padding: 13px 14px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.place-suggest .ps-info {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}
.place-suggest button {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.place-suggest button:hover,
.place-suggest button:focus-visible {
  background: rgba(139, 92, 246, 0.14);
}
.ps-name {
  font-size: 14px;
  line-height: 20px;
}
.ps-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.app-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.56);
  background: rgba(34, 20, 70, 0.54);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.16);
  color: #c4a3ff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.app-secondary[disabled] {
  opacity: 0.6;
  cursor: default;
}
.app-secondary svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #a855f7;
  stroke-width: 2;
  stroke-linecap: round;
}
/* На узком экране в паре «дата + время» остаётся мало места: ужимаем зону
   иконки и шрифты, чтобы подпись не переносилась, а значение не обрезалось. */
@media (max-width: 420px) {
  .app-shell {
    padding: 10px 11px;
    gap: 4px;
  }
  .app-picker {
    width: 34px;
  }
  .app-field-label {
    font-size: 11.5px;
    white-space: nowrap;
  }
  .app-field-input {
    font-size: 15px;
  }
}
.app-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}
.app-hint:empty {
  display: none;
}
.field-error {
  margin: 6px 0 0;
  color: #ff7a7a;
  font-size: 13px;
  line-height: 18px;
}
.field-error:empty {
  display: none;
}
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.person-block h4 {
  font-family: var(--font-rune);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 14px;
}

/* natal wheel + summary */
.wheel-holder {
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.wheel-holder svg {
  width: 100%;
  /* На 20% крупнее прежних 400px: колесо — главное на экране результата. */
  max-width: 480px;
  height: auto;
}

/* Сцена натального колеса. Раньше здесь была круглая тёмная подложка под зум:
   контейнер прямоугольный, а `border-radius: 50%` растягивал его в эллипс —
   на широком экране это читалось как «глаз» вокруг карты. Подложки и зума
   больше нет, колесо просто лежит на фоне карточки. */
.wheel-stage {
  margin-bottom: 14px;
}
.wheel-holder [data-planet] {
  cursor: pointer;
}
.wheel-hint {
  margin: 8px auto 0;
  max-width: 340px;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  color: rgba(196, 210, 235, 0.78);
}
.wheel-hint.active {
  color: var(--text);
}
.wheel-caption {
  text-align: center;
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 14px;
}
.wheel-caption b {
  color: var(--text);
}
.tool-status {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 28px 0;
}
.tool-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 17px;
  color: var(--muted-2);
}

/* «Объяснение простым языком» — блок из натальной вкладки приложения */
.plain-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.plain-block > h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.plain-section {
  margin-top: 16px;
}
.plain-section h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
.plain-section p {
  font-size: 14px;
  line-height: 22px;
  color: rgba(232, 224, 248, 0.86);
  margin-bottom: 8px;
}
/* Спиннер ожидания ИИ — веб-версия AiLoadingBlock/GlowSpinner приложения */
.ai-loading {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
}
.glow-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(125, 224, 255, 0.16);
  border-top-color: #7de0ff;
  border-right-color: #c99dff;
  box-shadow: 0 0 18px rgba(125, 224, 255, 0.35);
  animation: glow-spin 1s linear infinite;
}
@keyframes glow-spin {
  to {
    transform: rotate(360deg);
  }
}
.ai-loading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .glow-spinner {
    animation-duration: 3s;
  }
}
.result-empty {
  margin: auto;
  text-align: center;
  color: var(--muted-2);
  max-width: 320px;
}
.result-empty .big-glyph {
  font-family: var(--font-rune);
  font-size: 52px;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 12px;
}
.placements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.placement {
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  padding: 11px 12px;
  background: var(--surface-glass);
  text-align: center;
}
.placement .who {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.placement .sign {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--gold);
  margin-top: 2px;
}
.placement .deg {
  font-size: 11px;
  color: var(--muted-2);
}
.planet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.planet-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  font-weight: 600;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-soft);
}
.planet-table td {
  padding: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.planet-table td .pg {
  color: var(--gold);
  font-family: var(--font-rune);
  margin-right: 7px;
}
/* natal position table — колонки как в приложении: планета, градус, знак, дом */
.natal-table th.c,
.natal-table td.c {
  text-align: center;
}
.natal-table td .sg {
  color: var(--gold);
  font-family: var(--font-rune);
  margin-right: 4px;
}
.natal-table td .pname {
  color: var(--text);
}
.natal-table td .retro {
  color: var(--muted-2);
  font-size: 9px;
  vertical-align: super;
  margin: 0 4px 0 -4px;
}
.natal-table .angle-row td {
  color: var(--muted);
}
.natal-table td .pg.angle {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-strong);
}

/* compatibility score ring */
.score-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
}
.score-ring {
  position: relative;
  width: 132px;
  height: 132px;
  flex: none;
}
.score-ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.score-ring .val {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  flex-direction: column;
  font-family: var(--font-display);
}
.score-ring .val b {
  font-size: 40px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.score-ring .val span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.score-verdict h4 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 4px;
}
.score-verdict p {
  color: var(--muted);
  font-size: 14px;
}
.bars {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 8px;
}
.match-panel {
  margin: 20px 0 0;
  padding: 19px;
  border: 1px solid rgba(201, 157, 255, 0.28);
  border-radius: 20px;
  background: rgba(15, 12, 44, 0.48);
}
.match-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
  color: #fff3cf;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.match-panel-head .match-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(155, 92, 255, 0.2);
  color: #e8c5ff;
  font-family: var(--font-body);
  font-size: 16px;
}
.bar-top .bar-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.bar-label i { color: var(--gold); font-style: normal; }
.aspects-list { display: grid; gap: 9px; }
.aspect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.aspect-row:last-child { border-bottom: 0; padding-bottom: 0; }
.aspect-tag {
  flex: none;
  padding: 4px 8px;
  border: 1px solid rgba(97, 208, 149, 0.36);
  border-radius: 999px;
  color: var(--success);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.aspect-tag.tension { border-color: rgba(255, 143, 177, 0.38); color: #ffafc7; }
.match-insights { display: grid; gap: 12px; margin-top: 20px; }
.match-insight {
  padding: 18px 19px;
  border: 1px solid rgba(201, 157, 255, 0.28);
  border-radius: 20px;
  background: rgba(15, 12, 44, 0.48);
}
.match-insight h5 {
  margin: 0 0 8px;
  color: #fff3cf;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}
.match-insight p { color: var(--muted); font-size: 13.5px; line-height: 1.58; }
.bar-row .bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}
.bar-row .bar-top span:first-child {
  color: var(--muted);
}
.bar-row .bar-top span:last-child {
  color: var(--gold);
  font-weight: 700;
}
.bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  width: 0;
  background: linear-gradient(90deg, var(--purple), var(--gold-strong));
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.tool-cta {
  margin-top: auto;
  padding-top: 18px;
}

/* ---------------------------------------------------------- how it works */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
/* connecting line through the step numbers */
.steps::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 194, 125, 0.55), rgba(155, 92, 255, 0.55), transparent);
  pointer-events: none;
}
.step {
  position: relative;
  border: 1px solid var(--lilac-line);
  border-radius: 24px;
  padding: 32px 26px 30px;
  background: linear-gradient(180deg, rgba(20, 11, 38, 0.82), rgba(9, 8, 28, 0.86));
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--cream-line);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 600;
  color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------------------------------------------------------------- faq */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  padding: 0 22px;
  border: 1px solid var(--lilac-line);
  border-radius: 18px;
  background: rgba(12, 9, 32, 0.74);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.faq-item.open {
  border-color: var(--cream-line);
  background: rgba(18, 12, 44, 0.7);
}
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  text-align: left;
  padding: 20px 0;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 600;
  font-family: var(--font-display);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.faq-q .ic {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--gold);
  transition: transform 0.3s ease, background 0.3s ease;
  font-size: 18px;
}
.faq-item.open .faq-q .ic {
  transform: rotate(45deg);
  background: var(--gold-soft);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p {
  color: var(--muted);
  padding: 0 0 20px;
  font-size: 15px;
}

/* ------------------------------------------------------------ final cta */
.cta-final {
  text-align: center;
}
.cta-panel {
  position: relative;
  border: 1px solid var(--lilac-line);
  border-radius: 36px;
  padding: clamp(40px, 6vw, 76px) 26px;
  overflow: hidden;
  background:
    radial-gradient(800px 420px at 50% -10%, rgba(155, 92, 255, 0.3), transparent 60%),
    linear-gradient(180deg, rgba(7, 5, 20, 0.55), rgba(7, 5, 20, 0.82)),
    url("../assets/img/app/back-space.webp") center / cover no-repeat #070514;
  box-shadow: 0 50px 120px -70px rgba(0, 0, 0, 0.95);
}
.cta-panel h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.04;
  margin-bottom: 16px;
}
.cta-panel p {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 30px;
  font-size: clamp(15px, 1.5vw, 18px);
}
.cta-panel .stores {
  justify-content: center;
}
/* Three real app screenshots (576×1280, with their own status bar) in CSS
   phone shells, fanned out; app icon over the right one. */
.cta-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: min(640px, 100%);
  margin: 0 auto clamp(36px, 5vw, 56px);
  padding-top: 12px;
}
.phone {
  position: relative;
  flex: none;
  width: 34%;
  /* screen 576×1280 inside a 2.6 % bezel */
  aspect-ratio: 9 / 19.43;
  padding: 2.6%;
  border-radius: 12% / 5.8%;
  background: linear-gradient(160deg, #2a2347, #0a0818 60%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 34px 70px -26px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.phone::before {
  /* front camera island */
  content: "";
  position: absolute;
  z-index: 3;
  top: 2.2%;
  left: 50%;
  width: 7%;
  height: 3.2%;
  border-radius: 999px;
  background: #05040c;
  transform: translateX(-50%);
}
.phone.main {
  z-index: 2;
  width: 40%;
  margin: 0 -4%;
  box-shadow: 0 40px 80px -26px rgba(0, 0, 0, 0.95), 0 0 60px -10px rgba(155, 92, 255, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.phone.side {
  z-index: 1;
  opacity: 0.94;
  transform: translateY(7%) rotate(-7deg) scale(0.94);
}
.phone.side.right {
  transform: translateY(7%) rotate(7deg) scale(0.94);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10.4% / 5%;
  overflow: hidden;
  background: #070514 url("../assets/img/app/back-space.webp") center top / cover no-repeat;
}
.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.cta-app-icon {
  position: absolute;
  z-index: 3;
  right: 10%;
  bottom: -6%;
  width: 20%;
  max-width: 120px;
  height: auto;
  border-radius: 23%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.9), 0 0 32px var(--purple-glow);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-app-icon { animation: none; }
}

/* ------------------------------------------------------------- footer */
.footer {
  position: relative;
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 40px;
  background: rgba(4, 6, 15, 0.88);
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 194, 125, 0.6), rgba(155, 92, 255, 0.6), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
.footer .brand {
  margin-bottom: 14px;
}
.footer-about p {
  color: var(--muted);
  font-size: 14px;
  max-width: 320px;
}
.footer-col h5 {
  font-family: var(--font-rune);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--text);
}
/* Публичные реквизиты разработчика: имя, страна, P.IVA, почта. */
.footer-identity {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.footer-identity p {
  margin: 0;
}
/* «P.IVA» не отрывается от номера, имя и роль — каждое целиком. */
.footer-identity span {
  white-space: nowrap;
}
.footer-identity a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-identity a:hover {
  color: var(--text);
}
.footer-identity-brand {
  font-family: var(--font-rune);
  letter-spacing: 0.1em;
  color: var(--gold);
}
.footer-identity-note {
  margin-top: 6px !important;
  color: var(--muted-2);
  font-size: 12px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted-2);
  font-size: 13px;
}

/* ------------------------------------------------------- scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .glow { animation: none !important; }
}

/* ----------------------------------------------------------- responsive */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; min-height: 320px; }
  .tool-card-inner { grid-template-columns: 1fr; }
  .tool-form { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* slides: 3 columns → 2 → a swipeable row on phones, like the app tour */
@media (max-width: 1023px) {
  .fi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 28px; }
}
@media (max-width: 679px) {
  /* phones: one slide under another in the normal page scroll — no horizontal
     carousel (its inner scroll caught the finger and the page stopped scrolling) */
  .fi-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .fi-slide { width: 100%; max-width: 400px; margin: 0 auto; }
  .fi-info h3 { font-size: 23px; line-height: 28px; }
}

@media (max-width: 920px) {
  .steps::before { display: none; }
}
@media (max-width: 620px) {
  .duo { grid-template-columns: 1fr; }
  .placements { grid-template-columns: repeat(3, 1fr); }
  .score-wrap { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }

  .cta-phones { width: 100%; }
  .match-panel { padding: 16px; }
  .aspect-row { align-items: flex-start; }
}

/* ------------------------------------------------------------- phones */
@media (max-width: 760px) {
  /* the ball (and the black hole, which blackhole.js sizes from #orbWrap)
     30 % smaller than before, so the hole's edges are on screen */
  .orb-wrap { width: min(294px, 54.6vw); }
  .hero-visual { min-height: 250px; }
  .hero-orb-mask { --orb-taper: 35px; }
  /* a long eyebrow (big system font) wraps inside itself, centred, the dash stays beside it */
  .eyebrow { text-align: center; }
}
@media (max-width: 480px) {
  .container.nav-inner { padding: 0 6px 0 12px; }
  .brand { gap: 9px; font-size: 17px; letter-spacing: 0.14em; }
  .brand .brand-icon { width: 34px; height: 34px; }
  .nav-cta { gap: 6px; }
}
@media (max-width: 380px) {
  .brand { font-size: 15px; letter-spacing: 0.12em; }
  .current-lang-code { display: none; }
}

/* --------------------------------------------------- accessibility focus */
:focus-visible {
  outline: 2px solid var(--gold-strong);
  outline-offset: 3px;
  border-radius: 8px;
}
.btn:focus-visible,
.store-badge:focus-visible {
  outline-offset: 4px;
}

/* ----------------------------------------------- sticky mobile download bar */
.mobile-dl {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 9, 23, 0.94);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, 0.7);
  transform: translateY(130%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-dl.show {
  transform: translateY(0);
}
.mobile-dl img {
  width: 34px;
  height: 34px;
  flex: none;
  filter: drop-shadow(0 0 8px var(--purple-glow));
}
.mobile-dl .md-txt {
  flex: 1;
  min-width: 0;
}
.mobile-dl .md-txt b {
  display: block;
  font-family: var(--font-rune);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mobile-dl .md-txt span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-dl .btn {
  padding: 11px 22px;
  font-size: 14px;
  flex: none;
}
@media (max-width: 760px) {
  .mobile-dl {
    display: flex;
  }
  .footer {
    padding-bottom: 96px; /* clear the sticky bar */
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-dl {
    transition: none;
  }
}

/* =========================================================================
   Zodiac section: landing strip (#zodiac) + /zodiac/ pages (zodiac/*.html,
   generated by tools/build-zodiac.cjs from scripts/zodiac/render.js).
   ========================================================================= */
.zd-main ul { padding-left: 0; }
.zd-el-fire { --el: #ff9a62; }
.zd-el-earth { --el: #8fd39b; }
.zd-el-air { --el: #9fd0ff; }
.zd-el-water { --el: #a99bff; }

/* landing strip */
.zd-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.zd-tile {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(241, 194, 125, 0.24);
  background: #0b0820;
  aspect-ratio: 2 / 3;
  box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.9);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
/* one hairline frame inset into every tile — the painted frames were cropped
   out of the art so the twelve cards share the same rim */
.zd-tile::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 2;
  border-radius: 12px;
  border: 1px solid rgba(241, 194, 125, 0.34);
  pointer-events: none;
}
.zd-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.zd-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(6, 5, 20, 0.92));
}
.zd-tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #fff3d6;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
.zd-tile:hover { border-color: rgba(241, 194, 125, 0.65); box-shadow: 0 22px 50px -20px rgba(155, 92, 255, 0.85), 0 0 0 1px rgba(241, 194, 125, 0.2); }
.zd-tile:hover img { transform: scale(1.05); }
.zd-strip-cta { display: flex; justify-content: center; margin-top: 30px; }
@media (min-width: 620px) { .zd-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 980px) { .zd-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; } }

/* pages */
.zd-main section { padding: 0; }
.zd-main .zd-hero { padding: clamp(104px, 13vw, 140px) 0 34px; }
.zd-main .zd-grid-section,
.zd-main .zd-elements,
.zd-main .zd-article,
.zd-main .zd-more { padding: 30px 0 clamp(40px, 6vw, 70px); }
.zd-main .zd-cta { padding: 20px 22px clamp(40px, 6vw, 70px); }
.zd-hub-hero { text-align: center; }
.zd-hub-hero h1,
.zd-sign-intro h1 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.01em;
}
.zd-hub-hero h1 { font-size: clamp(40px, 7vw, 76px); margin: 16px 0 16px; }
.zd-lead { color: var(--muted); max-width: 680px; margin: 0 auto; font-size: clamp(15px, 1.5vw, 18px); }
.zd-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 22px;
}
.zd-hub-hero .zd-crumbs { justify-content: center; }
.zd-crumbs a { color: var(--muted); }
.zd-crumbs a:hover { color: var(--gold); }

.zd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 640px) { .zd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .zd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.zd-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(155deg, rgba(35, 24, 74, 0.74), rgba(9, 10, 27, 0.94));
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.zd-card:hover { transform: translateY(-6px); border-color: rgba(241, 194, 125, 0.45); box-shadow: 0 22px 50px -22px rgba(155, 92, 255, 0.8); }
.zd-card-img { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: #0b0820; }
.zd-card-img::after { content: ""; position: absolute; inset: 8px; border-radius: 12px; border: 1px solid rgba(241, 194, 125, 0.32); pointer-events: none; }
.zd-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.zd-card:hover .zd-card-img img { transform: scale(1.05); }
.zd-card-body { display: flex; flex-direction: column; gap: 3px; padding: 13px 15px 16px; }
.zd-card-name { font-family: var(--font-display); font-weight: 600; font-size: 23px; line-height: 1.1; }
.zd-glyph { color: var(--gold); }
.zd-card-dates { color: var(--muted); font-size: 13px; }
.zd-card-el {
  align-self: flex-start;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--el);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.zd-el-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .zd-el-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .zd-el-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.zd-el-card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--el);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  background: var(--surface);
}
.zd-el-card h3 { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--el); }
.zd-el-card p { color: var(--muted); font-size: 14.5px; }
.zd-el-signs { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 6px 0 10px; }
.zd-el-signs a { color: var(--text); font-weight: 600; font-size: 14px; }
.zd-el-signs a:hover { color: var(--gold); }

.zd-narrow { max-width: 820px; }
.zd-article h2,
.zd-block h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.1;
  margin-bottom: 14px;
}
.zd-article p,
.zd-block p { color: #d3dbee; font-size: 16.5px; line-height: 1.75; margin-bottom: 14px; }

/* sign hero */
.zd-sign-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 860px) { .zd-sign-grid { grid-template-columns: minmax(260px, 380px) 1fr; gap: 52px; } }
.zd-sign-art {
  position: relative;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(241, 194, 125, 0.35);
  box-shadow: 0 30px 80px -30px rgba(155, 92, 255, 0.9), 0 0 0 1px rgba(155, 92, 255, 0.15);
}
.zd-sign-art img { width: 100%; height: auto; }
.zd-sign-art::after { content: ""; position: absolute; inset: 10px; border-radius: 16px; border: 1px solid rgba(241, 194, 125, 0.36); pointer-events: none; }
@media (max-width: 859px) { .zd-sign-art { max-width: 260px; } }
.zd-sign-intro h1 { font-size: clamp(46px, 7vw, 84px); margin: 12px 0 4px; }
.zd-dates { color: var(--gold); font-weight: 700; font-size: 17px; letter-spacing: 0.02em; }
.zd-motto { font-family: var(--font-display); font-style: italic; font-size: 22px; color: #e9ddff; margin: 10px 0 16px; }
.zd-keywords { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 20px; }
.zd-keywords li {
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #f7d38e;
  background: var(--gold-soft);
  border: 1px solid rgba(241, 194, 125, 0.3);
}
.zd-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
@media (min-width: 560px) { .zd-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.zd-facts div { border: 1px solid var(--border-soft); border-radius: 14px; padding: 10px 13px; background: var(--surface-2); }
.zd-facts dt { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.zd-facts dd { font-weight: 600; font-size: 14.5px; }
.zd-summary { color: #d3dbee; font-size: 17px; line-height: 1.7; }

/* article body */
.zd-body { padding-bottom: 20px; }
.zd-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 26px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 34px;
}
.zd-toc a {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-glass);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.zd-toc a:hover { color: var(--text); border-color: var(--purple); }
.zd-main .zd-block { margin-bottom: 38px; scroll-margin-top: 90px; }
.zd-block h3 { font-family: var(--font-display); font-size: 23px; font-weight: 600; margin: 18px 0 10px; }
.zd-main .zd-traits { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .zd-main .zd-traits { grid-template-columns: 1fr 1fr; } }
.zd-trait { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); }
.zd-trait h3 { margin-top: 0; }
.zd-trait ul { list-style: none; display: grid; gap: 8px; }
.zd-trait li { position: relative; padding-left: 26px; color: #d3dbee; font-size: 15px; line-height: 1.5; }
.zd-trait li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.zd-trait-plus { border-top: 3px solid var(--success); }
.zd-trait-plus li::before { content: "✓"; color: var(--success); }
.zd-trait-minus { border-top: 3px solid var(--danger); }
.zd-trait-minus li::before { content: "–"; color: var(--danger); }
.zd-jobs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.zd-jobs li { padding: 7px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; }
.zd-inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin: 6px 0 40px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(155, 92, 255, 0.4);
  background: radial-gradient(500px 200px at 0% 0%, rgba(155, 92, 255, 0.25), transparent 70%), var(--surface);
}
.zd-inline-cta p { flex: 1 1 320px; margin: 0; color: #e4e9f6; font-size: 15.5px; line-height: 1.6; }
.zd-compat { display: grid; grid-template-columns: 1fr; gap: 8px 30px; }
@media (min-width: 640px) { .zd-compat { grid-template-columns: 1.4fr 1fr; } }
.zd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.zd-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 15px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(97, 208, 149, 0.45);
  background: rgba(97, 208, 149, 0.1);
  transition: transform 0.2s ease;
}
.zd-chip:hover { transform: translateY(-2px); }
.zd-chips-hard .zd-chip { border-color: rgba(255, 122, 122, 0.45); background: rgba(255, 122, 122, 0.08); }
.zd-block .zd-note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.zd-note a { color: var(--gold); font-weight: 700; }
.zd-advice {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 26px);
  font-style: italic;
  line-height: 1.45;
  color: #f3e6ff;
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 22px;
}

/* app CTA */
.zd-cta-panel {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 34px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: clamp(26px, 4vw, 48px);
  background:
    radial-gradient(700px 380px at 20% -20%, rgba(155, 92, 255, 0.3), transparent 62%),
    linear-gradient(180deg, rgba(22, 13, 48, 0.85), rgba(8, 8, 24, 0.9));
}
.zd-cta-icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 0 40px -6px var(--purple-glow); }
.zd-cta-copy { flex: 1 1 320px; }
.zd-cta-copy h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4vw, 46px); line-height: 1.06; margin-bottom: 12px; }
.zd-cta-copy p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.zd-cta-list { list-style: none; display: grid; gap: 6px; margin-bottom: 22px; }
.zd-cta-list li { position: relative; padding-left: 24px; font-weight: 600; }
.zd-cta-list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.zd-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* prev / next */
.zd-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.zd-pager a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: border-color 0.2s ease;
}
.zd-pager a:hover { border-color: var(--gold); }
.zd-pager small { color: var(--muted-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.zd-pager b { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.zd-pager .zd-pager-next { text-align: right; }
.zd-pager .zd-pager-all { align-items: center; font-weight: 700; color: var(--gold); font-size: 14px; }
@media (max-width: 560px) {
  .zd-pager { grid-template-columns: 1fr 1fr; }
  .zd-pager .zd-pager-all { grid-column: 1 / -1; grid-row: 2; }
  .zd-article p, .zd-block p { font-size: 16px; }
}
.nav-links a[aria-current="page"] { color: var(--gold); }

/* /family-horoscope/ (tools/build-family.cjs): zodiac page frame + the tree
   demo video, numbered steps and a grid of app screens. */
.zd-main .fh-demo,
.zd-main .fh-screens { padding: 30px 0 clamp(40px, 6vw, 70px); }
.fh-hero-cta { display: flex; justify-content: center; margin-top: 26px; }
.fh-demo-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; justify-items: center; }
@media (min-width: 860px) { .fh-demo-grid { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 56px; justify-items: start; } }
.fh-demo-frame,
.fh-shot img {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--cream-line);
  background: #070514;
  box-shadow: 0 24px 60px -24px rgba(168, 85, 247, 0.85), 0 0 0 1px rgba(155, 92, 255, 0.12);
}
.fh-demo-frame { width: 100%; max-width: 340px; aspect-ratio: 624 / 960; }
.fh-demo-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.fh-demo-copy { min-width: 0; max-width: 560px; }
.fh-demo-copy h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; margin-bottom: 14px; }
.fh-demo-copy p { color: #d3dbee; font-size: 16.5px; line-height: 1.75; }
.fh-steps { list-style: none; counter-reset: fh-step; display: grid; gap: 14px; margin: 8px 0 0; padding: 0; }
.fh-steps li {
  counter-increment: fh-step;
  position: relative;
  padding: 18px 20px 16px 66px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.fh-steps li::before {
  content: counter(fh-step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #2a1c05;
  background: var(--gold);
}
.fh-steps h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.fh-steps p { margin: 0; }
.fh-shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 26px 16px; }
.fh-shot { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fh-shot img { width: 100%; height: auto; max-width: 100%; }
.fh-shot figcaption { display: flex; flex-direction: column; gap: 4px; }
.fh-shot strong { color: var(--text); font-size: 15.5px; }
.fh-shot span { color: var(--muted); font-size: 14px; line-height: 1.55; }
.fh-list { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.fh-list li { position: relative; padding-left: 24px; color: #d3dbee; font-size: 16.5px; line-height: 1.65; }
.fh-list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.fh-faq h3 { font-size: 18.5px; font-weight: 700; margin: 22px 0 8px; color: var(--text); }

/* /horary-astrology/ (tools/build-horary.cjs): the family page frame, two app
   screens side by side and the houses / answer lists. */
.hr-shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); justify-content: center; gap: 26px clamp(14px, 3vw, 34px); }
.hr-subtitle { font-size: 20px; font-weight: 700; color: var(--text); margin: 26px 0 12px; }
.zd-article .hr-note { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 30px; }
.zd-article ul + h2,
.zd-article .hr-note + h2 { margin-top: 34px; }

/* /zodiac/ hub: sign by date of birth (render.js finder(), zodiac.js) and the
   dates table in "How to find your zodiac sign". */
.zd-main .zd-finder { padding: 0 0 clamp(34px, 5vw, 56px); }
.zd-finder-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 3.4vw, 32px) clamp(16px, 3.4vw, 32px);
  background: linear-gradient(155deg, rgba(35, 24, 74, 0.62), rgba(9, 10, 27, 0.92));
  text-align: center;
}
.zd-finder-panel h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.12; margin-bottom: 8px; }
.zd-finder-lead { color: var(--muted); max-width: 560px; margin: 0 auto 20px; font-size: 15px; line-height: 1.6; }
.zd-finder-form { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 12px; }
.zd-finder-field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.zd-finder-field span { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.zd-finder-field select {
  min-height: 48px;
  padding: 0 38px 0 14px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(6, 8, 22, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23f1c27d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.zd-finder-day select { width: 96px; }
.zd-finder-month select { width: 178px; }
.zd-finder-field select:focus-visible { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.22); }
.zd-finder-field select option { background: #11102a; color: var(--text); }
.zd-finder-form .btn { min-height: 48px; }
.zd-finder-result { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 22px; text-align: left; }
.zd-finder-result[hidden] { display: none; }
.zd-finder-card { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 112px; color: var(--text); text-align: center; }
.zd-finder-card img { width: 96px; height: 144px; object-fit: cover; border-radius: 12px; border: 1px solid rgba(241, 194, 125, 0.4); box-shadow: 0 16px 36px -18px rgba(155, 92, 255, 0.9); }
.zd-finder-card-name { margin-top: 6px; font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.1; }
.zd-finder-card-dates { color: var(--muted); font-size: 12px; line-height: 1.35; }
.zd-finder-copy { min-width: 0; max-width: 470px; }
.zd-finder-copy p,
.zd-finder-result > p { margin: 0 0 8px; color: #d3dbee; font-size: 16px; line-height: 1.6; }
.zd-finder-copy a { color: var(--gold); font-weight: 700; }
.zd-finder-copy a:hover { text-decoration: underline; text-underline-offset: 3px; }
.zd-finder-copy .zd-finder-cusp { color: var(--muted); font-size: 14.5px; }
.zd-finder-result .zd-finder-error { color: #ffc2b5; margin: 0; }
@media (max-width: 560px) {
  .zd-finder-form { display: grid; grid-template-columns: 96px minmax(0, 1fr); }
  .zd-finder-day select,
  .zd-finder-month select { width: 100%; }
  .zd-finder-form .btn { grid-column: 1 / -1; justify-content: center; }
  .zd-finder-result.has-sign { flex-direction: column; text-align: center; }
}

.zd-dates-table { width: 100%; border-collapse: collapse; margin: 4px 0 24px; font-size: 15px; }
.zd-dates-table caption { caption-side: top; text-align: left; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.zd-dates-table th,
.zd-dates-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.zd-dates-table thead th { color: var(--muted-2); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.zd-dates-table tbody th { font-weight: 700; white-space: nowrap; }
.zd-dates-table tbody th a { color: var(--text); }
.zd-dates-table tbody th a:hover { color: var(--gold); }
.zd-dates-table td { color: #d3dbee; }
.zd-dates-el { color: var(--el); font-size: 13px; font-weight: 700; }
.zd-dates-table tr.is-match { background: rgba(241, 194, 125, 0.09); }
@media (max-width: 480px) {
  .zd-dates-table { font-size: 14px; }
  .zd-dates-table th,
  .zd-dates-table td { padding: 9px 6px; }
}
