/* ============================================================
   Astrowani — strictly 3 brand colors: maroon, cream, gold.
   Every other tone on this page is a mix of those three via
   color-mix(), never a new hue.

   CACHE-BUSTING: every <link> to this file across the site's HTML pages carries
   "?v=N" (deploy-shop.yml never purges Cloudflare's edge cache, which caches this
   file for 4h independently of index.html — so a deploy that changes CSS but not
   the <link> tag can leave live pages running NEW html against OLD css for up to
   4h, which is exactly what happened on 2026-10-09 and looked like a broken site).
   Bump the "?v=N" number in every html file's <link href="style.css?v=N"> AND
   <script src="script.js?v=N"> whenever this file OR script.js changes, so the
   new URL has never been cached and Cloudflare is forced to fetch fresh.
   ============================================================ */
/* Size-matched FALLBACK fonts (2026-11-16). Until Manrope / Marcellus arrive,
   text is drawn in a local font; when they arrive the text used to re-wrap and
   shove the hero down (Lighthouse CLS 0.08-0.12, cause "Web font loaded").
   size-adjust makes the local font take the same width as the real one, so the
   swap no longer moves anything. Ratios were measured in Chrome against the real
   fonts (Manrope ~1.01x Arial across weights 400-800, Marcellus 1.027x Georgia).
   Roboto / Noto Serif (Android) are listed after the measured fonts and are close
   enough in width to share the same correction. */
@font-face { font-family: 'Manrope Fallback'; src: local('Arial'), local('Liberation Sans'), local('Arimo'), local('Helvetica'), local('Roboto'); size-adjust: 101%; ascent-override: 106%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: 'Marcellus Fallback'; src: local('Georgia'), local('Noto Serif'), local('DejaVu Serif'), local('Times New Roman'); size-adjust: 103%; ascent-override: 94%; descent-override: 27%; line-gap-override: 0%; }

:root {
  --maroon: #592A19;
  --cream: #F4D8BC;
  --gold: #FFD700;

  /* derived tones — all mixes of the three colors above */
  --maroon-dark: var(--maroon);
  --ink: var(--maroon);
  --ink-soft: color-mix(in srgb, var(--maroon) 62%, var(--cream) 38%);
  --ink-faint: color-mix(in srgb, var(--maroon) 45%, var(--cream) 55%);
  --gold-deep: color-mix(in srgb, var(--gold) 62%, var(--maroon) 38%);
  --paper: var(--cream);
  --page-bg: color-mix(in srgb, var(--cream) 94%, var(--maroon) 6%);
  --band-tint: color-mix(in srgb, var(--cream) 82%, var(--maroon) 18%);
  --cream-on-dark: var(--cream);
  --cream-muted: color-mix(in srgb, var(--cream) 70%, var(--maroon) 30%);
  --border-soft: color-mix(in srgb, var(--maroon) 16%, transparent);
  --border-softer: color-mix(in srgb, var(--maroon) 10%, transparent);
  --shadow-color: color-mix(in srgb, var(--maroon) 28%, transparent);
}

/* "revert colors" toggle — every tone on the site derives from --maroon/--cream above,
   so swapping just these two inverts the whole palette everywhere at once. */
:root[data-theme="inverted"] {
  --maroon: #F4D8BC;
  --cream: #592A19;
}

/* ---------- nav utility buttons (theme + language) ---------- */
.nav-util-group { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
/* on the floating pill nav (homepage), they're a flex sibling AFTER the pill — flexbox
   itself prevents any overlap — with extra margin so they read as clearly outside/past
   the pill's rounded corner rather than crowding the Sign Up button inside it */
.ch-nav-wrap .nav-util-group { margin-left: 22px; }
@media (max-width: 900px) { .ch-nav-wrap .nav-util-group { margin-left: 12px; } }
@media (max-width: 760px) { .ch-nav-wrap .nav-util-group { display: none; } }
.nav-util-btn {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  background: var(--maroon); color: var(--cream); border: 1px solid color-mix(in srgb, var(--cream) 18%, transparent);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-family: 'Marcellus', 'Marcellus Fallback', serif; font-size: 15px; font-weight: 700;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 20px -12px var(--shadow-color);
}
.nav-util-btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.nav-util-btn svg { width: 17px; height: 17px; }

/* ============================================================
   New landing hero (dark-reversed concept) — scoped under .ch-*
   so its tokens never leak into the rest of the site's light theme.
   ============================================================ */
.ch-wrap {
  --ch-ink: var(--cream);
  --ch-ink-soft: color-mix(in srgb, var(--cream) 60%, var(--maroon) 40%);
  --ch-bg: var(--maroon);
  --ch-paper: color-mix(in srgb, var(--maroon) 78%, var(--cream) 22%);
  --ch-shadow: color-mix(in srgb, black 45%, transparent);
  --ch-ring: color-mix(in srgb, var(--cream) 16%, transparent);
  --ch-hairline: color-mix(in srgb, var(--cream) 14%, transparent);
  background: var(--ch-bg); color: var(--ch-ink); position: relative; overflow: hidden;
}

.ch-nav-wrap { position: sticky; top: 18px; margin-top: 18px; z-index: 50; display: flex; justify-content: center; padding: 0 20px; }
.ch-nav-pill {
  width: 100%; max-width: 1160px; background: var(--ch-paper);
  border-radius: 999px; padding: 10px 14px 10px 20px; min-height: 62px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  box-shadow: 0 18px 40px -20px var(--ch-shadow);
  border: 1px solid var(--ch-hairline);
}
.ch-nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ch-ink); flex: 0 0 auto; }
.ch-nav-brand img { width: 36px; height: 36px; border-radius: 50%; }
.ch-nav-links { display: flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 600; color: var(--ch-ink-soft); flex-wrap: nowrap; white-space: nowrap; }
.ch-nav-links a, .ch-nav-links .nav-drop-trigger { position: relative; padding-bottom: 3px; }
.ch-nav-links a:hover { color: var(--gold); }
.ch-nav-links .nav-item-drop:hover .nav-drop-trigger, .ch-nav-links .nav-item-drop.nav-drop-open .nav-drop-trigger { color: var(--gold); }
.ch-nav-login { font-size: 14px; font-weight: 700; color: var(--ch-ink-soft); padding: 10px 6px; white-space: nowrap; }

.ch-hero { position: relative; padding: 70px 24px 90px; text-align: center; }

.ch-rings { position: absolute; left: 50%; top: 60%; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; }
.ch-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid var(--ch-ring); transform: translate(-50%, -50%); }

.ch-zodiac-bg {
  position: absolute; top: 20px; right: -70px; width: 500px; height: 500px;
  z-index: 0; pointer-events: none; opacity: 0.16;
  animation: ch-zodiac-spin 40s linear infinite;
}
@keyframes ch-zodiac-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .ch-zodiac-bg { width: 290px; height: 290px; top: 10px; right: -55px; opacity: 0.12; }
}

.ch-eyebrow {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ch-paper); border: 1px solid var(--ch-hairline); color: var(--ch-ink);
  padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 26px;
  box-shadow: 0 8px 20px -12px var(--ch-shadow);
}
.ch-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.ch-hero h1 { position: relative; z-index: 1; margin: 0 auto 18px; font-weight: 400; font-size: 52px; line-height: 1.18; max-width: 760px; color: var(--ch-ink); }
.ch-hero p { position: relative; z-index: 1; margin: 0 auto 34px; max-width: 540px; font-size: 16.5px; line-height: 1.7; color: var(--ch-ink-soft); }

a.ch-cta {
  position: relative; z-index: 1; display: inline-block; background: var(--gold); color: var(--maroon);
  font-weight: 800; font-size: 16px; padding: 16px 34px; border-radius: 999px;
  box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--gold-deep) 65%, transparent);
  margin-bottom: 20px;
}

.ch-stage { position: relative; max-width: 980px; margin: 0 auto; height: 660px; }

.ch-phone {
  position: absolute; left: 50%; top: -10px; transform: translateX(-50%);
  width: 320px; height: 640px; z-index: 1;
  background: var(--ch-paper); border: 10px solid var(--cream); border-radius: 52px;
  box-shadow: 0 30px 60px -24px var(--ch-shadow);
  overflow: hidden;
}
.ch-phone-screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; background: var(--ch-paper); border-radius: 42px; }
.ch-phone::before {
  content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 37px; height: 8px; border-radius: 999px; background: var(--ch-bg);
}

.ch-mascot { position: absolute; left: 28px; bottom: 0px; z-index: 5; }
.ch-mascot img { height: 110px; width: auto; display: block; }

.ch-mascot-bubble {
  position: absolute; left: calc(100% + 18px); top: 50%; transform: translateY(-62%);
  /* 280px, not 250px — the eyebrow tag needs at least ~240px of content width
     to fit on one line at a legible size; narrower wrapped it to two lines
     that read as the same weight as the headline below it (see the tag rule). */
  width: 280px; background: var(--cream); border-radius: 18px; padding: 17px 19px;
  box-shadow: 0 16px 30px -14px var(--ch-shadow);
}
.ch-mascot-bubble::before {
  content: ''; position: absolute; left: -9px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  border-right: 10px solid var(--cream);
}
/* Was var(--gold-deep) — a muted gold-maroon mix that read as near-invisible on
   the cream bubble. var(--maroon) fixed that contrast failure, but left both
   lines the SAME colour and nearly the same weight (800 vs 700, 11.5px vs
   14.5px) — close enough that a screenshot showed them "looking the same".
   This is a label above a headline, not two headlines, so the tag now uses
   --ink-soft, the muted-maroon token this file already uses for secondary
   text (hero-stats labels, page subtitles) — same hue, visibly quieter — while
   the line below it goes bolder (700 -> 800) to read as the one that matters.
   Both tokens derive from --maroon/--cream, so this still swaps correctly
   under the dark/inverted theme. */
.ch-mascot-bubble-tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 6px; line-height: 1.3;
  white-space: nowrap; /* fits on one line now the bubble is 280px — see above */
}
.ch-mascot-bubble-text { font-size: 14.5px; font-weight: 800; color: var(--maroon); line-height: 1.45; }

@media (max-width: 760px) {
  .ch-hero h1 { font-size: 34px; }
  .ch-nav-links { display: none; }
  .ch-stage { height: 480px; }
  .ch-mascot { left: 14px; bottom: 14px; }
  .ch-mascot img { height: 80px; }
  .ch-mascot-bubble { width: 190px; padding: 12px 14px; left: calc(100% + 12px); }
  /* The 280px desktop bubble made the nowrap fix possible; at 190px the tag
     cannot fit on one line without going unreadably small, so it wraps here
     same as before — only the desktop width changed. */
  .ch-mascot-bubble-tag { font-size: 9.5px; white-space: normal; }
  .ch-mascot-bubble-text { font-size: 12.5px; }
  .ch-phone { width: 240px; height: 480px; }
  .ch-phone-side { display: none; }
}

/* ============================================================
   MOBILE NAV — brand + hamburger, everything else in a drawer.

   The desktop bar is six dropdowns plus Blog, Wani Shop, the theme/language
   buttons and the account area. That cannot shrink gracefully: on a phone it
   simply overflowed off the right edge. Below 960px the bar keeps only the
   Astrowani mark and a hamburger, and the full menu opens as a panel.

   960, not 900 (changed 2026-11-16): the full bar needs ~1160px at its normal
   spacing, so between 900 and ~1160 the Login/Sign-up end was cut off. The two
   steps below tighten it to fit down to 961px; under that, with a desktop
   scrollbar taking ~15px, no honest amount of squeezing fits, so the drawer
   takes over. script.js closes the drawer above this same width — keep the two
   numbers equal.
   ============================================================ */
.m-nav-toggle { display: none; }

@media (max-width: 960px) {
  /* Hide the desktop menu rows and the account area on BOTH nav variants —
     the floating homepage pill and the ordinary sticky nav. */
  /* .ch-nav-auth is the homepage pill's Login/Sign-up group. It carried an inline
     style and NO class, so none of the selectors here reached it and the hero bar
     kept both buttons on a phone. The inline `display:flex` also outranks a plain
     rule, which is why every line in this block needs !important. */
  .nav-links, .ch-nav-links,
  .nav-right, .ch-nav-auth, .nav-util-group,
  .ch-nav-wrap .nav-util-group { display: none !important; }

  .nav-inner, .ch-nav-pill { justify-content: space-between; gap: 10px; }

  .m-nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 0 11px; flex: 0 0 auto;
    background: transparent; border: 0; cursor: pointer;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .m-nav-toggle span {
    display: block; height: 2.5px; width: 100%; border-radius: 2px;
    background: var(--cream); transition: transform .2s ease, opacity .2s ease;
  }
  .m-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .m-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .m-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* The panel itself is outside the media query: it is only ever opened by the
   hamburger, which only exists on mobile, and keeping it here means a tablet
   rotating mid-session cannot strand it half-styled. */
.m-nav { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.m-nav.is-open { visibility: visible; }
.m-nav-scrim {
  position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease;
  background: color-mix(in srgb, var(--maroon) 68%, transparent);
}
.m-nav.is-open .m-nav-scrim { opacity: 1; }
.m-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  /* max-width as a second guard: the drawer must never be wider than the
     screen it slides over, whatever the viewport units resolve to. */
  width: min(86vw, 360px); max-width: 100%; display: flex; flex-direction: column;
  background: var(--maroon); color: var(--cream);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.16,.84,.44,1);
  box-shadow: -18px 0 46px -20px color-mix(in srgb, var(--maroon) 85%, transparent);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-right: env(safe-area-inset-right);
}
.m-nav.is-open .m-nav-panel { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .m-nav-panel, .m-nav-scrim { transition: none; }
}

.m-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid color-mix(in srgb, var(--cream) 16%, transparent);
  flex: 0 0 auto;
}
.m-nav-brand { font-size: 21px; color: var(--cream); }
.m-nav-close {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  color: var(--cream); font-size: 30px; line-height: 1; border-radius: 50%;
}

.m-nav-account { display: flex; gap: 10px; padding: 14px 18px; flex: 0 0 auto; }
/* `min-width: 0` is the important part. These are flex children whose basis is
   their content, so without it the signed-in labels ("₹1,250", "My account")
   cannot shrink and the gold button is pushed off the edge of the drawer. */
.m-nav-login, .m-nav-cta {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 12px; border-radius: 999px;
  font-size: 14.5px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-nav-login {
  border: 1.5px solid color-mix(in srgb, var(--cream) 32%, transparent);
  color: var(--cream); font-weight: 700;
}
.m-nav-cta { font-weight: 800; }

.m-nav-body { flex: 1 1 auto; overflow-y: auto; padding: 4px 0 18px; overscroll-behavior: contain; }
.m-nav-sec-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 0 18px; border: 0; background: transparent; cursor: pointer;
  color: var(--cream); font: inherit; font-size: 16px; font-weight: 700; text-align: left;
}
.m-nav-sec-head svg { width: 18px; height: 18px; transition: transform .2s ease; flex: 0 0 auto; }
.m-nav-sec.is-open .m-nav-sec-head svg { transform: rotate(180deg); }
.m-nav-sec-head:hover { background: color-mix(in srgb, var(--cream) 8%, transparent); }
.m-nav-sec-body { display: none; padding: 2px 0 10px; background: color-mix(in srgb, var(--cream) 6%, transparent); }
.m-nav-sec.is-open .m-nav-sec-body { display: block; }
.m-nav-sub {
  display: flex; align-items: center; min-height: 46px; padding: 0 18px 0 32px;
  color: var(--cream-muted); font-size: 14.5px; font-weight: 600;
}
.m-nav-sub:hover { color: var(--gold); }
.m-nav-link {
  display: flex; align-items: center; min-height: 52px; padding: 0 18px;
  color: var(--cream); font-size: 16px; font-weight: 700;
  border-top: 1px solid color-mix(in srgb, var(--cream) 10%, transparent);
}
.m-nav-link:hover { color: var(--gold); }

.m-nav-foot {
  display: flex; gap: 10px; padding: 14px 18px; flex: 0 0 auto;
  border-top: 1px solid color-mix(in srgb, var(--cream) 16%, transparent);
}
.m-nav-util {
  flex: 1 1 0; min-height: 44px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--cream) 28%, transparent);
  background: transparent; color: var(--cream); font: inherit; font-size: 13px; font-weight: 700;
}
.m-nav-util:hover { background: color-mix(in srgb, var(--cream) 10%, transparent); }

/* ---------- subpage header banner ---------- */
.page-header { background: var(--maroon); padding: 56px 24px; text-align: center; }
.page-header .crumb { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .4px; margin-bottom: 10px; }
.page-header .crumb a:hover { text-decoration: underline; }
.page-header h1 { margin: 0; font-size: 40px; font-weight: 400; color: var(--cream); }
.page-header p { margin: 14px auto 0; max-width: 560px; font-size: 15.5px; line-height: 1.7; color: var(--cream-muted); }

html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Manrope', 'Manrope Fallback', sans-serif; background: var(--page-bg); color: var(--ink); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
.serif { font-family: 'Marcellus', 'Marcellus Fallback', serif; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- section rhythm: every band is a clear, even chunk ---------- */
.band { padding: 96px 0; }
.band-tint { background: var(--band-tint); }
section.block, .block { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Long-form legal pages (privacy, terms, refund, delete-account, etc.) — the
   text itself is the real astrowani.com copy verbatim, copied exactly rather
   than rewritten, so this only has to make it readable, not re-author it. */
.legal-content { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.legal-content h2 {
  font-family: 'Marcellus', 'Marcellus Fallback', serif; font-weight: 400; font-size: 22px;
  color: var(--maroon); margin: 40px 0 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 15px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 16px; }
.legal-content ul, .legal-content ol { margin: 0 0 16px; padding-left: 22px; }
.legal-content li { font-size: 15px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 8px; }
.legal-content a { color: var(--gold-deep); text-decoration: underline; }
.legal-content strong { color: var(--maroon); }
.legal-content .legal-updated {
  font-size: 13px; color: var(--ink-faint); margin: 36px 0 0; padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

/* scroll progress bar — z-index must beat #site-nav-floating (also 70, below), or the
   floating nav paints over this 3px strip the moment it slides down and the line
   appears to "vanish" exactly when the second nav bar shows up. */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--gold); z-index: 80; }

/* nav: shrinks + gains depth once you scroll past the hero */
#site-nav { position: sticky; top: 0; z-index: 40; background: var(--maroon); border-bottom: 1px solid color-mix(in srgb, var(--gold) 25%, transparent); transition: box-shadow .35s ease; }
#site-nav .nav-inner { max-width: 1280px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: padding .35s cubic-bezier(.16,.84,.44,1); }
#site-nav .logo-mark { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--maroon) 70%, transparent); transition: width .35s cubic-bezier(.16,.84,.44,1), height .35s cubic-bezier(.16,.84,.44,1); }
#site-nav.nav-scrolled { box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--maroon) 85%, transparent); }
#site-nav.nav-scrolled .nav-inner { padding-top: 8px; padding-bottom: 8px; }
#site-nav.nav-scrolled .logo-mark { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 600; color: var(--cream); flex-wrap: nowrap; white-space: nowrap; }
.nav-links .nav-item-drop:hover .nav-drop-trigger, .nav-links .nav-item-drop.nav-drop-open .nav-drop-trigger { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.nav-login { font-size: 14px; font-weight: 700; color: var(--cream); padding: 10px 6px; white-space: nowrap; }
#site-nav .nav-inner > a:first-child { flex: 0 0 auto; }

/* floating nav (homepage only): off-screen above the viewport until the hero's own pill
   nav scrolls out of its sticky parent (see script.js onScroll), then slides down; reverses
   on the way back up. Same maroon/cream styling as #site-nav, just fixed + animated. */
#site-nav-floating {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  background: var(--maroon); border-bottom: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
  box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--maroon) 85%, transparent);
  transform: translateY(-100%);
  transition: transform .45s cubic-bezier(.16,.84,.44,1);
  pointer-events: none;
}
#site-nav-floating.nav-floating-visible { transform: translateY(0); pointer-events: auto; }
#site-nav-floating .nav-inner { max-width: 1280px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
#site-nav-floating .nav-inner > a:first-child { flex: 0 0 auto; }
#site-nav-floating .logo-mark { width: 36px; height: 36px; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { #site-nav-floating { transition: none; } }
/* Desktop bar between 961 and 1199px — see the MOBILE NAV block for why. These
   must stay AFTER the base #site-nav / .nav-links rules above: same specificity,
   so whichever comes later in the file wins. */
@media (min-width: 960.02px) and (max-width: 1199px) {
  #site-nav .nav-inner, #site-nav-floating .nav-inner { gap: 12px; padding-left: 16px; padding-right: 16px; }
  .nav-links { gap: 10px; font-size: 12.5px; }
  .nav-right { gap: 8px; }
  /* The round mark stays; the 'Astrowani' wordmark beside it is the cheapest
     ~110px in the bar. */
  #site-nav .nav-inner > a:first-child > span,
  #site-nav-floating .nav-inner > a:first-child > span { display: none !important; }
  .ch-nav-pill { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .ch-nav-links { gap: 10px; font-size: 12.5px; }
  .ch-nav-brand > span { display: none; }
  /* !important: both Sign-up buttons carry inline padding. */
  .nav-right .btn-gold, .ch-nav-auth .btn-gold { padding: 9px 16px !important; font-size: 13px !important; }
}
@media (min-width: 960.02px) and (max-width: 1040px) {
  .nav-links, .ch-nav-links { gap: 7px; font-size: 12px; }
  #site-nav .nav-inner, #site-nav-floating .nav-inner { gap: 10px; padding-left: 12px; padding-right: 12px; }
  .ch-nav-pill { gap: 8px; padding-left: 12px; padding-right: 12px; }
}

/* nav underline */
.nav-link { position: relative; padding-bottom: 3px; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--gold); transition: width .3s cubic-bezier(.16,.84,.44,1); }
.nav-link:hover::after { width: 100%; }

/* ---------- nav dropdown menus (JS-driven open/close, used by both nav skins) ----------
   Deliberately NOT pure CSS :hover. Even with the padding-bridge fix below (no literal gap
   left unhoverable), real mouse movement still isn't perfectly vertical — a fast or slightly
   diagonal move from the trigger to an item can clip the trigger's own edge for a frame and
   drop :hover right as the menu would otherwise be reached. injectNavDropdowns() below opens
   on mouseenter and closes on mouseleave only after a short grace timer, so a momentary dip
   out of either element's box doesn't close the menu — only genuinely leaving the whole
   trigger+panel area for that long does. */
.nav-item-drop { position: relative; display: inline-flex; align-items: center; }
.nav-item-drop > .nav-drop-trigger { display: inline-flex; align-items: center; gap: 4px; cursor: default; }
.nav-item-drop .nav-caret { width: 9px; height: 9px; flex: 0 0 auto; transition: transform .2s ease; }
.nav-item-drop.nav-drop-open .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  padding-top: 16px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 60;
}
.nav-item-drop.nav-drop-open .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-panel {
  background: var(--paper); color: var(--maroon); border-radius: 16px;
  padding: 10px; min-width: 220px;
  box-shadow: 0 24px 48px -20px color-mix(in srgb, black 55%, transparent);
  border: 1px solid var(--border-soft);
}
.nav-dropdown.nav-dropdown-wide .nav-dropdown-panel { min-width: 460px; }
.nav-dropdown.nav-dropdown-xwide .nav-dropdown-panel { min-width: 620px; }
.nav-dropdown-cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2px 10px; }
.nav-dropdown-cols.nav-dropdown-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.nav-dropdown a.nav-dropdown-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 700;
  color: var(--maroon); white-space: nowrap; transition: background .15s ease, color .15s ease;
}
.nav-dropdown a.nav-dropdown-item:hover { background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--maroon); }
.nav-dropdown a.nav-dropdown-item svg { flex: 0 0 auto; opacity: .55; }
.nav-dropdown a.nav-dropdown-item:hover svg { opacity: 1; }
@media (max-width: 1020px) {
  .nav-dropdown.nav-dropdown-wide .nav-dropdown-panel { min-width: 380px; }
  .nav-dropdown.nav-dropdown-xwide .nav-dropdown-panel { min-width: 460px; }
  .nav-dropdown-cols.nav-dropdown-cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* buttons: lift + press + click ripple */
.btn-gold, .btn-outline {
  transition: box-shadow .25s ease, filter .2s ease, transform .2s cubic-bezier(.16,.84,.44,1);
  position: relative; overflow: hidden; display: inline-block; border-radius: 14px;
}
.btn-gold { font-weight: 800; color: var(--maroon); background: var(--gold); }
.btn-outline { font-weight: 700; color: var(--maroon); border: 1.5px solid var(--border-soft); }
.btn-gold:not(.magnetic):hover, .btn-outline:not(.magnetic):hover { transform: translateY(-3px); }
.btn-gold:hover { filter: brightness(1.05); box-shadow: 0 14px 24px -10px var(--shadow-color); }
.btn-outline:hover { background: color-mix(in srgb, var(--maroon) 6%, transparent); }
.ripple-el { position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--maroon) 22%, transparent); transform: scale(0); animation: rippleAnim .6s ease-out forwards; pointer-events: none; }
@keyframes rippleAnim { to { transform: scale(1); opacity: 0; } }

/* magnetic pull toward the cursor */
.magnetic { transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, filter .2s ease; }

/* cursor-tilt cards */
.tilt-card { transition: transform .12s ease-out, box-shadow .4s ease; transform: perspective(900px) rotateX(0) rotateY(0); will-change: transform; }
.tilt-card:hover { box-shadow: 0 30px 50px -22px var(--shadow-color); }

.cat-tile, .review-card { transition: transform .4s cubic-bezier(.16,.84,.44,1), box-shadow .4s cubic-bezier(.16,.84,.44,1); }
.cat-tile:hover, .review-card:hover { transform: translateY(-7px); box-shadow: 0 26px 44px -20px var(--shadow-color); }

.svc-icon { transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.svc-tile:hover .svc-icon { transform: rotate(-6deg) scale(1.07); }

/* scroll-reveal: clip-path wipe, plays once */
.reveal { opacity: 0; }
.reveal.is-visible { opacity: 1; }
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }
.reveal:nth-child(6) { transition-delay: .4s; }

/* a different entrance per section, so the page doesn't repeat one motion */

/* guide text / FAQ: a curtain wipe, revealing upward */
.reveal-wipe { clip-path: inset(0 0 100% 0); transition: opacity .5s ease, clip-path .9s cubic-bezier(.16,.84,.44,1); }
.reveal-wipe.is-visible { clip-path: inset(0 0 0% 0); }

/* astrologer cards: pop up with a slight overshoot, like a card being dealt */
.reveal-scale { transform: scale(.82); transition: opacity .6s ease, transform .7s cubic-bezier(.34,1.56,.64,1); }
.reveal-scale.is-visible { transform: scale(1); }

/* category tiles: bouncy, playful pop with a little spin */
.reveal-pop { transform: scale(.45) rotate(-8deg); transition: opacity .5s ease, transform .65s cubic-bezier(.34,1.76,.64,1); }
.reveal-pop.is-visible { transform: scale(1) rotate(0deg); }

/* slides in from the left */
.reveal-slide-left { transform: translateX(-52px); transition: opacity .6s ease, transform .7s cubic-bezier(.16,.84,.44,1); }
.reveal-slide-left.is-visible { transform: translateX(0); }

/* slides in from the right */
.reveal-slide-right { transform: translateX(52px); transition: opacity .6s ease, transform .7s cubic-bezier(.16,.84,.44,1); }
.reveal-slide-right.is-visible { transform: translateX(0); }

/* zodiac chips: spin in from a small, rotated start */
.reveal-rotate { transform: scale(.4) rotate(-60deg); transition: opacity .5s ease, transform .6s cubic-bezier(.34,1.56,.64,1); }
.reveal-rotate.is-visible { transform: scale(1) rotate(0deg); }

/* horoscope card: tips down into place like a flap opening */
.reveal-flip { transform: perspective(800px) rotateX(-40deg) translateY(24px); transform-origin: top center; transition: opacity .6s ease, transform .8s cubic-bezier(.16,.84,.44,1); }
.reveal-flip.is-visible { transform: perspective(800px) rotateX(0deg) translateY(0); }

/* app panel: settles in from slightly oversized */
.reveal-zoom { transform: scale(1.12); transition: opacity .6s ease, transform .8s cubic-bezier(.16,.84,.44,1); }
.reveal-zoom.is-visible { transform: scale(1); }

.ch-phone.reveal-grow { transform: translateX(-50%) scale(.55); transition: opacity 1.1s ease, transform 1.6s cubic-bezier(.34,1.56,.64,1); }
.ch-phone.reveal-grow.is-visible { transform: translateX(-50%) scale(1); }

.ch-phone-side {
  top: 150px; width: 190px; height: 380px; z-index: 0; opacity: .85;
  border-width: 7px; border-radius: 40px; transform-origin: bottom center;
}
.ch-phone-side .ch-phone-screen { border-radius: 32px; }

.ch-phone-side.reveal-grow-left {
  left: calc(50% - 360px); transform: rotate(-10deg) scale(.35);
  transition: opacity 1.1s ease, transform 1.6s cubic-bezier(.34,1.56,.64,1);
  transition-delay: .15s;
}
.ch-phone-side.reveal-grow-left.is-visible { transform: rotate(-10deg) scale(1); }

.ch-phone-side.reveal-grow-right {
  left: calc(50% + 170px); transform: rotate(10deg) scale(.35);
  transition: opacity 1.1s ease, transform 1.6s cubic-bezier(.34,1.56,.64,1);
  transition-delay: .3s;
}
.ch-phone-side.reveal-grow-right.is-visible { transform: rotate(10deg) scale(1); }

/* Hero phone CAROUSEL — takes over from the one-time reveal-grow* entrance
   above once it finishes (script.js), and cycles which phone sits in which
   slot every 5s. Each slot's left/top/width/height/border/transform here is
   IDENTICAL to that slot's reveal-grow*.is-visible end state, so the handover
   has nothing to animate and causes no jump — only the later slot SWAPS do.
   Growing into slot-center vs shrinking into slot-left/right, across phones
   that are genuinely different box sizes (320x640 vs 190x380, different
   border width/radius), is what makes a swap read as "zoom in / zoom out",
   not just a slide — no separate zoom keyframe needed. */
.ch-phone-cycle {
  transition:
    left 1.3s cubic-bezier(.65,0,.35,1), top 1.3s cubic-bezier(.65,0,.35,1),
    width 1.3s cubic-bezier(.65,0,.35,1), height 1.3s cubic-bezier(.65,0,.35,1),
    transform 1.3s cubic-bezier(.65,0,.35,1), border-width 1.3s cubic-bezier(.65,0,.35,1),
    border-radius 1.3s cubic-bezier(.65,0,.35,1), opacity 1.3s ease,
    z-index 0s linear .4s;
  transform-origin: center center;
}
.ch-phone-cycle .ch-phone-screen { transition: border-radius 1.3s cubic-bezier(.65,0,.35,1); }

.ch-phone-cycle.slot-center {
  left: 50%; top: -10px; width: 320px; height: 640px;
  border-width: 10px; border-radius: 52px; opacity: 1; z-index: 2;
  transform: translateX(-50%) scale(1) rotate(0deg);
}
.ch-phone-cycle.slot-center .ch-phone-screen { border-radius: 42px; }

.ch-phone-cycle.slot-left {
  left: calc(50% - 360px); top: 150px; width: 190px; height: 380px;
  border-width: 7px; border-radius: 40px; opacity: .85; z-index: 1;
  transform: translateX(0) scale(1) rotate(-10deg);
}
.ch-phone-cycle.slot-right {
  left: calc(50% + 170px); top: 150px; width: 190px; height: 380px;
  border-width: 7px; border-radius: 40px; opacity: .85; z-index: 1;
  transform: translateX(0) scale(1) rotate(10deg);
}
.ch-phone-cycle.slot-left .ch-phone-screen,
.ch-phone-cycle.slot-right .ch-phone-screen { border-radius: 32px; }
/* No prefers-reduced-motion override here on purpose: script.js never starts
   the repeating swap at all for that preference, rather than leaving the
   transitions in place and having the phones teleport instantly between
   slots every 5s, which would be worse than either full motion or none. */

/* hero: one-time cinematic entrance on load */
@keyframes heroRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroPop { from { opacity: 0; transform: scale(.93); } to { opacity: 1; transform: scale(1); } }
.hero-in-1 { animation: heroRise .7s cubic-bezier(.16,.84,.44,1) both; }
.hero-in-2 { animation: heroRise .7s cubic-bezier(.16,.84,.44,1) .1s both; }
.hero-in-3 { animation: heroRise .7s cubic-bezier(.16,.84,.44,1) .2s both; }
.hero-in-4 { animation: heroRise .7s cubic-bezier(.16,.84,.44,1) .3s both; }
.hero-in-5 { animation: heroRise .7s cubic-bezier(.16,.84,.44,1) .4s both; }
.hero-in-mascot { animation: heroPop .9s cubic-bezier(.16,.84,.44,1) .25s both; }

/* live/online status pulse — gold, not green (stays in palette) */
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent); } 70% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--gold) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 0%, transparent); } }
.pulse-dot { animation: pulseDot 2.2s ease-out infinite; }

/* horoscope meters: fill in once visible */
.meter-fill { width: 0; height: 100%; border-radius: 999px; background: var(--gold); transition: width 1.1s cubic-bezier(.16,.84,.44,1); }
.meter-fill.is-visible { width: var(--w); }

/* review stars pop in sequentially once the card is revealed */
@keyframes starPop { from { opacity: 0; transform: scale(.3) rotate(-15deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
.review-card .star { opacity: 0; transform: scale(.3); }
.review-card.is-visible .star:nth-child(1) { animation: starPop .4s cubic-bezier(.34,1.56,.64,1) .05s forwards; }
.review-card.is-visible .star:nth-child(2) { animation: starPop .4s cubic-bezier(.34,1.56,.64,1) .12s forwards; }
.review-card.is-visible .star:nth-child(3) { animation: starPop .4s cubic-bezier(.34,1.56,.64,1) .19s forwards; }
.review-card.is-visible .star:nth-child(4) { animation: starPop .4s cubic-bezier(.34,1.56,.64,1) .26s forwards; }
.review-card.is-visible .star:nth-child(5) { animation: starPop .4s cubic-bezier(.34,1.56,.64,1) .33s forwards; }

/* zodiac chip hover */
.z-chip { transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease; }
.z-chip:hover { transform: translateY(-5px) scale(1.08); }

/* odometer: digits roll from above, down into place, like a car odometer settling */
.odo { display: inline-flex; }
.odo-cell { display: inline-block; height: 1em; line-height: 1em; overflow: hidden; vertical-align: bottom; }
.odo-strip { display: flex; flex-direction: column; will-change: transform; }
.odo-digit { height: 1em; line-height: 1em; display: block; text-align: center; }
.odo-static { display: inline-block; }

/* ---------- hero ---------- */
.hero { position: relative; max-width: 1280px; margin: 0 auto; padding: 92px 24px 110px; min-height: 600px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; overflow: visible; }
.hero-visual { flex: 1 1 380px; min-width: 320px; position: relative; z-index: 1; height: 460px; display: flex; align-items: flex-end; justify-content: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--border-soft); padding: 8px 16px 8px 10px; border-radius: 999px; box-shadow: 0 6px 16px -10px var(--shadow-color); margin-bottom: 22px; }
.hero h1 { margin: 0 0 20px; font-size: 54px; line-height: 1.1; font-weight: 400; color: var(--maroon); }
.hero p.lede { margin: 0 0 32px; font-size: 17px; line-height: 1.65; color: var(--ink-soft); max-width: 480px; }
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats .stat-num { font-size: 26px; color: var(--maroon); }
.hero-stats .stat-label { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }

/* trust strip */
.trust-strip { background: var(--page-bg); padding: 20px 24px; border-bottom: 1px solid var(--border-softer); }
.trust-strip .wrap { display: flex; justify-content: center; align-items: center; gap: 44px; flex-wrap: wrap; color: var(--maroon); }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; }

/* section rhythm */
.eyebrow { font-size: 13px; font-weight: 800; color: var(--maroon); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
h2.section-title { margin: 0; font-size: 36px; font-weight: 400; color: var(--maroon); }

/* meet your guide */
.guide-row { display: flex; align-items: center; gap: 56px; flex-wrap: wrap-reverse; }

/* grids */
.astro-grid, .cat-grid, .svc-grid, .review-grid { display: grid; gap: 24px; }
.astro-grid, .review-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cat-grid { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 18px; }
.svc-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; }

.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.shop-card {
  position: relative; display: block; min-height: 400px; border-radius: 22px; overflow: hidden;
  background-size: cover; background-position: center;
  text-decoration: none;
  box-shadow: 0 18px 36px -20px var(--shadow-color);
  transition: transform .35s cubic-bezier(.16,.84,.44,1), box-shadow .35s cubic-bezier(.16,.84,.44,1);
}
.shop-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, color-mix(in srgb, var(--maroon) 92%, black 8%) 0%, color-mix(in srgb, var(--maroon) 55%, transparent) 46%, transparent 72%);
}
.shop-card:hover { transform: translateY(-6px); box-shadow: 0 28px 48px -18px var(--shadow-color); }
.shop-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; }
.shop-card-title { font-family: 'Marcellus', 'Marcellus Fallback', serif; font-size: 26px; font-weight: 400; color: var(--cream); margin-bottom: 8px; }
.shop-card-desc { font-size: 13.5px; line-height: 1.6; color: color-mix(in srgb, var(--cream) 85%, transparent); max-width: 300px; margin-bottom: 16px; }
.shop-card-link { font-size: 14px; font-weight: 800; color: var(--gold); }
@media (max-width: 760px) { .shop-grid { grid-template-columns: 1fr; } }

.astro-card {
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--border-softer);
  border-radius: 24px;
  padding: 28px 24px 24px;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--shadow-color) 70%, transparent), 0 18px 34px -22px var(--shadow-color);
  position: relative;
  transition: box-shadow .28s ease, border-color .28s ease;
}
.astro-card:hover { border-color: color-mix(in srgb, var(--gold-deep) 55%, var(--border-softer)); box-shadow: 0 1px 2px color-mix(in srgb, var(--shadow-color) 70%, transparent), 0 24px 44px -20px var(--shadow-color); }
.astro-online, .astro-badge-chip {
  position: absolute; top: 18px; right: 18px;
  background: var(--paper); color: var(--maroon);
  font-size: 11px; font-weight: 800; letter-spacing: .01em;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  display: flex; align-items: center; gap: 5px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 4px 10px -6px var(--shadow-color);
}
.astro-online { color: color-mix(in srgb, var(--gold-deep) 55%, var(--maroon) 45%); border-color: color-mix(in srgb, var(--gold) 45%, var(--border-soft)); }
.astro-badge-celebrity { background: var(--gold); color: var(--maroon); border-color: var(--gold-deep); }
.astro-badge-verified { background: var(--maroon); color: var(--cream); border-color: var(--maroon); }
.astro-avatar {
  width: 86px; height: 86px; border-radius: 50%; padding: 3.5px; margin-bottom: 18px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--shadow-color) 40%, transparent), 0 12px 22px -12px var(--shadow-color);
}
.astro-avatar-inner { width: 100%; height: 100%; border-radius: 50%; background: var(--maroon); display: flex; align-items: center; justify-content: center; color: var(--cream); font-size: 24px; }
.astro-avatar img { display: block; border: 2.5px solid var(--paper); box-sizing: border-box; }
.astro-name { font-size: 18px; font-weight: 800; color: var(--maroon); margin-bottom: 4px; letter-spacing: -.01em; }
.astro-meta { font-size: 13px; color: var(--ink-soft); font-weight: 600; margin-bottom: 12px; line-height: 1.45; min-height: 37px; }
.astro-rating-row {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 13.5px;
  background: color-mix(in srgb, var(--gold) 14%, var(--cream) 86%);
  padding: 5px 11px; border-radius: 999px;
}
.astro-card > div[style*="color:var(--ink-soft)"] { margin-bottom: 18px !important; margin-top: 2px; }
.astro-actions { display: flex; gap: 10px; }
.astro-actions a, .astro-actions span { flex: 1; text-align: center; font-size: 13px; font-weight: 800; padding: 12px 4px; border-radius: 999px; white-space: nowrap; transition: transform .2s ease, filter .2s ease, box-shadow .2s ease; }
.btn-ghost { color: var(--maroon); border: 1.5px solid var(--border-soft); background: transparent; }
.astro-actions a.btn-ghost:hover { border-color: var(--maroon); background: color-mix(in srgb, var(--maroon) 6%, transparent); }
.astro-actions a.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -10px var(--shadow-color); filter: brightness(1.04); }
.astro-actions span.btn-ghost, .astro-actions span.btn-gold {
  background: color-mix(in srgb, var(--ink-faint) 12%, var(--paper) 88%) !important;
  color: var(--ink-soft) !important; border: 1.5px dashed var(--border-soft) !important;
  opacity: 1 !important; font-weight: 700 !important;
}

/* continuous right-to-left astrologer marquee — full-bleed, true screen edges */
.astro-marquee-wrap {
  width: 100vw; margin-left: calc(50% - 50vw); margin-top: 8px; padding: 0 24px;
  overflow: hidden; box-sizing: border-box;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
.astro-marquee-track { display: flex; gap: 18px; width: max-content; }
.astro-marquee-track-ltr { animation: astroMarqueeLeft 36s linear infinite; }
.astro-marquee-track-rtl { animation: astroMarqueeRight 36s linear infinite; }
.astro-marquee-wrap:hover .astro-marquee-track { animation-play-state: paused; }
@keyframes astroMarqueeLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes astroMarqueeRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.astro-marquee-track .astro-card {
  width: 224px; flex: 0 0 auto; padding: 18px 16px 16px; border-radius: 18px;
}
.astro-marquee-track .astro-card .astro-avatar { width: 56px; height: 56px; margin-bottom: 10px; }
.astro-marquee-track .astro-card .astro-online,
.astro-marquee-track .astro-card .astro-badge-chip { top: 12px; right: 12px; font-size: 9.5px; padding: 4px 9px 4px 7px; }
.astro-marquee-track .astro-card .astro-name { font-size: 14.5px; margin-bottom: 2px; }
.astro-marquee-track .astro-card .astro-meta { font-size: 11.5px; min-height: 0; margin-bottom: 8px; -webkit-line-clamp: 1; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.astro-marquee-track .astro-card .astro-rating-row { font-size: 11.5px; padding: 3px 9px; margin-bottom: 2px; }
.astro-marquee-track .astro-card .astro-rating-row svg { width: 12px; height: 12px; }
.astro-marquee-track .astro-card > div[style*="color:var(--ink-soft)"] { font-size: 10.5px !important; margin-bottom: 10px !important; }
.astro-marquee-track .astro-card .astro-actions a,
.astro-marquee-track .astro-card .astro-actions span { font-size: 11px; padding: 8px 0; }

.cat-tile {
  background: var(--paper); border: 1px solid var(--border-softer); border-radius: 18px;
  padding: 20px 18px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 10px 22px -18px var(--shadow-color);
}
.cat-tile:hover { border-color: color-mix(in srgb, var(--gold-deep) 55%, var(--border-softer)); }
.cat-icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cat-body { flex: 1 1 auto; min-width: 0; text-align: left; }
.cat-name { font-size: 14.5px; font-weight: 800; color: var(--maroon); line-height: 1.3; }
.cat-sub { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); margin-top: 2px; }
.cat-arrow { flex: 0 0 auto; color: color-mix(in srgb, var(--maroon) 45%, var(--cream) 55%); transition: transform .25s ease, color .25s ease; }
.cat-tile:hover .cat-arrow { transform: translateX(3px); color: var(--maroon); }
.cat-count { font-size: 11.5px; color: var(--ink-soft); font-weight: 600; margin-top: 4px; }

.svc-section { position: relative; overflow: visible; }

.svc-tile {
  position: relative; background: var(--paper); border-radius: 24px; padding: 28px;
  box-shadow: 0 10px 26px -18px var(--shadow-color); overflow: hidden;
  min-height: 250px; display: flex; flex-direction: column;
}
.svc-tile-top { position: relative; z-index: 1; display: flex; flex-direction: column; max-width: 60%; }
.svc-illus-img {
  position: absolute; right: 2px; bottom: 2px; width: 140px; height: 140px;
  object-fit: contain; object-position: bottom right; z-index: 0; pointer-events: none;
}
.svc-illus-img-lg { width: 190px; height: 190px; right: -14px; bottom: -10px; }
.svc-title { font-size: 17px; font-weight: 800; color: var(--maroon); margin-bottom: 8px; line-height: 1.3; }
.svc-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 22px; }
.svc-arrow {
  width: 34px; height: 34px; border-radius: 50%; background: var(--maroon); color: var(--cream);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  margin-top: auto; transition: transform .25s ease, background .25s ease;
}
.svc-tile:hover .svc-arrow { transform: translateX(4px); background: var(--gold-deep); color: var(--maroon); }

/* hover: a bright segment sweeps around the card's border, loading-spinner style, instead
   of the old arrow button. Standard "gradient border" trick — a conic-gradient ring, clipped
   to just the border band with a mask, then spun with transform (not the gradient's own
   angle, which isn't smoothly animatable without @property). */
.svc-tile::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 2;
  padding: 2px; pointer-events: none; box-sizing: border-box;
  background: conic-gradient(from 0deg, transparent 0 72%, var(--gold) 85%, var(--gold-deep) 90%, transparent 97%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease;
}
.svc-tile:hover::after { opacity: 1; animation: svcBorderTrace 2.4s linear infinite; }
@keyframes svcBorderTrace { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .svc-tile:hover::after { animation: none; } }

@media (max-width: 760px) {
  .svc-tile-top { max-width: 100%; }
  .svc-illus-img { opacity: .55; }
}

/* horoscope */
.zodiac-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.z-chip-inner { width: 58px; height: 58px; border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--maroon); margin: 0 auto 8px; box-shadow: 0 8px 16px -10px var(--shadow-color); }
.z-name { font-size: 12px; font-weight: 700; color: var(--maroon); }
.horoscope-card { background: var(--maroon); border-radius: 28px; padding: 40px; display: flex; gap: 40px; flex-wrap: wrap; align-items: center; }
.horoscope-sign { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 38px; color: var(--maroon); }
.horoscope-meters { display: flex; gap: 28px; flex: 0 0 auto; }
.meter-label { font-size: 12px; color: var(--cream-muted); font-weight: 700; margin-bottom: 6px; text-align: center; }
.meter-track { width: 40px; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 20%, transparent); }

/* reviews */
.review-card { background: var(--paper); border-radius: 22px; padding: 28px; box-shadow: 0 10px 26px -18px var(--shadow-color); }
.review-stars { display: flex; gap: 3px; margin-bottom: 16px; }
.review-quote { font-size: 14.5px; line-height: 1.7; color: var(--ink); margin-bottom: 20px; font-style: italic; }
.review-person { display: flex; align-items: center; gap: 10px; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--maroon); display: flex; align-items: center; justify-content: center; color: var(--cream); font-size: 13px; font-weight: 800; }

/* app download */
.app-panel { background: var(--gold); border: 2px solid var(--gold-deep); border-radius: 32px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; overflow: hidden; position: relative; }
.store-badge { display: flex; align-items: center; gap: 10px; background: var(--maroon); border: 1px solid color-mix(in srgb, var(--cream) 22%, transparent); color: var(--cream); padding: 12px 20px; border-radius: 14px; box-shadow: 0 10px 20px -8px var(--shadow-color); position: relative; overflow: hidden; }
.phone-mock { width: 220px; height: 440px; background: var(--maroon); border: 3px solid var(--gold-deep); border-radius: 36px; padding: 10px; }
.phone-mock-inner { width: 100%; height: 100%; border-radius: 24px; background: var(--maroon); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 1px solid color-mix(in srgb, var(--cream) 16%, transparent); }

/* display:flex column — the hint sits BELOW the model in normal flow now,
   not absolutely positioned over it, which is what let it overlap the
   model's feet before. Stacking in flow makes overlap structurally
   impossible rather than something to keep nudging percentages to avoid. */
.app-3d-stage { flex: 0 0 auto; position: relative; z-index: 1; width: 340px; max-width: 42vw; display: flex; flex-direction: column; align-items: center; }
.app-3d-model { display: block; width: 100%; height: 420px; --poster-color: transparent; --progress-bar-height: 0px; outline: none; }
/* disable-pan + disable-tap on the element: without them a click re-centres the
   camera on the tapped point and a right-drag slides the model, so it "floats"
   off-centre. Only drag-to-rotate is wanted. */
@media (max-width: 760px) { .app-3d-stage { width: 100%; max-width: 100%; } .app-3d-model { height: 340px; } }

/* "drag to rotate" hint below the 3D model — see the comment in index.html
   for why it exists as a custom overlay rather than model-viewer's own
   prompt. Sits in NORMAL FLOW under .app-3d-stage's flex column now, not
   absolutely positioned over the model — that was overlapping its feet, and
   nudging a bottom percentage is fragile (the model's own footprint within
   the canvas is camera-orbit framing, not something this CSS controls). */
.app-3d-hint {
  display: flex; flex-direction: column; align-items: center;
  margin-top: -6px; pointer-events: none;
  opacity: 0; transition: opacity .5s ease;
}
.app-3d-hint.is-shown { opacity: 1; }
.app-3d-hint-arc { display: block; margin-bottom: -10px; overflow: visible; }
/* Dark maroon, not gold — .app-panel's own background IS var(--gold), so a
   gold hint was invisible against it (confirmed: the finger never showed up
   in a screenshot, only the cream "Drag to rotate" pill did). */
.app-3d-hint-arc path {
  fill: none; stroke: var(--maroon); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 4 6; opacity: .5;
}
.app-3d-hint-finger {
  color: var(--maroon); filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
  animation: app3dHintSwipe 1.8s cubic-bezier(.45,0,.55,1) infinite;
}
.app-3d-hint-label {
  margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--maroon);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
/* Travels the same arc the dashed guide draws: left and low, up through the
   middle, right and low again — a swipe, not a side-to-side slide. */
@keyframes app3dHintSwipe {
  0%   { transform: translate(-34px, 6px) rotate(-14deg); opacity: 0; }
  12%  { opacity: 1; }
  50%  { transform: translate(0, -14px) rotate(0deg); opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translate(34px, 6px) rotate(14deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .app-3d-hint-finger { animation: none; }
}

/* FAQ — accordion. .faq-q is a <button> (padding replaces the old wrapper's), so
   it carries its own focus ring and is reachable by keyboard without extra markup. */
.faq-item { background: var(--paper); border-radius: 18px; padding: 4px 26px; box-shadow: 0 8px 20px -16px var(--shadow-color); transition: transform .3s cubic-bezier(.16,.84,.44,1), box-shadow .3s cubic-bezier(.16,.84,.44,1), opacity .8s cubic-bezier(.16,.84,.44,1); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; margin: 0; padding: 18px 0;
  background: none; border: none; cursor: pointer; text-align: left; font-family: inherit;
  font-size: 15.5px; font-weight: 800; color: var(--maroon);
}
.faq-q:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.faq-arrow { flex: 0 0 auto; color: var(--maroon); transition: transform .3s cubic-bezier(.16,.84,.44,1); }
.faq-q[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); }
/* max-height is set to the answer's real scrollHeight in px by script.js just
   before data-open is added (see the FAQ accordion handler) — a plain CSS
   percentage/auto trick (grid-template-rows: 0fr -> 1fr, or max-height: 0 -> none)
   cannot transition to a text block's true height, so JS measures it once. */
.faq-a-wrap { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.16,.84,.44,1); }
.faq-a { font-size: 14px; color: var(--ink-soft); line-height: 1.6; padding-bottom: 18px; }
@media (prefers-reduced-motion: reduce) { .faq-a-wrap, .faq-arrow { transition: none; } }

/* footer */
footer.site-footer { background: var(--maroon); padding: 64px 24px 28px; color: var(--cream-muted); }
.footer-top { max-width: 1280px; margin: 0 auto; display: flex; gap: 56px; flex-wrap: wrap; justify-content: space-between; padding-bottom: 40px; border-bottom: 1px solid color-mix(in srgb, var(--cream) 12%, transparent); }
/* The brand block (logo, "Astrowani", the summary line) is always footer-top's
   first child in every page's markup — targeted structurally so the same
   40px shift as .footer-social below it applies without touching the HTML
   of all 19 pages that carry this footer. Keeps the logo/text column and the
   icon row underneath it aligned with each other, both shifted off the edge
   together, which is what was actually being asked for. */
.footer-top > div:first-child { margin-left: 40px; }
/* Company/Services/Legal sat flush against the row's right edge (justify-content:
   space-between pins the last item there). This margin on the last column is the
   standard flex trick to pull the whole trailing cluster left without disturbing
   the brand block, which stays pinned at the opposite end. */
.footer-top > div:last-child { margin-right: 64px; }
.footer-col-title { font-size: 12.5px; font-weight: 800; color: var(--cream); letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--cream-muted); }
/* "Made with care in India" is footer-bottom's last child, pinned to the row's
   right edge the same way the Legal column was — shifted in by the same
   amount so it lines up under Legal instead of sitting further right. */
.footer-bottom > div:last-child { margin-right: 64px; }
/* Social icons, bottom-left of the footer, one line. The .footer-social div
   is an empty placeholder in every page's markup — injectFooterSocial() in
   script.js fills it on every page that has one, so the icon list and each
   brand's URL/colour live in exactly one place (same source the apps use,
   src/config/api.js SOCIAL_LINKS) rather than being copy-pasted per page. */
.footer-bottom-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-social { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; margin-left: 40px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: color-mix(in srgb, var(--cream) 14%, transparent);
  color: var(--cream); transition: background .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--social-color, var(--gold)); transform: translateY(-2px); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }
/* Under the brand summary paragraph, not next to the social icons — moved
   there and sized up after the first placement (next to the icons, 36px)
   read as too small and in the wrong spot. */
.footer-playstore { display: inline-flex; margin-top: 20px; transition: transform .2s ease, opacity .2s ease; }
.footer-playstore:hover { transform: translateY(-2px); opacity: .9; }
.footer-playstore img { height: 52px; width: auto; display: block; }

@media (max-width: 760px) {
  .band { padding: 64px 0; }
  .hero h1 { font-size: 38px; }
  .astro-grid, .review-grid, .svc-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ============================================================
   Calculators / Panchang / Horoscope / Free Services — shared
   ============================================================ */
.tool-index-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 56px; }
.tool-index-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--paper); border: 1px solid var(--border-soft); border-radius: 14px;
  padding: 14px 16px; font-size: 13.5px; font-weight: 700; color: var(--maroon);
  text-decoration: none; transition: border-color .2s ease, transform .2s ease;
}
.tool-index-chip:hover { border-color: var(--gold-deep); transform: translateY(-2px); }
.tool-index-chip svg { flex: 0 0 auto; opacity: .5; }

.calc-card {
  background: var(--paper); border: 1px solid var(--border-softer); border-radius: 22px;
  padding: 32px; margin-bottom: 28px; box-shadow: 0 10px 26px -20px var(--shadow-color); scroll-margin-top: 110px;
}
.calc-card-title { font-size: 20px; font-weight: 800; color: var(--maroon); margin-bottom: 6px; }
.calc-card-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 22px; max-width: 640px; }
.calc-form-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.calc-field { flex: 1 1 180px; display: flex; flex-direction: column; gap: 6px; }
.calc-field label { font-size: 12px; font-weight: 700; color: var(--maroon); }
.calc-field input, .calc-field select {
  font-family: inherit; font-size: 14px; padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid var(--border-soft); background: var(--cream); color: var(--maroon);
}
.calc-field input:focus, .calc-field select:focus { outline: none; border-color: var(--gold-deep); }
.calc-btn {
  font-family: inherit; font-size: 14px; font-weight: 800; color: var(--maroon); background: var(--gold);
  border: none; border-radius: 999px; padding: 12px 28px; cursor: pointer; transition: filter .2s ease, transform .2s ease;
}
.calc-btn:hover { filter: brightness(1.05); transform: translateY(-2px); }
.calc-result { margin-top: 20px; padding: 20px 22px; border-radius: 16px; background: var(--maroon); color: var(--cream); display: none; }
.calc-result.is-visible { display: block; }
.calc-result-big { font-size: 24px; font-weight: 800; color: var(--gold); margin-bottom: 6px; font-family: 'Marcellus', 'Marcellus Fallback', serif; }
.calc-result-sub { font-size: 13.5px; line-height: 1.65; color: var(--cream-muted); }
.calc-advanced-note {
  display: flex; align-items: flex-start; gap: 12px; background: color-mix(in srgb, var(--gold) 14%, var(--paper) 86%);
  border: 1px dashed var(--gold-deep); border-radius: 14px; padding: 16px 18px; font-size: 13px; color: var(--ink-soft); line-height: 1.6;
}
.calc-advanced-note a { color: var(--maroon); font-weight: 800; text-decoration: underline; }
.calc-disclaimer { font-size: 12px; color: var(--ink-faint); margin-top: 14px; line-height: 1.6; }
.lo-shu-table { border-collapse: collapse; margin: 0 auto; }
.lo-shu-table td { width: 56px; height: 56px; border: 1.5px solid var(--border-soft); text-align: center; font-weight: 800; font-size: 15px; color: var(--maroon); }
.flames-letters { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }
.flames-letter { width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--cream) 50%, transparent); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--cream-muted); }
.flames-letter.is-winner { background: var(--gold); color: var(--maroon); }
.score-bar-track { width: 100%; height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--cream) 25%, transparent); margin-top: 10px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 999px; background: var(--gold); transition: width .6s cubic-bezier(.16,.84,.44,1); }

.panchang-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-bottom: 20px; }
.panchang-stat { background: var(--paper); border-radius: 16px; padding: 18px 20px; box-shadow: 0 8px 20px -16px var(--shadow-color); }
.panchang-stat-label { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.panchang-stat-value { font-size: 17px; font-weight: 800; color: var(--maroon); font-family: 'Marcellus', 'Marcellus Fallback', serif; }
.panchang-table { width: 100%; border-collapse: collapse; }
.panchang-table th, .panchang-table td { text-align: left; padding: 10px 14px; font-size: 13.5px; border-bottom: 1px solid var(--border-softer); }
.panchang-table th { color: var(--ink-faint); font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; }
.panchang-table td { color: var(--maroon); font-weight: 600; }
.panchang-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.panchang-tag.good { background: color-mix(in srgb, var(--gold) 30%, transparent); color: var(--maroon); }
.panchang-tag.bad { background: color-mix(in srgb, var(--maroon) 14%, transparent); color: var(--maroon); }
.panchang-tag.neutral { background: color-mix(in srgb, var(--ink-faint) 20%, transparent); color: var(--maroon); }
.panchang-city-row { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }

.consult-mode-pill { display:inline-block; border:1.5px solid var(--border-soft); background:transparent; color:var(--maroon); padding:11px 24px; border-radius:999px; font-weight:800; font-size:14px; text-decoration:none; transition:.2s; }
.consult-mode-pill:hover { border-color:var(--maroon); }
.consult-mode-pill.active { border-color:var(--maroon); background:var(--maroon); color:var(--cream); }

@media (max-width: 900px) {
  .tool-index-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .panchang-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tool-index-grid { grid-template-columns: 1fr; }
  .calc-card { padding: 22px; }
}

/* ============================================================
   Site-wide EN/HI toggle for dynamic content (blog). The nav's
   language button only flips document.documentElement[data-lang] and
   re-walks the static .i18n-t dictionary (script.js astroApplyLang) — it
   has no idea blog.js rendered two language variants into the DOM. This
   single attribute selector is what makes aw/blog.js's markup react to
   that same toggle with no extra JS: both lang-en/lang-hi are plain
   siblings, CSS alone decides which one is visible.
   ============================================================ */
html:not([data-lang="hi"]) .lang-hi { display: none; }
html[data-lang="hi"] .lang-en { display: none; }

/* ============================================================
   Blog — listing + article
   ============================================================ */
.blog-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.blog-pill {
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--maroon);
  background: var(--paper); border: 1.5px solid var(--border-soft); border-radius: 999px;
  padding: 10px 20px; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.blog-pill:hover { border-color: var(--gold-deep); }
.blog-pill.active { background: var(--maroon); color: var(--cream); border-color: var(--maroon); }

.blog-badge {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase;
  color: var(--maroon); background: color-mix(in srgb, var(--gold) 30%, var(--paper) 70%);
  border-radius: 999px; padding: 5px 13px;
}
.blog-meta { font-size: 12.5px; font-weight: 600; color: var(--ink-faint); margin: 14px 0 10px; }
.blog-meta .dot-sep { margin: 0 6px; }

.blog-featured {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; margin-bottom: 48px;
  background: var(--paper); border-radius: 26px; overflow: hidden; text-decoration: none;
  box-shadow: 0 10px 26px -18px var(--shadow-color);
  transition: transform .4s cubic-bezier(.16,.84,.44,1), box-shadow .4s cubic-bezier(.16,.84,.44,1);
}
.blog-featured:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -20px var(--shadow-color); }
.blog-featured-media { min-height: 320px; background-size: cover; background-position: center; background-color: var(--band-tint); }
.blog-featured-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-title { font-size: 28px; font-weight: 400; color: var(--maroon); line-height: 1.25; margin: 0 0 14px; }
.blog-featured .blog-excerpt { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 22px; }
.blog-read-link { font-size: 14px; font-weight: 800; color: var(--maroon); }
.blog-featured:hover .blog-read-link { color: var(--gold-deep); }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.blog-card {
  display: flex; flex-direction: column; background: var(--paper); border-radius: 20px; overflow: hidden;
  text-decoration: none; box-shadow: 0 10px 26px -18px var(--shadow-color);
  transition: transform .4s cubic-bezier(.16,.84,.44,1), box-shadow .4s cubic-bezier(.16,.84,.44,1);
}
.blog-card:hover { transform: translateY(-7px); box-shadow: 0 26px 44px -20px var(--shadow-color); }
.blog-card-img { width: 100%; height: 190px; object-fit: cover; background: var(--band-tint); display: block; }
.blog-card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card-title { font-size: 18.5px; font-weight: 800; color: var(--maroon); line-height: 1.35; margin: 0 0 10px; }
.blog-card .blog-excerpt {
  font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 18px; flex: 1;
  /* Backstop, not the fix — aw/blog.js already caps excerpt text at 160 chars.
     This just keeps a card's height sane if that ever changes. */
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-featured .blog-excerpt { -webkit-line-clamp: 5; }

.blog-skeleton { background: var(--paper); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 26px -18px var(--shadow-color); }
.blog-skeleton-img, .blog-skeleton-line { background: linear-gradient(90deg, var(--band-tint) 25%, color-mix(in srgb, var(--band-tint) 60%, var(--paper) 40%) 37%, var(--band-tint) 63%); background-size: 400% 100%; animation: blogShimmer 1.6s ease infinite; }
.blog-skeleton-img { height: 190px; }
.blog-skeleton-body { padding: 24px; }
.blog-skeleton-line { height: 13px; border-radius: 6px; margin-bottom: 10px; }
.blog-skeleton-line.w-60 { width: 60%; }
.blog-skeleton-line.w-80 { width: 80%; }
@keyframes blogShimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.blog-empty, .blog-error { text-align: center; padding: 60px 24px; color: var(--ink-soft); }
.blog-empty-icon, .blog-error-icon { font-size: 34px; margin-bottom: 14px; }
.blog-error button, .blog-load-more {
  font: inherit; font-size: 14px; font-weight: 800; color: var(--maroon); background: var(--gold);
  border: none; border-radius: 999px; padding: 13px 28px; cursor: pointer; margin-top: 18px;
}
.blog-load-more-wrap { text-align: center; margin-top: 44px; }

/* ---- article page ---- */
.blog-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--maroon); margin-bottom: 28px; text-decoration: none; }
.blog-back-link:hover { color: var(--gold-deep); }
.blog-article-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
/* HEIGHT, NOT max-height. An <img> with no intrinsic dimensions is zero pixels tall
   until it loads, so the whole article used to jump down when the hero arrived —
   the remaining CLS 0.188 on an article page after the related-articles block was
   fixed. A fixed height reserves the box before the bytes arrive, and object-fit
   below already crops to it, so what renders afterwards is unchanged for the 16:9
   thumbnails the blog agent produces. */
.blog-hero-image { width: 100%; height: 440px; object-fit: cover; border-radius: 24px; margin-bottom: 32px; box-shadow: 0 20px 40px -24px var(--shadow-color); }
.blog-article-title { font-size: 36px; font-weight: 400; color: var(--maroon); line-height: 1.25; margin: 0 0 16px; }
.blog-article-excerpt { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 32px; }
.blog-related-title { font-size: 22px; font-weight: 400; color: var(--maroon); margin: 0 0 24px; text-align: center; }

@media (max-width: 900px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-media { min-height: 220px; }
  .blog-featured-body { padding: 30px; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-article-title { font-size: 27px; }
  .blog-hero-image { height: 260px; }
}

/* Readable service guides and linked blog archives. */
.landing-guide { max-width: 920px; margin: 0 auto; padding: 48px 24px 64px; line-height: 1.8; overflow-wrap: anywhere; }
.landing-guide h2 { margin: 32px 0 14px; color: var(--maroon); font-family: Georgia, serif; font-size: 28px; line-height: 1.3; }
.landing-guide h3 { margin: 26px 0 10px; color: var(--maroon); font-size: 19px; line-height: 1.4; }
.landing-guide p { margin: 0 0 18px; color: var(--ink-soft); }
.landing-guide a { color: var(--maroon); text-decoration: underline; text-underline-offset: 3px; }
.blog-filter-bar nav, .archive-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.archive-pagination a { padding: 12px 18px; color: var(--maroon); text-decoration: underline; }
.blog-card-title { overflow-wrap: anywhere; }
#app-3d-poster { max-width: 100%; height: 281px; object-fit: contain; margin-bottom: 16px; }
.app-3d-model[hidden], #app-3d-poster[hidden], #app-3d-load[hidden] { display: none; }
#app-3d-status { text-align: center; }
@media (max-width: 760px) {
  .astro-marquee-wrap { width: 100%; margin-left: 0; padding-inline: 0; }
  .app-panel { padding: 28px 20px; gap: 24px; }
  .svc-grid[style] { grid-template-columns: minmax(0, 1fr) !important; }
  /* The Choghadiya and Hora tables are a Day/Night pair. Two columns of timings
     do not fit a phone -- measured at 375px, the Night table ran to a document
     width of 581px, which is a horizontal scroll on the whole page. The grid is
     set inline on the element, so this needs !important to win. */
  .panchang-split[style] { grid-template-columns: minmax(0, 1fr) !important; gap: 20px !important; }
  .landing-guide { padding: 28px 20px 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .astro-marquee-track, .ch-zodiac-bg { animation: none !important; }
}

/* Horizontal entrance offsets must not widen small screens before scrolling. */
@media (max-width: 760px) {
  .reveal-slide-right:not(.is-visible), .reveal-slide-left:not(.is-visible) { transform: translateY(24px); }
}

/* THE RELATED-ARTICLES BLOCK IS FILLED AFTER A SECOND FETCH, so until it lands the
   container is zero pixels tall and everything below it jumps when it arrives.
   Measured on a GitHub runner with mobile throttling, 2026-10-30: CLS 0.206 on an
   article page, against a target of 0.1. Same cause as the astrologer grids, and the
   same fix -- hold the space.

   Heights are measured from the live page with its three related cards: 613px across
   at desktop, 1586px stacked on a phone. Reserved slightly over, because aw/blog.js
   clears this the moment the block resolves, so an over-reservation lasts only as
   long as the loading it is covering and can never leave a lasting gap. */
#blog-related-root { min-height: 620px; }
@media (max-width: 900px) { #blog-related-root { min-height: 1600px; } }

/* Homepage only (the bands that follow the hero wrapper): the browser skips
   style, layout and paint for a section while it is off screen, and renders it
   as it nears the viewport. The homepage is ~2,200 elements with two endlessly
   scrolling astrologer strips; Lighthouse measured 7.9 s of main-thread work on
   a phone, almost all of it rendering, not script (2026-11-16). `auto 900px`
   is only the placeholder height before a section has been rendered once; after
   that the browser remembers the real height, so the scrollbar settles. */
.ch-wrap ~ .band { content-visibility: auto; contain-intrinsic-size: auto 900px; }
