/* ==========================================================================
   ANUPT site styles: anupt.in, anupt.in/login (and the same tokens in the app).

   Three colours only:
     deep indigo  #24195C  text, dark panels
     gold         #FFAA1D  fine lines, medallions, ticks, highlights
     pink         #E0167F  the main button, nothing else
   plus soft white, white and greys of indigo. Readings are told apart by icon, not colour.
   One memorable moment: the hero, where five readings become one answer over a gold kundli.
   ========================================================================== */
:root {
  --bg: #FBF9FF;
  --white: #FFFFFF;
  --ink: #24195C;
  --ink-2: #3A2F73;
  --muted: #625C86;
  --line: #E8E3F7;
  --ink-tint: #F3F0FB;
  --gold: #FFAA1D;
  --gold-soft: #FFD98A;
  --gold-ink: #946000;          /* gold dark enough for small text and icons on white */
  --gold-line: #EBD6AA;
  --gold-tint: #FFF7E6;
  --pink: #E0167F;
  --pink-deep: #B90F66;
  --care: #C2365A;              /* form errors only */
  --display: 'Rozha One', 'Noto Serif Devanagari', Georgia, serif;
  --sans: 'Mukta', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --r: 24px;
  --lift-1: 0 1px 0 rgba(255,255,255,.9) inset, 0 22px 44px -32px rgba(36,25,92,.42);
  --lift-2: 0 60px 100px -56px rgba(36,25,92,.55), 0 24px 46px -36px rgba(36,25,92,.4);
  --gold-edge: linear-gradient(160deg, #FFE3A6 0%, #FFAA1D 30%, #F3CB7A 55%, #D99A1E 80%, #FFC75A 100%);
  --jaali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cpath d='M0 0L88 88M88 0L0 88M44 0L88 44L44 88L0 44Z' fill='none' stroke='%23FFAA1D' stroke-width='1'/%3E%3C/svg%3E");
  --kundli: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23FFAA1D' stroke-width='.7'%3E%3Crect x='1' y='1' width='198' height='198'/%3E%3Cpath d='M1 1L199 199M199 1L1 199M100 1L199 100L100 199L1 100Z'/%3E%3C/g%3E%3C/svg%3E");
  --ashtakon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%2324195C' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='10' y='10' width='20' height='20' rx='1.5'/%3E%3Crect x='10' y='10' width='20' height='20' rx='1.5' transform='rotate(45 20 20)'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='3.6' fill='%23FFAA1D'/%3E%3C/svg%3E");
  --stars: radial-gradient(1.4px 1.4px at 12% 22%, rgba(255,255,255,.85), transparent 60%),
           radial-gradient(1.2px 1.2px at 28% 74%, rgba(255,233,170,.8), transparent 60%),
           radial-gradient(1px 1px at 46% 38%, rgba(255,255,255,.7), transparent 60%),
           radial-gradient(1.6px 1.6px at 63% 16%, rgba(255,210,122,.85), transparent 60%),
           radial-gradient(1px 1px at 78% 62%, rgba(255,255,255,.75), transparent 60%),
           radial-gradient(1.3px 1.3px at 91% 30%, rgba(255,255,255,.7), transparent 60%),
           radial-gradient(1.1px 1.1px at 86% 88%, rgba(255,233,170,.7), transparent 60%);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.08rem; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -.005em; line-height: 1.04; }
h1 { font-size: clamp(2.8rem, 5.8vw, 4.9rem); }
h2 { font-size: clamp(2.05rem, 4.2vw, 3.2rem); text-wrap: balance; }
h3 { font-family: var(--sans); font-weight: 800; font-size: 1.26rem; line-height: 1.25; margin: 0; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.24rem); color: var(--muted); max-width: 32em; text-wrap: pretty; }
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.head { max-width: 44rem; margin-bottom: clamp(32px, 5vw, 52px); }
.head p { margin-top: 14px; color: var(--muted); font-size: 1.12rem; max-width: 38em; text-wrap: pretty; }
.tag-dev { display: block; font-weight: 700; color: var(--gold-ink); margin-bottom: 10px; font-size: 1rem; }
.logo { display: block; background: url("/assets/logo.webp") center / contain no-repeat; }

/* ---------- buttons and links ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px;
  padding: 0 28px; border-radius: 999px; font: 700 1.05rem/1 var(--sans); text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.btn .ic { width: 20px; height: 20px; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); transition: left .6s ease; pointer-events: none; }
.btn:hover::after { left: 120%; }
.btn-primary { color: #fff; background: var(--pink); box-shadow: 0 10px 24px -12px rgba(224,22,127,.65), 0 4px 0 var(--pink-deep); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(224,22,127,.7), 0 6px 0 var(--pink-deep); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 6px 14px -8px rgba(224,22,127,.6), 0 1px 0 var(--pink-deep); }
.btn-ghost { color: var(--ink); background: var(--white); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .98rem; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 1.12rem; }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
.text-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { color: var(--gold-ink); }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 60; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(255,255,255,.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--gold-line), 0 14px 30px -26px rgba(36,25,92,.5); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand .logo { width: 46px; height: 46px; }
.word { font-family: var(--display); font-size: 1.55rem; letter-spacing: .06em; line-height: 1; }
.word small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .01em; color: var(--muted); font-weight: 600; margin-top: 2px; }
.links { display: flex; gap: 26px; }
.links a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 1rem; position: relative; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.links a:hover::after { transform: scaleX(1); }
.signin { text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: 1rem; white-space: nowrap; }
.signin:hover { color: var(--gold-ink); }
html.signed-in [data-signin] { display: none; }

/* ---------- hero: one question, five readings, one answer ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0 88px;
  background: radial-gradient(60% 70% at 80% 45%, #FFF6E4 0%, rgba(255,246,228,0) 70%), linear-gradient(180deg, #FFFFFF, var(--bg)); }
.toran { position: absolute; top: 0; left: 0; right: 0; height: 52px; z-index: 1; pointer-events: none; }
.toran svg { width: 100%; height: 100%; overflow: visible; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  min-height: min(680px, calc(100vh - 74px)); }
.hero-grid > * { min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--white);
  box-shadow: 0 0 0 1px var(--gold-line), 0 10px 22px -16px rgba(36,25,92,.45); font-weight: 600; font-size: .95rem; margin-bottom: 26px; }
.pill b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--ink); }
.pill b .ic { width: 17px; height: 17px; }
.hero h1 { font-size: clamp(2.8rem, 5.4vw, 4.5rem); }
.hero h1 span { display: block; }
.hero .lede { margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.assure { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.assure li { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: .95rem; color: var(--ink-2); white-space: nowrap; }
.assure .ic { width: 18px; height: 18px; color: var(--gold-ink); stroke-width: 2.4; }

/* Guruji, the ANUPT astrologer: tap him or a planet; today's sky under him */
.sparkle { position: absolute; pointer-events: none; z-index: 5; width: 14px; height: 14px; margin: -7px 0 0 -7px; color: var(--marigold);
  animation: fly 1s ease-out forwards; }
@keyframes fly { to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(140deg) scale(.3); } }
.twinkle { position: absolute; z-index: 0; width: 18px; height: 18px; color: #fff; animation: tw 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes tw { 0%, 100% { opacity: .2; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* Guruji, the ANUPT astrologer */
.scene { position: relative; width: 100%; max-width: 540px; margin-left: auto; aspect-ratio: 420 / 470; }
.scene > svg { width: 100%; height: 100%; overflow: visible; }
.guru { cursor: pointer; outline: none; } .guru:focus-visible { filter: drop-shadow(0 0 6px #FFAA1D) drop-shadow(0 0 2px #24195C); }
.rays { transform-origin: 210px 190px; animation: spin 70s linear infinite; }
.orbit { transform-origin: 210px 190px; animation: spin 90s linear infinite; }   /* slow enough to read the name tags */
.guru { transform-origin: 210px 470px; animation: breathe 4.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2px) scale(1.006); } }
.g-head { transform-origin: 210px 300px; transition: transform .3s ease-out; }
.beard { transform-origin: 210px 262px; animation: sway 5.5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
.plume { transform-origin: 210px 168px; animation: sway 3.2s ease-in-out infinite; }
.brow { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .25s ease; }
.scene:hover .brow, .talking .brow { transform: translateY(-3px); }
.tablet { transform-origin: 330px 400px; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.scene:hover .tablet { transform: rotate(-4deg) translateY(-6px); }
.glow { animation: pulse 2.6s ease-in-out infinite; transform-origin: 330px 352px; }
@keyframes pulse { 0%, 100% { opacity: .55; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }
.kundli path, .kundli rect { stroke-dasharray: 320; stroke-dashoffset: 0; }
.redraw .kundli path, .redraw .kundli rect { animation: draw 1.4s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }
.planet { cursor: help; }
.bubble { position: absolute; left: -2%; top: 2%; z-index: 4; max-width: 250px; padding: 14px 16px; border-radius: 20px 20px 20px 6px; background: var(--white);
  box-shadow: 0 16px 34px -16px rgba(36,25,92,.45); font-weight: 600; font-size: 1rem; line-height: 1.4; color: var(--ink); min-height: 74px; }
.bubble::after { content: ""; position: absolute; left: 34px; bottom: -11px; width: 22px; height: 22px; background: var(--white); transform: rotate(45deg); border-radius: 4px; }
.bubble b { display: block; color: var(--gold-ink); font-size: .82rem; margin-bottom: 2px; }
.bubble .caret { display: inline-block; width: 2px; height: 1em; background: var(--ink); vertical-align: -2px; margin-left: 1px; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.tap-hint { position: absolute; left: 6%; bottom: 4%; z-index: 4; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .82rem; font-weight: 700; pointer-events: none; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }

/* ---------- Guruji notices you, and today's sky (v3) ---------- */
.scene-col { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.scene-col .scene { margin-left: 0; }
.scene .bubble { pointer-events: none; }   /* taps go through to the planets and Guruji behind it */
@media (min-width: 981px) { .scene-col { justify-self: end; width: 100%; max-width: 500px; } .scene-col .scene { max-width: 500px; } }   /* card centred under Guruji */
.planet { cursor: pointer; outline: none; }
.planet .hit { fill: transparent; }
.planet .body { transform-box: fill-box; transform-origin: center; transition: transform .3s ease; }
.planet:focus-visible .body { transform: scale(1.2); }
@media (hover: hover) { .planet:hover .body { transform: scale(1.2); } }
.planet.picked .body { animation: pick .8s ease-in-out 3; }
@keyframes pick { 50% { transform: scale(1.4); } }
.halo { transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-in-out infinite; }
@keyframes halo { 0%, 100% { opacity: .5; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.18); } }
.upright { animation: spin 90s linear infinite reverse; }   /* turns against the orbit: names stay upright, the Moon's lit side stays where it really is */
.planet .body { filter: drop-shadow(0 1.5px 2px rgba(36,25,92,.38)); }
.p-pill { fill: var(--white); stroke: var(--gold-line); stroke-width: 1; }
.p-name { font: 700 13px var(--sans); fill: var(--ink); letter-spacing: .01em; pointer-events: none; }
.planet:focus-visible .p-pill, .planet.picked .p-pill { fill: var(--ink); stroke: var(--ink); }
.planet:focus-visible .p-name, .planet.picked .p-name { fill: #fff; }
@media (hover: hover) {   /* mouse only: on phones a tap would leave "hover" stuck and the orbit frozen */
  .planet:hover .p-pill { fill: var(--ink); stroke: var(--ink); }
  .planet:hover .p-name { fill: #fff; }
  .orbit:has(.planet:hover), .orbit:has(.planet:hover) * { animation-play-state: paused; }   /* hold still under the pointer */
}
.orbit.paused, .orbit.paused * { animation-play-state: paused !important; }
.blink-now .lid { animation: blink-once .3s ease-in-out 1 !important; }
@keyframes blink-once { 0%, 100% { transform: scaleY(0); } 50% { transform: scaleY(1); } }
.noticed .brow { transform: translateY(-5px) !important; }
.tap-ring { position: fixed; z-index: 70; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2.5px solid var(--marigold);
  pointer-events: none; animation: ring .6s ease-out forwards; }
@keyframes ring { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.btn.nudge { animation: nudge .5s ease 2; }
.btn.nudge::after { animation: sweep 1s ease 2; }
@keyframes nudge { 50% { transform: translateY(-4px); } }
@keyframes sweep { from { left: -60%; } to { left: 120%; } }

.sky { width: 100%; max-width: 440px; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 0 0 1px var(--gold-line), 0 16px 34px -24px rgba(36,25,92,.55);
  border-radius: 22px; padding: 12px 12px 8px; box-shadow: 0 16px 34px -24px rgba(36,25,92,.55); }
.sky[hidden] { display: none; }
.sky-h { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .95rem; line-height: 1.2; margin: 0 2px 10px; }
.sky-h small { margin-left: auto; font-weight: 600; font-size: .76rem; color: var(--muted); text-align: right; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: live 2s ease-out infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255,170,29,.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(255,170,29,0); } }
.sky-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sky-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 9px 10px 10px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; -webkit-tap-highlight-color: transparent; }
.sky-chip:hover { transform: translateY(-2px); border-color: var(--gold); }
.sky-chip.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,170,29,.2); }
.sky-k { display: flex; align-items: center; gap: 6px; font-size: .74rem; line-height: 1; font-weight: 600; color: var(--muted); }
.sky-i { width: 16px; height: 16px; flex: none; display: block; }
.sky-i.ic { color: var(--marigold); stroke-width: 2; }
.sky-chip b { display: block; font-size: .9rem; line-height: 1.25; font-weight: 800; overflow-wrap: anywhere; }
.sky-next { display: block; margin-top: 6px; width: 100%; text-align: left; border: 0; background: none; padding: 4px 2px; font: inherit;
  font-size: .86rem; line-height: 1.35; font-weight: 600; color: var(--ink-2); cursor: pointer; border-radius: 8px; }
.sky-next:hover { color: var(--gold-ink); }
.sky-next b { font-weight: 800; color: var(--ink); white-space: nowrap; }
.brand-mini { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.05rem; letter-spacing: .04em; white-space: nowrap; min-width: 0; }
.brand-mini .logo { width: 28px; height: 28px; }
.tag { font-size: .78rem; font-weight: 700; color: var(--gold-ink); background: var(--gold-tint); box-shadow: inset 0 0 0 1px var(--gold-line);
  padding: 3px 11px; border-radius: 999px; white-space: nowrap; flex: none; }
.ph-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; transition: opacity .45s ease .15s; }
.ph-row > span { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 12px; font-size: .88rem; font-weight: 700; color: var(--ink-2);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.ph-row .ic { width: 17px; height: 17px; color: var(--gold-ink); }

/* ---------- how it works ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); padding: 30px 28px 28px;
  border: 1px solid var(--line); box-shadow: var(--lift-1); }
.step-n { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.step-n b { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font: 400 2.1rem/1 var(--display); color: var(--ink); padding-top: 4px;
  background: var(--white); box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 7px var(--gold-tint); }
.step-n span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-tint); color: var(--ink); }
.step-n span .ic { width: 22px; height: 22px; }
.step h3 { margin-bottom: 8px; min-height: 2.5em; }
.step p { color: var(--muted); margin-bottom: 16px; }
.step .eg { margin-top: auto; align-self: flex-start; padding: 8px 14px; border-radius: 14px; background: var(--gold-tint);
  box-shadow: inset 0 0 0 1px var(--gold-line); font-weight: 600; font-size: .95rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 61px; right: -23px; width: 24px; border-top: 2px dashed var(--gold); }

/* ---------- readings ---------- */
.readings { background: var(--white); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { position: relative; overflow: hidden; border-radius: 26px; background: var(--bg); padding: 26px; display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .35s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--gold-line), 0 26px 40px -30px rgba(36,25,92,.55); }
.card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.badge { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--ink); flex: none;
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 6px var(--gold-tint); }
.badge .ic { width: 24px; height: 24px; }
.card-top small { display: block; color: var(--gold-ink); font-weight: 600; font-size: .9rem; }
.card > p { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-weight: 600; font-size: .98rem; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; }
.ticks .ic { width: 18px; height: 18px; color: var(--gold-ink); margin-top: 4px; stroke-width: 2.4; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.split > * { min-width: 0; }
.card > .art, .card > .split { margin-top: auto; padding-top: 18px; }
.card > .art { display: flex; justify-content: center; align-items: flex-end; min-height: 150px; }
.c-astro, .c-num, .c-year, .c-daily { grid-column: span 3; }
.c-tarot, .c-palm, .c-yt { grid-column: span 2; }
/* each picture moves once, on hover (computers) or when it scrolls into view (phones) */
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.card:hover .draw, .card.in .draw { animation: redraw 1.4s ease-out both; }
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.lo circle { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .4s cubic-bezier(.2,.8,.2,1.4); }
.card:hover .lo circle, .card.in .lo circle { transform: scale(1); }
.card:hover .lo circle:nth-of-type(2), .card.in .lo circle:nth-of-type(2) { transition-delay: .15s; }
.card:hover .lo circle:nth-of-type(3), .card.in .lo circle:nth-of-type(3) { transition-delay: .3s; }
.fan rect { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.2,.8,.2,1.2); }
.card:hover .fan .l, .card.in .fan .l { transform: rotate(-22deg) translateX(-8px); }
.card:hover .fan .r, .card.in .fan .r { transform: rotate(22deg) translateX(8px); }
.palm-l { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s ease; }
.palm-l.p1 { stroke-dashoffset: 0; }
.card:hover .palm-l, .card.in .palm-l { stroke-dashoffset: 0; }
.card:hover .palm-l.p2, .card.in .palm-l.p2 { transition-delay: .3s; } .card:hover .palm-l.p3, .card.in .palm-l.p3 { transition-delay: .6s; }
.yt-dots g g { transform-box: fill-box; transform-origin: center; }
.card:hover .yt-dots g g, .card.in .yt-dots g g { animation: hop .6s ease both; }
@keyframes hop { 50% { transform: translateY(-7px); } }
.ygrid { display: grid; grid-template-columns: 56px repeat(12, 1fr); gap: 4px; width: 100%; max-width: 400px; font-size: .74rem; align-items: center; }
.ygrid em { font-style: normal; color: var(--muted); text-align: center; font-weight: 700; }
.ygrid b { font-weight: 700; color: var(--ink-2); font-size: .76rem; }
.ygrid i { height: 16px; border-radius: 5px; transition: transform .25s ease; }
.ygrid i.g2 { background: var(--gold); } .ygrid i.g1 { background: var(--gold-soft); } .ygrid i.n { background: var(--ink-tint); box-shadow: inset 0 0 0 1px var(--line); }
.ygrid i.r { background: repeating-linear-gradient(135deg, #8F87BA 0 2px, #E7E3F6 2px 5px); }
.ygrid i:hover { transform: scale(1.3); }
.ykey { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: .78rem; color: var(--muted); font-weight: 600; grid-column: 1 / -1; }
.ykey span { display: inline-flex; align-items: center; gap: 6px; }
.ykey i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
.yart { display: flex; flex-direction: column; align-items: center; width: 100%; }
.note { width: 100%; max-width: 360px; border-radius: 20px; padding: 14px 16px; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 18px 34px -24px rgba(36,25,92,.6);
  font-size: .95rem; line-height: 1.45; transition: transform .45s cubic-bezier(.2,.8,.2,1.2); }
.card:hover .note, .card.in .note { transform: translateY(-5px); }
.note-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.note-top .logo { width: 24px; height: 24px; }
.note-top b { font-family: var(--display); letter-spacing: .05em; font-size: .95rem; }
.note-top small { margin-left: auto; color: var(--muted); }
.note-rows { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.note-rows span { font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--gold-tint); box-shadow: inset 0 0 0 1px var(--gold-line); }

/* ---------- kundli milan ---------- */
.show { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.show > * { min-width: 0; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; }
.points .dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--ink);
  box-shadow: 0 0 0 1.5px var(--gold-line); }
.points .dot .ic { width: 22px; height: 22px; }
.points b { display: block; font-weight: 800; font-size: 1.08rem; }
.points span { color: var(--muted); }
.phone { position: relative; border-radius: 32px; padding: 20px; background: var(--white);
  box-shadow: 0 0 0 1px var(--gold-line), 0 0 0 10px rgba(255,255,255,.75), 0 60px 100px -50px rgba(36,25,92,.5); }
.ph-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; margin-bottom: 14px; }
.mhead { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; padding: 16px 14px; color: #fff; background: var(--stars), var(--ink); }
.mhead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--jaali) center / 66px; opacity: .1; }
.mnames { text-align: center; font-family: var(--display); font-size: 1.35rem; }
.mnames span { color: var(--gold); margin: 0 6px; }
.mrings { display: flex; justify-content: center; gap: 28px; margin-top: 8px; flex-wrap: wrap; }
.mring { display: flex; flex-direction: column; align-items: center; text-align: center; }
.mring svg { width: 94px; height: 94px; }
.mring .rb { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 7; }
.mring .rf { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 42px 42px;
  transition: stroke-dasharray 1.6s cubic-bezier(.2,.7,.2,1); }
.mring .rv { fill: #fff; font: 400 22px var(--display); text-anchor: middle; }
.mring .rs { fill: rgba(255,255,255,.8); font: 600 10px var(--sans); text-anchor: middle; }
.mring b { font-size: .86rem; margin-top: 2px; }
.mring small { font-size: .78rem; font-weight: 700; color: var(--ink); background: var(--gold-soft); padding: 2px 10px; border-radius: 999px; margin-top: 4px; }
.kootas { margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: var(--bg); display: grid; gap: 4px; }
.khead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; margin-bottom: 4px; }
.khead b { font-family: var(--display); font-weight: 400; font-size: 1.1rem; }
.khead small { font-size: .82rem; color: var(--muted); font-weight: 600; }
.krow { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 46px; gap: 10px; align-items: center; font-size: .92rem; padding: 3px 6px; border-radius: 10px; cursor: help; transition: background .2s; }
.krow:hover, .krow:focus { background: var(--white); outline: none; }
.krow span { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.krow span i { font-style: normal; font-weight: 500; color: var(--gold-ink); font-size: .85rem; margin-left: 3px; }
.krow em { height: 7px; border-radius: 999px; background: var(--ink-tint); overflow: hidden; }
.krow em u { display: block; height: 100%; border-radius: 999px; background: var(--gold); }
.krow em u.part { background: var(--gold-soft); }
.krow b { text-align: right; font-family: var(--display); font-weight: 400; font-size: 1rem; }
.krow b small { font-family: var(--sans); font-size: .72rem; color: var(--muted); }
.krow::after { content: attr(data-tip); position: absolute; left: 6px; bottom: calc(100% + 4px); z-index: 3; width: max-content; max-width: 240px; padding: 6px 10px; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.krow:hover::after, .krow:focus::after { opacity: 1; transform: none; }
.mnote { margin-top: 10px; padding: 9px 12px; border-radius: 12px; font-size: .9rem; line-height: 1.45; color: var(--ink-2); font-weight: 600;
  background: var(--gold-tint); box-shadow: inset 0 0 0 1px var(--gold-line); }

/* ---------- why: one ruled panel ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border-radius: 30px; box-shadow: 0 0 0 1px var(--line), var(--lift-1); overflow: hidden; }
.why { padding: 34px 32px 32px; }
.why .ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--ink); margin-bottom: 18px;
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 7px var(--gold-tint); }
.why .ico .ic { width: 25px; height: 25px; }
.why h3 { margin-bottom: 6px; }
.why p { color: var(--muted); }
.why:nth-child(3n+1), .why:nth-child(3n+2) { border-right: 1px solid var(--line); }
.why:nth-child(-n+3) { border-bottom: 1px solid var(--line); }

/* ---------- FAQ: one panel, the heading stays in view ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq > * { min-width: 0; }
.faq > .head { position: sticky; top: 110px; margin: 0; }
.faq-list { background: var(--white); border-radius: 30px; box-shadow: 0 0 0 1px var(--line), var(--lift-1); padding: 6px 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq details[open] { background: var(--gold-tint); }
.faq summary { list-style: none; cursor: pointer; padding: 21px 66px 21px 28px; position: relative; font-weight: 800; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--ink); font-size: 1.3rem; line-height: 1; transition: transform .3s ease, background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--gold); box-shadow: none; }
.faq details p { color: var(--muted); padding: 0 28px 22px; max-width: 46em; }

/* ---------- the closing sign-up, on a rashi wheel ---------- */
.start { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--bg), #F6F2FF); }
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.start-grid > * { min-width: 0; }
.wheel { position: absolute; z-index: -1; top: 50%; left: calc(50% + 300px); width: 760px; aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .55; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent); mask-image: radial-gradient(closest-side, #000 70%, transparent); }
.wheel svg { width: 100%; height: 100%; animation: spin 240s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.next { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.next li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.next .ic { width: 22px; height: 22px; color: var(--gold-ink); margin-top: 3px; stroke-width: 2.4; }

/* ---------- footer: night sky with the lattice ---------- */
footer { position: relative; isolation: isolate; background: var(--stars), var(--ink); color: #CFC9EE; padding: 48px 0 56px; font-size: .95rem;
  box-shadow: inset 0 1px 0 rgba(255,170,29,.45); }
footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--jaali) center / 88px; opacity: .06; pointer-events: none; }
.foot { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.foot .brand { margin: 0; color: #fff; }
.foot .brand .logo { width: 44px; height: 44px; }
.foot .word small { color: #B9B2E0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.foot nav a { text-decoration: none; color: #fff; font-weight: 600; }
.foot nav a:hover { color: var(--gold); }
.topics { list-style: none; padding: 0 0 24px; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
.topics li { font-size: .86rem; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.07); color: #E4DFFA; }
.disclaim { margin-top: 24px; max-width: 62em; font-size: .86rem; line-height: 1.6; color: #A9A2D3; }

/* ---------- Guruji, in the corner once the hero has scrolled away ---------- */
.buddy { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column;
  align-items: flex-end; gap: 10px; pointer-events: none; }
.buddy[hidden] { display: none; }
.buddy > * { pointer-events: auto; }
.buddy-face { width: 62px; height: 62px; padding: 0; border: 0; border-radius: 50%; background: var(--white); cursor: pointer;
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px var(--white), 0 0 0 7px var(--gold-line), 0 14px 28px -12px rgba(36,25,92,.6);
  animation: peek .6s cubic-bezier(.2,.8,.2,1.3) both; -webkit-tap-highlight-color: transparent; }
.buddy-face svg { width: 100%; height: 100%; display: block; border-radius: 50%; overflow: hidden; }
@keyframes peek { from { transform: translateY(100px); } to { transform: none; } }
.buddy-say { position: relative; max-width: 260px; background: var(--white); border-radius: 20px 20px 6px 20px; padding: 12px 14px;
  box-shadow: 0 0 0 1px var(--gold-line), 0 16px 34px -16px rgba(36,25,92,.5); font-weight: 600; font-size: .95rem; line-height: 1.4; animation: say-in .35s cubic-bezier(.2,.7,.2,1); }
.buddy-say[hidden] { display: none; }
@keyframes say-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.buddy-say b { display: block; color: var(--gold-ink); font-size: .8rem; margin-bottom: 2px; padding-right: 30px; }
.buddy-x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--ink-tint);
  color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.buddy-x .ic { width: 14px; height: 14px; }
.lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: blink 5.2s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }
.pupils { transition: transform .12s linear; }
.mouth { transform-box: fill-box; transform-origin: 50% 50%; }
.talking .mouth { animation: talk .22s ease-in-out infinite alternate; }
@keyframes talk { to { transform: scaleY(2.3); } }

/* ==========================================================================
   Sign-in: the jharokha card (temple-window arch, gold edge, ashtakon finial,
   kundli lattice), progress, six code boxes. Same on the landing page and /login.
   ========================================================================== */
.form-card { --arch: 66px; position: relative; isolation: isolate; border: 1.5px solid transparent;
  border-radius: 50% 50% 30px 30px / var(--arch) var(--arch) 30px 30px;
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--gold-edge) border-box;
  padding: calc(var(--arch) + 8px) clamp(22px, 4vw, 40px) clamp(26px, 4vw, 36px); box-shadow: var(--lift-2); }
.form-card::before { content: ""; position: absolute; z-index: 1; top: 14px; left: 50%; width: 46px; height: 46px; margin-left: -23px;
  border-radius: 50%; background: var(--ashtakon) center / 30px no-repeat, var(--white);
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 6px var(--white), 0 0 0 7px var(--gold-line), 0 12px 24px -12px rgba(36,25,92,.5); }
.form-card::after { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--jaali) center top / 66px; opacity: .2;
  -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 150px); mask-image: linear-gradient(180deg, #000 0, transparent 150px); }
.form-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; }
.form-card .btn { width: 100%; }
.lead-form [hidden] { display: none !important; }
.lead-form [data-step] > h3, .lead-form [data-step] > h1 { text-align: center; font-size: clamp(1.6rem, 3vw, 1.9rem); line-height: 1.1; }
.login .lead-form [data-step] > h1 { font-size: clamp(2.1rem, 6vw, 2.6rem); line-height: 1.05; }
.lead-form [data-step] > p { color: var(--muted); }
.lead-form [data-step] > p.intro, .lead-form .sent-to { text-align: center; margin: 8px auto 22px; max-width: 30em; text-wrap: balance; }
.lead-form .sent-to b { color: var(--ink); white-space: nowrap; }
.lead-form .sent-tip { display: block; font-size: .88rem; margin-top: 4px; }
.lead-form .sent-tip:empty { display: none; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .92rem; font-weight: 700; margin-bottom: 6px; }
.control { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 16px; border-radius: 16px; background: #FCFBFF;
  border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s, background .2s; }
.control:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255,170,29,.2); background: var(--white); }
.control .ic { width: 20px; height: 20px; color: var(--muted); }
.control input, .control select { flex: 1; min-width: 0; width: 100%; height: 50px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 1.02rem var(--sans); }
.control input::placeholder { color: #A39EBF; font-weight: 500; }
.control select { flex: none; width: auto; padding-right: 4px; cursor: pointer; }
.control .sep { width: 2px; height: 26px; background: var(--line); }
.field.bad .control { border-color: var(--care); box-shadow: 0 0 0 4px rgba(194,54,90,.12); }
.err { display: none; color: var(--care); font-size: .88rem; margin-top: 5px; font-weight: 600; }
.field.bad .err { display: block; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .92rem; color: var(--muted); margin: 6px 0 18px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.consent.bad { color: var(--care); }
.form-msg { margin: -6px 0 16px; padding: 11px 14px; border-radius: 12px; background: #FBEAEE; color: #8E1F33; font-size: .95rem; line-height: 1.45; font-weight: 600; }
.form-msg[hidden] { display: none; }
.form-msg.ok { background: var(--gold-tint); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--gold-line); }
.cf-box:empty { display: none; }
.cf-box { margin: 0 0 12px; }
.lead-form .btn-lg { margin-top: 4px; }
.lead-form [data-step] > p.trust { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 16px 0 0; font-size: .86rem; color: var(--muted); font-weight: 600; }
.trust .ic { width: 16px; height: 16px; color: var(--gold-ink); stroke-width: 2.2; }
.lead-form [data-step] > p.small-print { margin: 6px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.small-print a { color: var(--ink); font-weight: 700; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* progress: 1 Your details, 2 Your code (classes now/past; .done is the success card) */
.auth-progress { list-style: none; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 0; margin: 0 0 14px;
  font-size: .82rem; font-weight: 700; color: var(--muted); counter-reset: step; }
.auth-progress li { display: flex; align-items: center; gap: 7px; counter-increment: step; }
.auth-progress li::before { content: counter(step); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-size: .75rem; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); }
.auth-progress li:not(:last-child)::after { content: ""; width: 28px; height: 1.5px; margin-left: 3px; background: var(--gold-line); }
.auth-progress li.now { color: var(--ink); }
.auth-progress li.now::before { background: var(--ink); color: #fff; box-shadow: 0 0 0 3px var(--gold-soft); }
.auth-progress li.past::before { content: ""; box-shadow: none;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.4 4.4L19 7.3' fill='none' stroke='%2324195C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* six code boxes (one real input on top keeps phone auto-fill and paste working) */
.otp { position: relative; margin: 2px 0 6px; }
.otp-input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; outline: 0; padding: 0; margin: 0;
  background: transparent; color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 3em; text-indent: -9999px;
  -webkit-text-fill-color: transparent; cursor: text; }
.otp-input::selection { background: transparent; }
.otp-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, 1.6vw, 10px); }
.otp-boxes span { position: relative; height: clamp(52px, 12vw, 62px); border-radius: 15px; display: grid; place-items: center;
  font: 400 clamp(1.5rem, 4.6vw, 1.85rem)/1 var(--display); color: var(--ink);
  background: #FCFBFF; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .15s, background .15s; }
.otp-boxes span.filled { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--gold-line), 0 8px 18px -14px rgba(36,25,92,.5); }
.otp.focused .otp-boxes span.active { background: var(--white); box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px rgba(255,170,29,.25); }
.otp.focused .otp-boxes span.active:empty::after { content: ""; width: 2px; height: 46%; border-radius: 2px; background: var(--ink); animation: otp-caret 1s steps(1) infinite; }
.otp.focused.selected .otp-boxes span.filled { background: var(--gold-tint); }
.field.bad .otp-boxes span { box-shadow: inset 0 0 0 1.5px var(--care); }
.field.bad .otp.focused .otp-boxes span.active { box-shadow: inset 0 0 0 2px var(--care), 0 0 0 4px rgba(194,54,90,.12); }
@keyframes otp-caret { 50% { opacity: 0; } }
.code-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 14px; }
.linkish { background: none; border: 0; padding: 4px 0; font: 700 .92rem var(--sans); color: var(--ink); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.linkish:hover { color: var(--gold-ink); }
.linkish:disabled { color: var(--muted); text-decoration: none; cursor: default; font-weight: 600; }
.linkish.wide { display: block; margin: 10px auto 0; }

/* success */
.done { display: none; text-align: center; padding: 10px 0 4px; }
.form-card.sent form { display: none; } .form-card.sent .done { display: block; }
.done .ok { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--white);
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 8px rgba(255,170,29,.16), 0 16px 30px -16px rgba(36,25,92,.5); animation: pop .5s cubic-bezier(.2,.8,.2,1.4); }
.done .ok .ic { width: 38px; height: 38px; color: var(--ink); stroke-width: 2.6; }
.done h3 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; margin-bottom: 6px; }
.done p { color: var(--muted); margin-bottom: 20px; }
.done .spin { width: 30px; height: 30px; margin: 4px auto 14px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: spin .9s linear infinite; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* the pop-up form */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); width: min(520px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: visible; }
dialog::backdrop { background: rgba(36, 25, 92, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog[open] .form-card { animation: pop .35s cubic-bezier(.2,.7,.2,1); }
dialog .form-card { max-height: calc(100vh - 24px); overflow-y: auto; }
dialog .lead-form [data-step] > h3 { padding: 0 34px; }
.x { position: absolute; top: calc(var(--arch) + 6px); right: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--white);
  color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 1.5px var(--gold-line); }
.x:hover { box-shadow: 0 0 0 1.5px var(--gold); }
.x .ic { width: 18px; height: 18px; }

/* /login: the jharokha card on a kundli halo */
main.login { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100vh - 74px); padding: clamp(32px, 7vw, 72px) 0 56px;
  background: radial-gradient(60% 46% at 50% 38%, rgba(255,255,255,.95), transparent 70%), linear-gradient(180deg, var(--bg), #F4EFFF); }
main.login::before { content: ""; position: absolute; z-index: -1; left: 50%; top: clamp(10px, 3vw, 40px); width: min(820px, 150vw); aspect-ratio: 1;
  transform: translateX(-50%); background: var(--kundli) center / contain no-repeat; opacity: .35; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent); mask-image: radial-gradient(closest-side, #000 62%, transparent); }
.login .wrap { max-width: 500px; }
.login .alt { text-align: center; margin: 26px 0 0; color: var(--ink-2); font-weight: 600; }
.login .disclaim { text-align: center; font-size: .82rem; color: var(--muted); margin: 18px auto 0; max-width: 30em; line-height: 1.5; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .links { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 24px; }
  .scene { margin: 0 auto 4px; max-width: 420px; }
  .scene-col { margin-top: 8px; }
  .show, .start-grid, .faq { grid-template-columns: 1fr; }
  .phone { max-width: 520px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { content: none; }
  .step h3 { min-height: 0; }
  .c-astro, .c-num { grid-column: span 6; }
  .c-tarot, .c-palm, .c-year, .c-daily { grid-column: span 3; }
  .c-yt { grid-column: span 6; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .why:nth-child(odd) { border-right: 1px solid var(--line); }
  .why:nth-last-child(-n+2) { border-bottom: 0; }
  .faq > .head { position: static; }
  .wheel { top: auto; bottom: -120px; left: 50%; width: 760px; transform: translateX(-50%); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav-in { height: 64px; gap: 16px; }
  .brand .logo { width: 40px; height: 40px; } .word { font-size: 1.3rem; } .word small { display: none; }
  .hero { padding: 52px 0 64px; }
  .cta-row .btn { flex: 1 1 100%; }
  .tap-hint { font-size: .76rem; padding: 5px 10px; }
  .scene { max-width: 340px; }
  .p-name { font-size: 17px; }   /* about 14px on a phone screen */
  .scene-col { gap: 10px; }
  .bubble { max-width: 200px; min-height: 0; padding: 10px 12px; font-size: .86rem; line-height: 1.32; border-radius: 16px 16px 16px 5px; left: 0; top: 0; }
  .bubble .t-long { display: none; }
  .bubble::after { left: 26px; bottom: -8px; width: 16px; height: 16px; }
  .sky { padding: 10px 10px 6px; }
  .sky-h { font-size: .9rem; margin-bottom: 8px; }
  .sky-row { gap: 6px; }
  .sky-chip { padding: 8px 8px 9px; border-radius: 12px; }
  .sky-chip b { font-size: .86rem; }
  .sky-next { font-size: .82rem; margin-top: 4px; }
  .scene-col:has(.sky:not([hidden])) .tap-hint { display: none; }
  .bento { grid-template-columns: 1fr; }
  .card, .c-astro, .c-num, .c-tarot, .c-palm, .c-yt, .c-year, .c-daily { grid-column: auto; }
  .card { padding: 22px; }
  .card > .art { min-height: 0; }
  .split { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .why:last-child { border-bottom: 0; }
  .why { padding: 26px 22px; }
  .faq summary { padding: 18px 58px 18px 20px; }
  .faq summary::after { right: 16px; }
  .faq details p { padding: 0 20px 20px; }
  .krow { grid-template-columns: minmax(0, 1fr) 64px 42px; gap: 8px; }
  .krow span i { font-size: .78rem; }
  .form-card { --arch: 54px; }
  .x { right: 12px; }
  .buddy { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .buddy-face { width: 56px; height: 56px; }
  .btn-lg { min-height: 56px; }
}
@media (max-width: 380px) {
  .btn { white-space: normal; text-align: center; line-height: 1.2; padding: 10px 18px; }
  .krow { grid-template-columns: minmax(0, 1fr) 48px 40px; }
  .signin { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .otp.focused .otp-boxes span.active:empty::after { animation: none; }
}
html.signed-in .foot-signin { display: none; }

/* "Continue with Google" (Google draws the button itself), and the "or use your email" line */
.gsi { position: relative; display: flex; justify-content: center; min-height: 44px; margin: 2px 0 0; }
.gsi-btn { width: 100%; max-width: 400px; display: flex; justify-content: center; min-height: 44px; }
.gsi-guard { position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 999px; }
.lead-form [data-step] > p.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.lead-form [data-step] > p.or::before, .lead-form [data-step] > p.or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lead-form .consent { margin: 4px 0 16px; }

/* Sign-up forms: the trust line links to /privacy */
.trust a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.trust a:hover { color: var(--ink); text-decoration-color: var(--gold); }

/* /privacy: one calm reading column */
main.doc { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px); background: linear-gradient(180deg, var(--bg), #F6F2FF); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.6rem, 6vw, 3.8rem); }
.doc .lede { margin-top: 14px; }
.doc .updated { margin-top: 10px; font-size: .92rem; color: var(--muted); font-weight: 600; }
.doc .short { margin: 34px 0 0; padding: 24px 26px; background: var(--white); border: 1px solid var(--gold-line); border-radius: 20px; box-shadow: var(--lift-1); }
.doc .short h2 { font-family: var(--sans); font-weight: 800; font-size: 1.14rem; line-height: 1.3; margin-bottom: 12px; }
.doc-ticks { list-style: none; padding: 0; margin: 0; }
.doc-ticks li { display: flex; gap: 12px; align-items: flex-start; }
.doc-ticks li + li { margin-top: 10px; }
.doc-ticks .ic { width: 22px; height: 22px; margin-top: 3px; color: var(--gold-ink); stroke-width: 2.4; }
.doc section { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line); }
.doc section h2 { font-size: clamp(1.7rem, 3.6vw, 2.1rem); margin-bottom: 16px; }
.doc section > * + * { margin-top: 14px; }
.doc section h2 + * { margin-top: 0; }
.doc section ul { margin-bottom: 0; padding-left: 1.25em; }
.doc section ul li + li { margin-top: 10px; }
.doc section ul li::marker { color: var(--gold-ink); }
.doc b { font-weight: 700; }
.doc code { font: 600 .9em/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--ink-tint); padding: 2px 7px; border-radius: 6px; }
.doc .who { margin: 18px 0 0; border: 1px solid var(--line); border-radius: 18px; background: var(--white); overflow: hidden; }
.doc .who > div { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 6px 24px; padding: 16px 22px; }
.doc .who > div + div { border-top: 1px solid var(--line); }
.doc .who dt { font-weight: 700; }
.doc .who dd { margin: 0; color: var(--ink-2); }
.doc-note { padding: 14px 18px; background: var(--gold-tint); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; color: var(--ink-2); }
.doc .contact .mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 700; font-size: 1.2rem; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.doc .contact .mail .ic { width: 22px; height: 22px; color: var(--gold-ink); }
.doc .contact .mail:hover { color: var(--gold-ink); }
.foot nav a[aria-current="page"] { color: var(--gold); }
@media (max-width: 720px) {
  .doc .short { padding: 20px; }
  .doc .who > div { grid-template-columns: 1fr; padding: 14px 18px; }
  .doc section { margin-top: 36px; padding-top: 32px; }
}
.login .disclaim a { font-weight: 600; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
