/* Hastgy landing — the app's theme (ui/theme/Color.kt): the deep night-blue ground (surface #090C2E), indigo cards
   with a gold rim (colorBorderCard), the gold CTA gradient (brushCta) with dark text, cream and lilac text, the six aspect
   colours. Noto Serif SemiBold for titles, Noto Sans for text (res/font). Logical properties throughout so Arabic
   (dir="rtl") mirrors cleanly. Smoothness: only transform / opacity animate; blur and backdrop filters are off on
   touch devices (.lite); every demo starts when it comes near. */

:root {
  --ground-0: #060b29;
  --ground: #07174d;
  --ground-1: #0c3386;
  --glass-0: rgba(31, 47, 150, .34);
  --glass-1: rgba(12, 10, 51, .8);
  --glass-flat: rgba(12, 10, 51, .7);
  --glass-deep: rgba(6, 9, 36, .97);
  --glass-line: rgba(216, 180, 102, .28);
  --field: rgba(2, 6, 33, .85);
  --accent-0: #2f3b8a;
  --accent: #d8b466;
  --accent-1: #e8d36e;
  --accent-hi: #f5eaae;
  --grad: linear-gradient(180deg, #f5eaae 0%, #e8d36e 45%, #d6bc4a 100%);
  --grad-text: linear-gradient(100deg, #f5eaae, #e2c27a 55%, #d8b466);
  --rim: linear-gradient(140deg, rgba(245, 234, 174, .7), rgba(216, 180, 102, .16) 50%, rgba(216, 180, 102, .55));
  --gold-0: #f5eaae;
  --gold: #e2c27a;
  --gold-1: #d6bc4a;
  --ivory: #f6f4ff;
  --body: #c7c1f2;
  --muted: #9aa2ee;
  --cream: #efe3cb;
  --lilac: #c9b5ff;
  --track: #1b1a4f;
  --tab-off: #2f3b8a;
  --on-gold: #1b1a4f;
  --shadow: 0 14px 34px rgba(0, 1, 12, .5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  --glow: 0 10px 28px rgba(227, 203, 90, .28);
  --font-display: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --font: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 20px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
html[lang="hi"] { --font-display: 'Noto Serif Devanagari', 'Noto Serif', serif; --font: 'Noto Sans Devanagari', 'Noto Sans', system-ui, sans-serif; }
html[lang="ar"] { --font-display: 'Noto Naskh Arabic', serif; --font: 'Noto Sans Arabic', 'Noto Sans', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
/* the ground lives on <html> so the fixed night sky (.nebula, z-index -1) paints above it — a body background would cover it */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; background: linear-gradient(180deg, var(--ground-0) 0%, var(--ground) 55%, var(--ground-1) 100%) fixed var(--ground-0); }
body {
  margin: 0; font-family: var(--font); color: var(--body); font-size: 16px; line-height: 1.6;
  background: transparent;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; min-height: 100vh;
}
html[dir="rtl"] body { line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
.flip-x { transform: scaleX(-1); }
html[dir="rtl"] .ic.flip-x { transform: none; }
html[dir="rtl"] .icon-btn .ic:not(.flip-x), html[dir="rtl"] .btn .ic-dir { transform: scaleX(-1); }
.i18n-wait main, .i18n-wait .site-header { opacity: 0; }
main, .site-header { transition: opacity .25s; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--ivory); color: var(--ground); border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.container { width: min(1180px, 100%); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; } /* a shadow would paint over the clipped gold */

/* ---------- the night sky (public/js/sky.js): moonlight, painted clouds drifting, stars; fixed and cheap ---------- */
.nebula { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(48vmax 40vmax at 12% 0%, rgba(239, 227, 203, .1), transparent 70%),
    radial-gradient(70vmax 40vmax at 50% 108%, rgba(40, 80, 190, .45), transparent 70%),
    linear-gradient(180deg, #060b29 0%, #09113e 25%, #07174d 52%, #081f60 76%, #0c3386 100%); }
/* a faint canvas weave over everything, like the oil paintings of the app */
.nebula::after { content: ''; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.lite .nebula::after { display: none; }
.sky-stars { position: absolute; left: 0; top: 0; width: 100%; height: 100lvh; }
.sky-clouds { position: absolute; left: 0; will-change: transform; animation: drift var(--dur, 180s) linear infinite; }
.sky-clouds img { position: absolute; max-width: none; height: auto; pointer-events: none; }
@keyframes drift { to { transform: translate3d(-50%, 0, 0); } }
.sky-twinkle { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fffaf0; box-shadow: 0 0 6px 2px rgba(255, 250, 235, .45); transform: scale(var(--s, 1)); opacity: .2; animation: twinkle 4s ease-in-out infinite; }
.sky-twinkle.gold { background: #f5eaae; box-shadow: 0 0 7px 2px rgba(245, 234, 174, .5); }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }

/* ---------- buttons ---------- */
.btn {
  --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h);
  padding: 0 22px; border-radius: 999px; border: 0; font-weight: 700; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; transition: transform .25s var(--spring), box-shadow .25s, background-color .2s, opacity .2s;
  -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { color: var(--on-gold); background: var(--grad); box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(232, 211, 110, .45), inset 0 1px 0 rgba(255, 255, 255, .35); transform: translateY(-2px); }
.btn-primary:disabled { background: rgba(199, 193, 242, .12); color: #8f91a3; box-shadow: inset 0 0 0 1px rgba(199, 193, 242, .18); cursor: not-allowed; transform: none; }
.btn-glass { color: var(--ivory); background: rgba(47, 59, 138, .32); box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(60, 74, 165, .42); transform: translateY(-2px); }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--ivory); background: rgba(47, 59, 138, .42); box-shadow: inset 0 0 0 1px var(--glass-line); transition: transform .2s var(--spring), background-color .2s; }
.icon-btn:hover { background: rgba(60, 74, 165, .55); }
.icon-btn:active { transform: scale(.92); }
.chip-btn { border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); background: rgba(232, 211, 110, .1); box-shadow: inset 0 0 0 1px rgba(232, 211, 110, .35); }
.chip-btn[aria-pressed="true"], .chip-btn:disabled { opacity: .5; cursor: default; }

/* ---------- glass ---------- */
.glass {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--glass-0), var(--glass-1));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--rim); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.lite .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(160deg, rgba(31, 40, 110, .9), rgba(9, 12, 46, .94)); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; padding-top: env(safe-area-inset-top); transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.is-scrolled { background: rgba(9, 12, 46, .78); box-shadow: 0 1px 0 rgba(216, 180, 102, .14), 0 10px 30px rgba(0, 0, 0, .3); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.lite .site-header.is-scrolled { background: rgba(9, 12, 46, .96); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-inner { position: relative; height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 6px 18px rgba(216, 180, 102, .45); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ivory); line-height: 1; display: flex; flex-direction: column; letter-spacing: .04em; }
.brand-name small { font-family: var(--font); font-size: 9.5px; font-weight: 700; letter-spacing: .32em; color: var(--accent-hi); text-transform: uppercase; margin-top: 3px; }
.main-nav { display: flex; gap: 2px; margin-inline-start: auto; }
.main-nav a { position: relative; padding: 9px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .2s, background-color .2s; white-space: nowrap; }
.main-nav a:hover { color: var(--ivory); background: rgba(216, 180, 102, .14); }
.main-nav a.is-active { color: var(--ivory); background: rgba(216, 180, 102, .22); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-menu { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(47, 59, 138, .3); box-shadow: inset 0 0 0 1px var(--glass-line); color: var(--ivory); font-weight: 700; font-size: 13px; }
.lang-btn .chev { width: 14px; height: 14px; transition: transform .2s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 210px; max-height: min(70vh, 460px); overflow: auto; margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: var(--glass-deep); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--glass-line); z-index: 10; }
.lang-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--body); }
.lang-list li small { color: var(--muted); font-weight: 700; font-size: 11px; letter-spacing: .08em; }
.lang-list li:hover, .lang-list li:focus { background: rgba(216, 180, 102, .2); outline: none; color: var(--ivory); }
.lang-list li[aria-selected="true"] { color: var(--ivory); background: rgba(216, 180, 102, .3); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(47, 59, 138, .3); box-shadow: inset 0 0 0 1px var(--glass-line); position: relative; }
.menu-toggle span { position: absolute; inset-inline-start: 12px; width: 18px; height: 2px; border-radius: 2px; background: var(--ivory); transition: transform .25s, top .25s; }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 24px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.progress-track { position: absolute; inset: auto 0 0; height: 2px; }
.progress-fill { height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
html[dir="rtl"] .progress-fill { transform-origin: 100% 50%; }
.site-header.is-compact .main-nav { display: none; }
.site-header.is-compact .menu-toggle { display: block; }
/* the nav folded into the menu button (narrow screens, or the compact header): the actions keep the right corner (left
   in Arabic) and the menu drops down from the button, at that corner */
.site-header.is-compact .header-actions { margin-inline-start: auto; }
.site-header .main-nav.is-open { display: flex; position: absolute; top: calc(100% - 4px); inset-inline-end: max(20px, env(safe-area-inset-right)); width: min(280px, calc(100vw - 32px)); flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 8px; border-radius: 18px; background: var(--glass-deep); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--glass-line); transform-origin: 100% 0; animation: menu-in .22s var(--ease) both; }
html[dir="rtl"] .site-header .main-nav.is-open { transform-origin: 0 0; }
.site-header .main-nav.is-open a { padding: 12px 16px; border-radius: 12px; font-size: 16px; text-align: start; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }

/* ---------- section scaffolding ---------- */
.section { position: relative; padding: clamp(72px, 9vw, 120px) 0; overflow-x: clip; }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 0 14px; padding: 7px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); background: rgba(216, 180, 102, .14); box-shadow: inset 0 0 0 1px rgba(216, 180, 102, .28); }
.kicker .ic { color: var(--gold); }
.kicker.small { font-size: 11px; padding: 5px 12px; margin-bottom: 8px; }
html[lang="ar"] .kicker, html[lang="hi"] .kicker { letter-spacing: 0; text-transform: none; font-size: 14px; }
.section-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.12; color: var(--ivory); letter-spacing: .01em; text-shadow: 0 2px 18px rgba(6, 11, 41, .7), 0 0 34px rgba(110, 130, 255, .3); text-wrap: balance; }
.section-sub { margin: 18px auto 0; max-width: 640px; font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); text-wrap: pretty; text-shadow: 0 1px 12px rgba(6, 11, 41, .85); }
.section-sub.small { font-size: 14.5px; margin: 6px 0 0; }
.card-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.25; color: var(--ivory); }
.read-card { padding: 22px 24px; }
.read-title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--ivory); }
.read-title .ic { color: var(--gold); }
.read-meta { margin: -4px 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sign); }
.read-body { margin: 0; color: var(--body); font-size: 15.5px; line-height: 1.7; }
.form-note, .sample-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.form-note .ic, .sample-note .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--accent-hi); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(9, 12, 46, .55); box-shadow: inset 0 0 0 1px rgba(216, 180, 102, .16); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 999px; padding: 9px 16px; background: none; color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; transition: color .2s, background-color .25s, box-shadow .25s; }
.tabs button:hover { color: var(--ivory); }
.tabs button[aria-selected="true"] { color: #fff; background: var(--grad); box-shadow: 0 6px 18px rgba(227, 203, 90, .4); }

/* ---------- fields ---------- */
.form-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.form-title { margin: 0 0 4px; font-family: var(--font-display); font-size: 20px; color: var(--ivory); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.field-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .field-label, html[lang="hi"] .field-label { text-transform: none; letter-spacing: 0; font-size: 14px; }
.input { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 14px; border: 0; background: var(--field); color: var(--ivory); font-size: 16px; box-shadow: inset 0 0 0 1px rgba(216, 180, 102, .22); transition: box-shadow .2s, background-color .2s; color-scheme: dark; }
.input::placeholder { color: rgba(199, 193, 242, .65); }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px rgba(216, 180, 102, .18); background: rgba(20, 26, 80, .85); }
.input:disabled { opacity: .45; }
.input[type="date"], .input[type="time"] { font-variant-numeric: tabular-nums; }
.input[type="date"]::-webkit-calendar-picker-indicator, .input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(.8) sepia(.5) hue-rotate(220deg); cursor: pointer; }
textarea.input { resize: none; line-height: 1.5; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--body); -webkit-user-select: none; user-select: none; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(199, 193, 242, .6); transition: background-color .2s, box-shadow .2s; }
.check-box .ic { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s var(--spring); }
.check input:checked + .check-box { background: var(--grad); box-shadow: 0 0 12px rgba(216, 180, 102, .6); }
.check input:checked + .check-box .ic { opacity: 1; transform: none; }
.check input:focus-visible + .check-box { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.form-error { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #ffd6d6; background: rgba(248, 57, 57, .14); box-shadow: inset 0 0 0 1px rgba(248, 57, 57, .35); }
.place-field { position: relative; }
.place-box { position: relative; }
.place-box .ic { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--accent-hi); width: 18px; height: 18px; pointer-events: none; }
.place-box .input { padding-inline-start: 42px; }
.place-list { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none; max-height: 280px; overflow: auto; border-radius: 16px; background: var(--glass-deep); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--glass-line); overscroll-behavior: contain; }
.place-list li { padding: 10px 12px; border-radius: 10px; cursor: pointer; line-height: 1.35; }
.place-list li b { display: block; color: var(--ivory); font-weight: 700; font-size: 15px; }
.place-list li small { color: var(--muted); font-size: 12.5px; }
.place-list li[aria-selected="true"], .place-list li:hover { background: rgba(216, 180, 102, .24); }
.place-list li.place-msg { cursor: default; color: var(--muted); font-size: 13.5px; }
.place-list li.place-msg:hover { background: none; }

/* ============ HERO ============ */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: center; padding: calc(var(--header-h) + 28px) 0 70px; overflow-x: clip; }
.hero-grid { position: relative; }
.hero-copy { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "chip visual" "title visual" "sub visual" "ctas visual" "feats visual"; column-gap: 40px; align-items: center; }
.live-chip { grid-area: chip; align-self: end; justify-self: start; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; padding: 8px 16px; border-radius: 999px; font-size: 13.5px; color: var(--body); background: rgba(12, 10, 51, .66); box-shadow: inset 0 0 0 1px rgba(232, 211, 110, .32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.live-chip b { color: var(--gold); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; }
html[lang="ar"] .live-chip b, html[lang="hi"] .live-chip b { text-transform: none; letter-spacing: 0; font-size: 13px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(232, 211, 110, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232, 211, 110, .6); } 70% { box-shadow: 0 0 0 10px rgba(232, 211, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 211, 110, 0); } }
.hero-title { grid-area: title; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.05; color: var(--ivory); letter-spacing: .005em; text-shadow: 0 0 40px rgba(110, 130, 255, .45); text-wrap: balance; }
.hero-title em { display: inline; }
.hero-sub { grid-area: sub; margin: 22px 0 0; max-width: 560px; font-size: clamp(16.5px, 1.6vw, 19px); color: var(--body); text-shadow: 0 1px 12px rgba(6, 11, 41, .85); }
.hero-ctas { grid-area: ctas; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-features { grid-area: feats; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-features li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--body); background: rgba(12, 10, 51, .55); box-shadow: inset 0 0 0 1px rgba(216, 180, 102, .18); }
.hero-features .ic { width: 16px; height: 16px; color: var(--accent-hi); }
.hero-visual { grid-area: visual; position: relative; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stage3d { position: relative; width: 100%; aspect-ratio: 1; max-width: 640px; margin-inline: auto; touch-action: pan-y; }
.stage3d::before { content: ''; position: absolute; inset: 0 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(90, 110, 220, .32), rgba(150, 170, 255, .08) 60%, transparent); }
.stage3d { cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* the fallback art stays under the canvas: it must never catch the pointer, or the browser starts an image drag and
   cancels the spin (pointercancel) */
.stage3d img { pointer-events: none; -webkit-user-drag: none; }
.stage3d:active, .stage3d.is-grabbing { cursor: grabbing; }
/* the canvas bleeds past the square so orbiting cards never meet a hard edge; the stage itself takes the pointer */
.stage3d canvas { position: absolute; inset: -12%; width: 124% !important; height: 124% !important; pointer-events: none; }
/* the scene fades out before the canvas edge, so a drifting cloud never meets a hard line */
.stage3d canvas { -webkit-mask: radial-gradient(50% 50% at 50% 50%, #000 84%, transparent 100%); mask: radial-gradient(50% 50% at 50% 50%, #000 84%, transparent 100%); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.stage-tip { position: absolute; top: 12%; inset-inline: 0; margin: 0 auto; width: max-content; max-width: 90%; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ivory); background: rgba(6, 9, 36, .82); box-shadow: inset 0 0 0 1px rgba(232, 211, 110, .4), var(--shadow); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.stage-tip.is-shown { opacity: 1; transform: none; }
.stage-hint { display: flex; align-items: center; gap: 8px; max-width: 420px; margin: 4px auto 0; font-size: 12.5px; color: var(--muted); text-align: start; justify-content: center; }
.stage-hint .ic { width: 16px; height: 16px; color: var(--gold); }
.scroll-cue { position: absolute; bottom: 22px; inset-inline-start: 50%; width: 26px; height: 42px; margin-inline-start: -13px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(216, 180, 102, .5); }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent-hi); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
.is-paused .stage-fallback, .is-paused .stage-core, .is-paused .live-dot { animation-play-state: paused; }

/* until three.js takes over (or without WebGL): a crescent moon in CSS, in its halo */
/* the hand until the scene takes over: the same share of the stage as in hero3d.js (HAND / STAGE_H = 4.3 / 5.4) */
.stage-fallback { position: absolute; top: 0; left: 50%; height: 79.6%; width: auto; max-width: none; transform: translateX(-50%); -webkit-mask: linear-gradient(to top, transparent, #000 20%); mask: linear-gradient(to top, transparent, #000 20%); }
.stage3d.is-3d .stage-fallback { opacity: 0; transition: opacity .8s; }

/* ---------- shared bits of the app's reading screens ---------- */
.overline { margin: 0 0 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); text-align: center; }
.overline.start { text-align: start; }
.overline.gold { color: var(--gold); }
html[lang="ar"] .overline, html[lang="hi"] .overline { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
/* UnderlineTabs: the chosen tab in gold with a 66 × 2 gold line, the others #2F3B8A */
.u-tabs { display: flex; border-bottom: 1px solid var(--tab-off); margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; }
.u-tabs::-webkit-scrollbar { display: none; }
.u-tabs button { position: relative; flex: 1 0 auto; min-width: 80px; padding: 10px 12px 12px; border: 0; background: none; font-size: 14px; color: #6f78c9; white-space: nowrap; transition: color .2s; }
.u-tabs button:hover { color: var(--body); }
.u-tabs button[aria-selected="true"] { color: var(--gold); }
.u-tabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: min(66px, 80%); height: 2px; transform: translateX(-50%); background: var(--grad-text); border-radius: 2px; }
.card-title { font-family: var(--font-display); font-weight: 600; }
.balance-title { margin: 4px 0 12px; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ivory); }
/* AspectChart: x/10 over a 28-wide track, filled dark → light */
.aspect-chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 16px 10px 12px; margin-bottom: 20px; border-radius: 20px; background: rgba(2, 6, 33, .7); box-shadow: inset 0 0 0 1px var(--glass-line); }
.aspect-chart .bar { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.aspect-chart b { font-size: 12px; font-weight: 600; color: var(--ivory); font-variant-numeric: tabular-nums; }
.aspect-chart .track { position: relative; width: 28px; height: 120px; border-radius: 14px; background: var(--track); overflow: hidden; }
.aspect-chart .track i { position: absolute; inset: auto 0 0; height: var(--h); border-radius: 14px; background: linear-gradient(180deg, var(--dark), color-mix(in srgb, var(--light) 55%, transparent)); transform-origin: 50% 100%; transition: transform .9s var(--ease), height .5s var(--ease); }
.aspect-chart.is-grow .track i { transform: scaleY(0); transition: none; }
.aspect-chart small { max-width: 100%; font-size: 10.5px; color: var(--body); text-align: center; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: normal; line-height: 1.25; }
.aspect-list { list-style: none; margin: 0; padding: 4px 16px; border-radius: 20px; background: rgba(2, 6, 33, .7); box-shadow: inset 0 0 0 1px var(--glass-line); position: relative; }
.aspect-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--track); }
.aspect-row:last-of-type { border-bottom: 0; }
.aspect-row img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--dark) 70%, transparent); }
.aspect-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 4px; }
.aspect-head b { font-size: 14px; font-weight: 500; color: var(--dark); }
.aspect-head .score { padding: 1px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--dark); background: color-mix(in srgb, var(--dark) 18%, transparent); }
.aspect-text { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ivory); }
.aspect-unlock { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); list-style: none; z-index: 2; }
.aspect-unlock .unlock { margin: 0; }
.is-locked-row .aspect-text, li.is-locked-row .aspect-text { filter: blur(5px); opacity: .7; -webkit-user-select: none; user-select: none; }
.aspect-row.is-locked-row { filter: none; opacity: 1; pointer-events: none; }
.aspect-row.is-locked-row .score { filter: blur(3px); }
.lite .is-locked-row .aspect-text { filter: none; color: transparent; text-shadow: 0 0 9px rgba(246, 244, 255, .7); }

/* ============ PALM SCAN ============ */
.scan-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.scan-cam { display: flex; flex-direction: column; gap: 14px; max-width: 460px; width: 100%; justify-self: center; }
.hand-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hand-pick button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 0; border-radius: 14px; font-weight: 600; font-size: 14.5px; color: var(--body); background: rgba(2, 6, 33, .7); box-shadow: inset 0 0 0 1px var(--glass-line); transition: background-color .2s, box-shadow .2s, color .2s; }
.hand-pick button[aria-checked="true"] { color: var(--cream); background: linear-gradient(180deg, rgba(216, 180, 102, .22), rgba(31, 47, 150, .6)); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 16px rgba(217, 178, 102, .22); }
.hand-pick .ic { width: 20px; height: 20px; color: var(--gold); }
.cam-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px; overflow: hidden; background: #0d1446 url(/img/art/palm-bg.webp) 50% 50% / cover no-repeat; /* the painting's ground stays; only the hand moves */ box-shadow: 0 0 0 1.5px rgba(216, 180, 102, .55), var(--shadow-lg); isolation: isolate; }
.cam-hand { position: absolute; inset: 0; transition: transform .8s var(--ease), opacity .6s, filter .6s; }
.cam-hand img { width: 100%; height: 100%; object-fit: cover; }
/* palm-cut.webp (Figma asset:hand_left) is a right palm, thumb on the right: mirrored for the left hand */
.cam-frame:not(.is-right) .cam-hand { scale: -1 1; }
.cam-frame[data-phase="far"] .cam-hand { transform: scale(.62) translate(18%, 22%); opacity: .55; filter: blur(1.5px); }
.cam-frame[data-phase="closer"] .cam-hand { transform: scale(.8) translate(12%, 10%); }
.cam-frame[data-phase="center"] .cam-hand { transform: scale(.94); }
.cam-frame[data-phase="spread"] .cam-hand { transform: scale(1.02); }
.cam-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.cam-lines path { fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(245, 234, 174, .8)); stroke-dasharray: var(--len); stroke-dashoffset: var(--len); opacity: 0; transition: stroke-dashoffset 1s var(--ease), opacity .3s; }
.cam-lines path.is-on { stroke-dashoffset: 0; opacity: 1; }
.lite .cam-lines path { filter: none; }
.cam-frame::before { content: ''; position: absolute; inset: auto -12% -3%; height: 30%; z-index: 1; pointer-events: none; opacity: .9; background: url(/img/cloud/6.webp) 0 100% / 62% auto no-repeat, url(/img/cloud/3.webp) 100% 85% / 58% auto no-repeat, linear-gradient(180deg, transparent, rgba(13, 20, 70, .8)); }
.cam-beam { position: absolute; inset-inline: 0; top: 0; height: 26%; background: linear-gradient(180deg, transparent, rgba(245, 234, 174, .22) 70%, rgba(245, 234, 174, .85) 98%, transparent); opacity: 0; pointer-events: none; }
.cam-frame[data-phase="lines"] .cam-beam { opacity: 1; animation: beam 1.1s linear infinite; }
@keyframes beam { from { transform: translateY(-30%); } to { transform: translateY(330%); } }
.cam-frame[data-phase="shot"]::after { content: ''; position: absolute; inset: 0; background: #fff; animation: shot .45s ease-out both; pointer-events: none; }
@keyframes shot { from { opacity: .85; } to { opacity: 0; } }
.cam-corner { position: absolute; width: 34px; height: 34px; border: 3px solid var(--gold); opacity: .9; transition: border-color .3s; }
.cam-corner.c1 { top: 22%; inset-inline-start: 12%; border-width: 3px 0 0 3px; border-start-start-radius: 10px; }
.cam-corner.c2 { top: 22%; inset-inline-end: 12%; border-width: 3px 3px 0 0; border-start-end-radius: 10px; }
.cam-corner.c3 { bottom: 8%; inset-inline-start: 12%; border-width: 0 0 3px 3px; border-end-start-radius: 10px; }
.cam-corner.c4 { bottom: 8%; inset-inline-end: 12%; border-width: 0 3px 3px 0; border-end-end-radius: 10px; }
html[dir="rtl"] .cam-corner.c1 { border-width: 3px 3px 0 0; } html[dir="rtl"] .cam-corner.c2 { border-width: 3px 0 0 3px; }
html[dir="rtl"] .cam-corner.c3 { border-width: 0 3px 3px 0; } html[dir="rtl"] .cam-corner.c4 { border-width: 0 0 3px 3px; }
.cam-frame[data-phase="ready"] .cam-corner, .cam-frame[data-phase="lines"] .cam-corner { border-color: #3de6a8; }
.cam-status { position: absolute; left: 50%; bottom: 14%; z-index: 2; display: inline-flex; align-items: center; gap: 6px; max-width: 86%; margin: 0; padding: 7px 14px; border-radius: 8px; font-size: 12.5px; color: #fff; white-space: nowrap; background: rgba(17, 17, 17, .5); transform: translate(-50%, 8px); opacity: 0; transition: opacity .25s, transform .25s, background-color .25s; }
.cam-status.is-shown { opacity: 1; transform: translate(-50%, 0); }
.cam-status.is-bad { background: #f83939; }
.cam-status.is-ok { background: #0d824b; }
.cam-status .ic { width: 16px; height: 16px; flex: none; }
.cam-status span { overflow: hidden; text-overflow: ellipsis; }
.cam-loading { padding: 14px 16px; border-radius: 16px; background: rgba(2, 6, 33, .75); box-shadow: inset 0 0 0 1px var(--glass-line); }
.cam-meter { height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; }
.cam-meter i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
html[dir="rtl"] .cam-meter i { transform-origin: 100% 50%; }
.cam-loading-title { display: flex; justify-content: space-between; gap: 10px; margin: 10px 0 6px; font-family: var(--font-display); font-weight: 600; color: var(--ivory); }
.cam-loading-title b { color: var(--gold); font-variant-numeric: tabular-nums; }
.cam-fact { margin: 0; font-size: 13px; line-height: 1.5; color: var(--body); }
.cam-fact b { color: var(--gold); font-weight: 600; }
.scan-result { padding: 22px 24px; min-height: 460px; }
.scan-result .card-title { margin: 0 0 12px; font-size: 22px; }
.pane-wait { margin: 40px 0; text-align: center; color: var(--muted); }
.summary-card { padding: 16px 18px; margin-bottom: 18px; border-radius: 18px; background: rgba(2, 6, 33, .7); box-shadow: inset 0 0 0 1px var(--glass-line); }
.summary-card h4 { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .summary-card h4, html[lang="hi"] .summary-card h4 { letter-spacing: 0; text-transform: none; font-size: 14px; }
.summary-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ivory); }
.lines, .insights { position: relative; }
.line-read { padding: 12px 0; border-top: 1px solid var(--track); }
.line-read h5 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--c); }
.line-read h5 i { width: 4px; height: 18px; border-radius: 2px; background: var(--c); }
.line-read p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.6; color: var(--body); }
.line-read .facet .lbl { color: var(--gold); font-weight: 600; }
.line-read.is-locked-row { filter: none; opacity: 1; }
.line-read.is-locked-row p { filter: blur(5px); opacity: .6; -webkit-user-select: none; user-select: none; }
.lite .line-read.is-locked-row p { filter: none; color: transparent; text-shadow: 0 0 9px rgba(199, 193, 242, .75); }
.lines > .unlock, .insights > .unlock { position: absolute; left: 50%; top: 62%; transform: translate(-50%, -50%); margin: 0; z-index: 2; }
.lines > .unlock:hover, .insights > .unlock:hover { transform: translate(-50%, calc(-50% - 2px)); }
.insight { padding: 12px 0; border-top: 1px solid var(--track); }
.insight h5 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--gold); }
.insight p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ivory); }
.insight.is-locked-row { filter: none; opacity: 1; }
.insight.is-locked-row p, .bullets li.is-locked-row { filter: blur(5px); opacity: .6; -webkit-user-select: none; user-select: none; }
.bullets { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; font-size: 13.5px; color: var(--ivory); }
.bullets li::marker { color: var(--gold); }

/* ============ LIFE GUIDE ============ */
.guide-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.guide-art { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.guide-art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.guide-art figcaption { display: grid; gap: 4px; padding: 16px 18px 18px; background: linear-gradient(180deg, rgba(9, 12, 46, .9), rgba(2, 6, 33, .98)); }
.guide-art figcaption b { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ivory); }
.guide-art figcaption span { font-size: 14px; color: var(--body); }
.guide-card { padding: 20px 22px; }

/* ============ COMPATIBILITY ============ */
.match-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.match-pick, .match-result { padding: 20px 22px; }
.match-pick .tabs { margin-bottom: 18px; }
.tabs button[aria-selected="true"] { color: var(--on-gold); }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 16px; margin-bottom: 14px; border-radius: 20px; background: linear-gradient(180deg, rgba(216, 180, 102, .14), rgba(31, 47, 150, .5)); box-shadow: inset 0 0 0 1px var(--glass-line); }
.slot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border: 0; border-radius: 16px; background: none; color: var(--ivory); transition: background-color .2s; }
.slot img, .slot-empty { width: 72px; height: 72px; border-radius: 50%; }
.slot img { box-shadow: 0 0 0 2px rgba(216, 180, 102, .7); }
.slot-empty { display: grid; place-items: center; background: rgba(2, 6, 33, .7); box-shadow: inset 0 0 0 1.5px rgba(216, 180, 102, .35); color: var(--gold); }
.slot.is-active { background: rgba(216, 180, 102, .1); }
.slot b { font-size: 14px; font-weight: 600; }
.slot small { font-size: 12px; color: var(--muted); }
.pair-heart { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #ff6fa3; background: rgba(255, 111, 163, .12); }
.sign-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.sign { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; border: 0; border-radius: 16px; background: rgba(2, 6, 33, .6); box-shadow: inset 0 0 0 1px rgba(216, 180, 102, .18); color: var(--ivory); transition: transform .2s var(--spring), box-shadow .2s, background-color .2s; }
.sign:hover { transform: translateY(-2px); }
.sign img { width: 56px; height: 56px; margin-bottom: 4px; border-radius: 50%; }
.sign b { font-size: 13px; font-weight: 600; }
.sign small { font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.3; }
.sign.is-you, .sign.is-partner, .sign.is-both, .sign.is-on { background: linear-gradient(180deg, rgba(216, 180, 102, .22), rgba(31, 47, 150, .6)); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 16px rgba(217, 178, 102, .22); }
.sign.is-partner { box-shadow: inset 0 0 0 1.5px #ff6fa3, 0 0 16px rgba(255, 111, 163, .2); }
.match-result { min-height: 420px; }
.match-result.is-in .pct-ring .arc { stroke-dashoffset: var(--off); }
.pair-card { text-align: center; padding: 16px; margin-bottom: 18px; border-radius: 20px; background: linear-gradient(180deg, rgba(216, 180, 102, .12), rgba(31, 47, 150, .45)); box-shadow: inset 0 0 0 1px var(--glass-line); }
.pair-imgs { display: flex; align-items: center; justify-content: center; gap: 14px; }
.pair-imgs img { width: 76px; height: 76px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(216, 180, 102, .7); }
.pct-wrap { position: relative; width: 72px; height: 72px; }
.pct-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.pct-ring circle { fill: none; stroke: var(--track); stroke-width: 6; }
.pct-ring .arc { stroke: var(--gold); stroke-linecap: round; stroke-dashoffset: 214; transition: stroke-dashoffset 1.1s var(--ease); }
.pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 700; color: var(--gold); }
.pair-card .card-title { margin: 10px 0 6px; font-size: 20px; }
.pair-summary { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ivory); }
.score-bars { display: grid; gap: 10px; margin-bottom: 18px; }
.score-row { display: grid; grid-template-columns: minmax(90px, auto) 1fr auto; align-items: center; gap: 12px; font-size: 13.5px; color: var(--body); }
.score-row .track { height: 8px; border-radius: 8px; background: var(--track); overflow: hidden; }
.score-row .track i { display: block; height: 100%; width: var(--w); border-radius: 8px; background: var(--grad); }
.score-row b { font-size: 13px; color: var(--gold); font-variant-numeric: tabular-nums; }
.match-locked { position: relative; }
.match-locked .is-locked-row { filter: blur(5px); opacity: .55; pointer-events: none; -webkit-user-select: none; user-select: none; }
.match-locked > .unlock { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); margin: 0; z-index: 2; }
.match-locked > .unlock:hover { transform: translate(-50%, calc(-50% - 2px)); }
.match-locked p { margin: 0 0 12px; font-size: 13.5px; color: var(--ivory); }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.insight-mini { padding: 12px; border-radius: 14px; background: rgba(2, 6, 33, .6); }
.insight-mini img { width: 32px; height: 32px; border-radius: 50%; }
.insight-mini b { display: block; margin: 6px 0 4px; font-size: 13px; color: var(--gold); }
.insight-mini p { margin: 0; font-size: 12px; color: var(--body); }
.matching { display: grid; place-items: center; gap: 14px; min-height: 360px; color: var(--cream); font-family: var(--font-display); font-weight: 600; }
.orb { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff8d8, #e8d36e 40%, rgba(216, 180, 102, .2) 70%, transparent 72%); box-shadow: 0 0 40px rgba(232, 211, 110, .5); animation: orb 1.2s ease-in-out infinite alternate; }
@keyframes orb { from { transform: scale(.85); opacity: .7; } to { transform: scale(1.05); opacity: 1; } }

/* ============ TAROT ============ */
.tarot-stage { padding: clamp(20px, 3vw, 32px); max-width: 980px; margin-inline: auto; }
.topic-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.topic { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border: 0; border-radius: 16px; background: rgba(2, 6, 33, .6); box-shadow: inset 0 0 0 1px rgba(216, 180, 102, .18); color: var(--cream); font-size: 13.5px; transition: transform .2s var(--spring), box-shadow .2s, background-color .2s; }
.topic img { width: 56px; height: 56px; border-radius: 50%; }
.topic.is-on { background: linear-gradient(180deg, rgba(216, 180, 102, .22), rgba(31, 47, 150, .6)); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 16px rgba(217, 178, 102, .22); }
.topic:hover { transform: translateY(-2px); }
.draw { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.draw-hint { margin: 0; white-space: pre-line; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
html[lang="ar"] .draw-hint, html[lang="hi"] .draw-hint { letter-spacing: 0; text-transform: none; font-size: 14px; }
.deck { position: relative; width: 100%; height: 400px; outline: none; overflow: hidden; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.deck.is-grabbing { cursor: grabbing; }
.fan.is-dragging .tcard { transition: none; } /* the wheel follows the finger; it eases only when it settles */
.deck-slot { position: absolute; left: 50%; top: 4px; width: 104px; height: 188px; margin-left: -52px; border-radius: 12px; border: 1.5px dashed rgba(216, 180, 102, .45); perspective: 900px; }
.deck-slot .flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s var(--ease); animation: rise .5s var(--ease) both; }
@keyframes rise { from { transform: translateY(120px) scale(.9); opacity: 0; } }
.deck-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; backface-visibility: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, .5), 0 0 22px rgba(217, 178, 102, .3); }
.deck-slot .front { transform: rotateY(180deg); }
.deck-slot.is-flipped .flip { transform: rotateY(180deg); }
.fan { position: absolute; left: 50%; top: 214px; width: 0; height: 0; }
.tcard { position: absolute; left: -46px; top: 0; width: 92px; height: 166px; padding: 0; border: 0; border-radius: 10px; background: none; transform-origin: 50% 620px; transition: transform .45s var(--ease), opacity .3s; will-change: transform; }
.tcard img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); }
.tcard.is-chosen img { box-shadow: 0 0 0 2px var(--gold), 0 0 26px rgba(217, 178, 102, .55); }
.tcard.is-gone { opacity: 0; }
.tarot-stage.is-reading .tcard { pointer-events: none; }
.deck-nav { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); }
.draw.is-done .deck, .draw.is-done .deck-nav, .draw.is-done #tarotRead, .draw.is-done .draw-hint { display: none; }
.reading { margin-top: 6px; }
.card-head { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; margin-bottom: 18px; }
.card-head img { width: 120px; border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5), 0 0 0 1.5px rgba(216, 180, 102, .6); animation: rise .5s var(--ease) both; }
.card-head .card-title { font-size: 26px; margin: 0; }
.reading-locked { position: relative; padding: 16px 18px; border-radius: 18px; background: rgba(2, 6, 33, .7); box-shadow: inset 0 0 0 1px var(--glass-line); }
.reading-locked .is-locked-row { pointer-events: none; }
.reading-locked h4 { margin-top: 10px; }
.skel { display: grid; gap: 7px; margin-bottom: 8px; }
.skel i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(199, 193, 242, .14), rgba(199, 193, 242, .3), rgba(199, 193, 242, .14)); }
.skel i:last-child { width: 62%; }
.reading-locked > .unlock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; z-index: 2; }
.reading-locked > .unlock:hover { transform: translate(-50%, calc(-50% - 2px)); }
.reading .again { margin: 16px auto 0; display: flex; }

/* ============ DAILY HOROSCOPE ============ */
.horo-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.horo-pick, .horo-result { padding: 20px 22px; }
.horo-pick .sign-grid { margin: 0; }
.horo-head { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; margin-bottom: 16px; }
.horo-head img { width: 76px; height: 76px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(216, 180, 102, .7); }
.horo-head .card-title { margin: 0; font-size: 22px; }
.sign-meta { margin: 2px 0 8px; font-size: 12.5px; color: var(--body); }
.date-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0; height: 28px; padding: 0 12px; border-radius: 14px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ivory); background: rgba(2, 6, 33, .8); box-shadow: inset 0 0 0 1px var(--glass-line); }
.date-chip .ic { width: 16px; height: 16px; color: var(--gold); }
.reading-card { padding: 16px; margin-bottom: 18px; border-radius: 18px; background: rgba(2, 6, 33, .7); box-shadow: inset 0 0 0 1px var(--glass-line); }
.reading-card .overline { margin-bottom: 8px; }
.character { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ivory); }


/* ============ FEATURES ============ */
.feature-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; perspective: 1400px; }
.qr-mini .qr-tile img { width: 80px; height: 80px; }
.feature { position: relative; display: flex; flex-direction: column; text-align: start; border: 0; padding: 0; border-radius: 20px; overflow: hidden; background: linear-gradient(170deg, rgba(31, 40, 110, .75), rgba(9, 12, 46, .9)); box-shadow: var(--shadow), inset 0 0 0 1px rgba(216, 180, 102, .2); transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .3s; --rx: 0deg; --ry: 0deg; }
.feature.is-in { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.feature:hover { box-shadow: 0 24px 50px rgba(0, 0, 0, .5), 0 0 30px rgba(227, 203, 90, .3), inset 0 0 0 1px rgba(245, 234, 174, .5); }
.feature-art { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.feature-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature:hover .feature-art img { transform: scale(1.06); }
.feature-text { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.feature-text b { font-family: var(--font-display); font-size: 17px; color: var(--ivory); line-height: 1.25; }
.feature-text span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.feature-sheen { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .16), transparent 45%); opacity: 0; transition: opacity .3s; }
.feature:hover .feature-sheen { opacity: 1; }

/* ============ DOWNLOAD ============ */
.download-card { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 32px; overflow: hidden; background: radial-gradient(circle at 15% 50%, rgba(232, 211, 110, .28), transparent 50%), linear-gradient(140deg, #2f3b8a, #0c0a33 70%); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(245, 234, 174, .3); }
.dl-art { position: relative; aspect-ratio: 1; width: min(100%, 380px); margin-inline: auto; }
.dl-scene { position: absolute; inset: 6% 0; width: 100%; height: 88%; object-fit: cover; border-radius: 999px 999px 28px 28px; box-shadow: 0 0 0 1.5px rgba(216, 180, 102, .6), var(--shadow-lg); }
.dl-icon { position: absolute; inset: auto 31% -4%; width: 38%; height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 24px 60px rgba(216, 180, 102, .65); animation: float 6s ease-in-out infinite; }
.dl-copy .section-title { text-align: start; }
.dl-copy .section-sub { margin-inline: 0; }
.dl-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.play-badge img { width: 200px; height: auto; }
.qr-mini { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); max-width: 200px; }
.qr-mini .qr-tile { padding: 8px; border-radius: 12px; background: #fff; flex: none; }
.qr-mini img { width: 80px; height: 80px; }
.dl-meta { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.is-paused .dl-icon { animation-play-state: paused; }

/* ============ FOOTER ============ */
.site-footer { position: relative; padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(216, 180, 102, .14); background: rgba(1, 2, 15, .6); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.footer-brand { max-width: 440px; }
.footer-brand p { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-content: flex-start; }
.footer-links a { font-size: 14.5px; font-weight: 600; color: var(--body); text-decoration: none; }
.footer-links a:hover { color: var(--ivory); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(216, 180, 102, .1); }
.footer-bottom p { margin: 0; font-size: 12.5px; color: rgba(199, 193, 242, .75); max-width: 760px; }

/* ============ DOCK · MODAL · TOAST ============ */
.get-dock { display: none; }
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 2, 14, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal-dialog { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; padding: 28px; border-radius: 26px; background: radial-gradient(circle at 50% 0%, rgba(216, 180, 102, .22), transparent 55%), var(--glass-deep); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--glass-line); animation: pop .35s var(--spring); outline: none; }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(47, 59, 138, .4); color: var(--ivory); }
.modal-app { display: flex; gap: 14px; align-items: center; padding-inline-end: 44px; }
.modal-app img { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 8px 22px rgba(216, 180, 102, .5); }
.modal-app-name { margin: 0; font-weight: 800; color: var(--ivory); }
.modal-app-meta { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.modal-title { margin: 22px 0 6px; font-family: var(--font-display); font-size: 24px; line-height: 1.25; color: var(--ivory); }
.modal-sub { margin: 0; color: var(--body); font-size: 15px; }
.modal-visual { display: flex; justify-content: center; gap: 10px; margin: 18px 0 0; }
.modal-visual:empty { display: none; }
.modal-visual img { height: 120px; width: auto; border-radius: 10px; box-shadow: 0 10px 26px rgba(0, 0, 0, .45); }
.modal-get { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(216, 180, 102, .14); }
.qr-block { text-align: center; }
.qr-block p { margin: 8px 0 0; font-size: 12px; color: var(--muted); max-width: 150px; }
.qr-tile { position: relative; padding: 10px; border-radius: 16px; background: #fff; }
.qr-tile img { width: 140px; height: 140px; }
.qr-logo { position: absolute; left: 50%; top: 50%; width: 34px !important; height: 34px !important; margin: -17px 0 0 -17px; border-radius: 9px; box-shadow: 0 0 0 4px #fff; }
.modal-actions .play-badge img { width: 180px; }
.modal-steps { margin: 14px 0 0; padding-inline-start: 20px; font-size: 14px; color: var(--body); display: grid; gap: 4px; }
.modal-steps .step-tap { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 500; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ivory); background: var(--glass-deep); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--glass-line); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
html.modal-open { overflow: hidden; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .main-nav a { padding: 8px 9px; font-size: 13.5px; }
}
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .header-actions { margin-inline-start: auto; }
  .chart-grid, .love-grid { grid-template-columns: minmax(0, 1fr); }
  .chart-grid .form-card { position: relative; top: 0; max-width: 620px; width: 100%; margin-inline: auto; }
  .love-form { max-width: 620px; width: 100%; margin-inline: auto; }
  .tarot-table { grid-template-columns: minmax(0, 1fr); }
  .ask { max-width: 620px; width: 100%; margin-inline: auto; }
  .scan-grid { grid-template-columns: minmax(0, 1fr); }
  .scan-card { max-width: 760px; width: 100%; margin-inline: auto; }
}
@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 22px); }
  .hero-copy { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chip" "title" "visual" "sub" "ctas" "feats"; text-align: center; justify-items: center; }
  .live-chip { justify-self: center; }
  .hero-visual { width: 100%; margin: 6px 0 0; }
  .stage3d { max-width: 520px; }
  .stage3d canvas { inset: 0; width: 100% !important; height: 100% !important; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas, .hero-features { justify-content: center; }
  .scroll-cue { display: none; }
  .chart-body { grid-template-columns: minmax(0, 1fr); }
  .wheel-wrap { max-width: 520px; width: 100%; margin-inline: auto; }
  .elements-card, .planet-read, #chartMore { max-width: 620px; width: 100%; margin-inline: auto; }
  .sky-grid { grid-template-columns: minmax(0, 1fr); }
  .planets-col { max-width: 620px; width: 100%; margin-inline: auto; }
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .talk-col { max-width: 620px; width: 100%; margin-inline: auto; }
  .pillars { grid-template-columns: minmax(0, 1fr); max-width: 680px; margin-inline: auto; }
  .download-card { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .dl-copy .section-title { text-align: center; }
  .dl-copy .section-sub { margin-inline: auto; }
  .dl-actions { justify-content: center; }
}
@media (max-width: 760px) {
  .love-view[data-view="score"].is-active { grid-template-columns: minmax(0, 1fr); }
  .score-ring { width: min(100%, 300px); }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; --radius: 20px; }
  .container { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .header-cta { display: none; }
  .brand-name { font-size: 20px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 30px; }
  .stage3d { aspect-ratio: 1; max-width: 420px; }
  .big-three { gap: 10px; }
  .sign-front { padding: 10px 6px; border-radius: 16px; }
  .sign-face { border-radius: 16px; }
  .sign-role { font-size: 9.5px; letter-spacing: .08em; }
  .sign-name { font-size: 16px; }
  .sign-deg { font-size: 11px; }
  .form-card { padding: 20px; }
  .read-card { padding: 18px; }
  .message-card { grid-template-columns: 64px 1fr; gap: 16px; padding: 16px 18px; }
  .message-art { width: 64px; }
  .fan-wrap { height: 200px; }
  .fan { bottom: 52px; }
  .tcard { width: 74px; height: 128px; left: -37px; transform-origin: 50% 420px; }
  .pillar { grid-template-columns: 60px 1fr; padding: 16px; }
  .pillar img { width: 60px; }
  .scan-card { grid-template-columns: minmax(0, 1fr); }
  .scan-photo { max-width: 340px; width: 100%; margin-inline: auto; }
  .ring-stage { height: 290px; }
  .ring .rc { width: 96px; height: 167px; left: -48px; top: -84px; }
  .card-detail { grid-template-columns: 88px 1fr; gap: 16px; padding: 18px; }
  .card-detail img { width: 88px; }
  .detail-name { font-size: 20px; }
  .talk-head { grid-template-columns: 88px 1fr; }
  .talk-head img { width: 88px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .feature-text { padding: 10px 12px 14px; }
  .feature-text b { font-size: 15px; }
  .feature-text span { font-size: 12.5px; }
  .moon-facts div { min-width: 0; flex: 1 1 30%; padding: 10px 10px; }
  .phase-line { gap: 6px; }
  .phase-line li { font-size: 11px; padding: 10px 4px 8px; }
  .phase-line li img { width: 36px; height: 36px; }
  .planet-list li { grid-template-columns: 30px 1fr auto; gap: 10px; padding: 8px 6px; }
  .planet-list .p-ic { width: 30px; height: 30px; }
  .planet-list .p-deg { grid-column: 3; grid-row: 2; min-width: 0; font-size: 12.5px; margin-top: -6px; }
  .planet-list .p-sign { grid-column: 3; grid-row: 1; }
  .modal { place-items: end stretch; padding: 0; }
  .modal-dialog { width: 100%; max-height: calc(100dvh - 30px); border-radius: 26px 26px 0 0; padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); animation: sheetIn .35s var(--ease); }
  .modal-dialog::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(216, 180, 102, .35); }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  .modal-get { grid-template-columns: 1fr; }
  .qr-block { display: none; }
  .modal-steps .step-scan { display: none; }
  .modal-steps .step-tap { display: list-item; }
  .modal-actions { display: flex; flex-direction: column; align-items: center; }
  .get-dock { position: fixed; inset: auto 10px calc(10px + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 20px; background: rgba(6, 9, 36, .94); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--glass-line); transform: translateY(140%); transition: transform .4s var(--ease); }
  html.show-dock .get-dock { transform: none; }
  html.modal-open .get-dock { transform: translateY(140%); }
  .get-dock img { width: 40px; height: 40px; border-radius: 11px; }
  .get-dock-text { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .get-dock-text strong { font-size: 14px; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .get-dock-text small { font-size: 12px; color: var(--muted); }
  html.show-dock .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .hero-title { font-size: 34px; }
  .hero-features li { font-size: 12px; padding: 6px 10px; }
  .btn-lg { --h: 52px; padding: 0 22px; font-size: 15px; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { gap: 10px; }
  .tabs button { padding: 8px 12px; font-size: 13px; }
  .love-tabs { align-self: stretch; }
  .day-label { min-width: 0; flex: 1; }
}
@media (max-width: 370px) {
  .lang-btn { padding: 0 9px; }
  .lang-btn .chev { display: none; }
  .brand-name small { display: none; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: none) and (pointer: coarse) {
  .btn-primary:hover, .btn-glass:hover { transform: none; }
  .feature:hover .feature-art img { transform: none; }
  .book:hover { transform: rotateX(16deg) rotateY(-18deg); }
  .book.is-open:hover { transform: rotateX(8deg) rotateY(0deg) translateX(30%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ RESPONSIVE — the demos ============ */
@media (max-width: 980px) {
  .scan-grid, .guide-grid, .match-grid, .horo-grid { grid-template-columns: minmax(0, 1fr); }
  .scan-result, .guide-card, .match-pick, .match-result, .horo-pick, .horo-result { max-width: 640px; width: 100%; margin-inline: auto; }
  .guide-art { position: relative; top: 0; max-width: 640px; width: 100%; margin-inline: auto; }
  .scan-result { min-height: 0; }
  .match-result { min-height: 0; }
}
@media (max-width: 720px) {
  .stage3d { aspect-ratio: 1 / .9; }
  .topic-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topic { font-size: 13px; }
  .sign-grid { gap: 8px; }
  .sign img { width: 48px; height: 48px; }
  .sign b { font-size: 12.5px; }
  .sign small { font-size: 10px; }
  .guide-card, .match-pick, .match-result, .horo-pick, .horo-result, .scan-result { padding: 16px; }
  .aspect-chart { gap: 4px; padding: 14px 6px 10px; }
  .aspect-chart .track { width: 22px; height: 104px; }
  .aspect-chart small { font-size: 9.5px; }
  .aspect-list { padding: 4px 12px; }
  .score-row { grid-template-columns: minmax(80px, auto) 1fr auto; gap: 8px; font-size: 12.5px; }
  .insight-grid { grid-template-columns: minmax(0, 1fr); }
  .deck { height: 360px; }
  .deck-slot { width: 92px; height: 166px; margin-left: -46px; }
  .fan { top: 186px; }
  .tcard { width: 80px; height: 144px; left: -40px; transform-origin: 50% 520px; }
  .card-head { grid-template-columns: 96px 1fr; gap: 14px; }
  .card-head img { width: 96px; }
  .card-head .card-title { font-size: 22px; }
  .pair { padding: 12px 8px; }
  .slot img, .slot-empty { width: 60px; height: 60px; }
  .cam-status { font-size: 12px; }
}
@media (max-width: 380px) {
  .sign small { display: none; }
  .hand-pick button { font-size: 13px; }
}

@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid .feature:first-child { grid-column: 1 / -1; }
  .feature-grid .feature:first-child .feature-art { aspect-ratio: 16 / 7; }
}

/* ============ TEASERS — a taste here, the rest in the app ============ */
.teaser { position: relative; }
.t-lock { filter: blur(5px); opacity: .7; -webkit-user-select: none; user-select: none; pointer-events: none; }
.teaser:not(.is-open) { padding-bottom: 8px; }
.teaser:not(.is-open) .t-lock { display: inline; }
.unlock {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: max-content; max-width: 100%; margin: 14px auto 0;
  padding: 10px 18px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 800; line-height: 1.3; text-align: center;
  color: var(--on-gold); background: linear-gradient(135deg, var(--gold-0), var(--gold) 55%, var(--gold-1));
  box-shadow: 0 8px 24px rgba(232, 211, 110, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .25s var(--spring), box-shadow .25s;
}
.unlock .ic { width: 18px; height: 18px; }
.unlock:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(232, 211, 110, .5), inset 0 1px 0 rgba(255, 255, 255, .6); }
.teaser .unlock { position: relative; z-index: 1; margin-top: -1.4em; }
.is-locked { position: relative; }
.is-locked > .locked-blur { filter: blur(6px); opacity: .6; pointer-events: none; -webkit-user-select: none; user-select: none; }
.is-locked > .unlock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; z-index: 2; }
.is-locked > .unlock:hover { transform: translate(-50%, calc(-50% - 2px)); }
.tabs button.is-lock { color: rgba(199, 193, 242, .7); }
.tabs button.is-lock .ic-lock { width: 13px; height: 13px; color: var(--gold); }
.factors li.is-locked-row { filter: blur(4px); opacity: .55; pointer-events: none; }
.planet-list li.is-locked-row { filter: blur(4px); opacity: .5; pointer-events: none; }
.planets-lock { position: relative; }
.planets-lock .unlock { position: absolute; left: 50%; top: 70%; transform: translate(-50%, -50%); margin: 0; z-index: 2; }
.planets-lock .unlock:hover { transform: translate(-50%, calc(-50% - 2px)); }
.factors li.factor-unlock { display: flex; justify-content: center; padding: 2px 0 0; background: none; box-shadow: none; cursor: default; }
.factors li.factor-unlock .unlock { margin: 4px auto 0; }
.reading-cta { display: flex; justify-content: center; margin-top: 22px; }
.pillar .teaser .unlock { margin-top: -1.2em; font-size: 13px; padding: 8px 14px; }
