/* tarajyotish.in
   ─────────────────────────────────────────────────────────────
   Concept: a palm-leaf manuscript under starlight.
   Nadi Jyotish comes from ola chuvadi — inscribed palm leaves — so the
   page is warm manuscript ink and gold leaf on a deep indigo night,
   with a torana arch and rāśi chakra line-work doing the structural work.
   No build step. Fonts are the only external request.
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Spectral:wght@300;400;500&family=Tiro+Devanagari+Hindi:ital@0;1&display=swap');

:root {
  --night:      #070a1c;
  --night-lift: #0d1230;
  --ink:        #ede3cf;   /* manuscript ink, never pure white */
  --ink-dim:    #a49b8b;
  --gold:       #c9a227;
  --gold-lit:   #e8cd7e;
  --vermillion: #c1440e;   /* kumkum — used sparingly, for accents only */
  --wa:         #25D366;   /* official WhatsApp brand green */
  --rule:       rgba(201, 162, 39, 0.26);
  --measure:    34rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: 'Spectral', Georgia, serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Atmosphere ───────────────────────────────────────────────
   Three stacked layers: a warm horizon glow, a static star field,
   and a fine grain that keeps the flat colour from looking digital. */

.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.sky::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 46% at 50% -8%, rgba(201,162,39,.16), transparent 70%),
    radial-gradient(50% 34% at 82% 14%, rgba(63,84,168,.20), transparent 70%),
    radial-gradient(60% 40% at 10% 88%, rgba(193,68,14,.10), transparent 70%);
}
.sky::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1px 1px   at 32% 42%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.2px 1.2px at 68% 12%, rgba(255,244,214,.75), transparent 60%),
    radial-gradient(1px 1px   at 82% 38%, rgba(255,255,255,.5),  transparent 60%),
    radial-gradient(1.6px 1.6px at 22% 72%, rgba(255,255,255,.7),  transparent 60%),
    radial-gradient(1px 1px   at 54% 84%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.2px 1.2px at 90% 66%, rgba(255,244,214,.6),  transparent 60%),
    radial-gradient(1px 1px   at 44% 26%, rgba(255,255,255,.4),  transparent 60%);
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer { 0%,100% { opacity:.5 } 50% { opacity:.78 } }

/* Grain: an SVG turbulence data-URI, cheaper than any image request. */
.grain {
  position: fixed; inset: -50%; z-index: 0; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Shell ──────────────────────────────────────────────────── */

.wrap {
  position: relative; z-index: 1;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Type ───────────────────────────────────────────────────── */

h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; margin: 0 0 .5em; }

.devanagari {
  font-family: 'Tiro Devanagari Hindi', serif;
  color: var(--gold-lit);
  line-height: 1.4;
}

h1 {
  font-size: clamp(2.9rem, 12vw, 4.1rem);
  line-height: .95; letter-spacing: .008em;
  color: var(--ink);
}
h1 .devanagari { display: block; font-size: .46em; margin-bottom: .28em; letter-spacing: 0; }

h2 {
  font-size: clamp(1.65rem, 6vw, 2.1rem);
  color: var(--gold-lit); margin-top: 0;
}

h3 { font-size: 1.22rem; color: var(--ink); margin-bottom: .35em; }

p { margin: 0 0 1.05em; }
a { color: var(--gold-lit); text-decoration-thickness: 1px; text-underline-offset: 3px; }
strong { font-weight: 500; color: #fff6e2; }

.eyebrow {
  font-family: 'Spectral', serif; font-size: .74rem; font-weight: 400;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 1.1rem;
}
.lede  { font-size: 1.14rem; color: var(--ink-dim); font-style: italic; font-family: 'Cormorant Garamond', serif; }
.muted { color: var(--ink-dim); }
.small { font-size: .88rem; line-height: 1.6; }

/* ── Section rhythm, marked by a small chakra diamond ────────── */

section { padding: 4.6rem 0 0; }

.divider { display: flex; align-items: center; gap: 14px; margin: 0 0 2.4rem; }
.divider::before, .divider::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
}
.divider i {
  width: 9px; height: 9px; transform: rotate(45deg);
  border: 1px solid var(--gold); flex: none;
}

/* ── Hero ───────────────────────────────────────────────────── */

.hero { padding: 3.4rem 0 0; text-align: center; }

/* Portrait: a plain circle, ringed in gold. The arch was doing too much
   work; a face reads better unobstructed. */
.portrait-ring { position: relative; width: 176px; margin: 0 auto 2rem; }
.portrait-ring::before { /* warm bloom behind */
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 280px; height: 280px; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(201,162,39,.18), transparent 66%);
  z-index: 0;
}
.portrait-ring img {
  position: relative; z-index: 1; display: block;
  width: 176px; height: 176px; border-radius: 50%;
  object-fit: cover; object-position: 50% 18%;
  background: var(--night-lift);
  box-shadow:
    0 0 0 1px rgba(201,162,39,.55),
    0 0 0 7px rgba(201,162,39,.09),
    0 24px 60px -20px rgba(0,0,0,.85);
}


/* ── The one CTA ────────────────────────────────────────────── */

.cta {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: 'Spectral', serif; font-size: 1.03rem; font-weight: 500; letter-spacing: .01em;
  color: #05300f; background: var(--wa);
  text-decoration: none; padding: 16px 30px; border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 14px 34px -12px rgba(37,211,102,.62);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease;
}
.cta:hover, .cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 20px 42px -12px rgba(37,211,102,.72);
}
.cta svg { width: 23px; height: 23px; flex: none; }
.cta-note { display: block; margin-top: .95rem; font-size: .82rem; letter-spacing: .06em; color: var(--ink-dim); }
.cta-center { text-align: center; }
.langs {
  margin: 1.5rem auto 0; max-width: 24rem;
  font-size: .78rem; letter-spacing: .1em; line-height: 2;
  color: var(--ink-dim); opacity: .8;
}

/* ── Steps ──────────────────────────────────────────────────── */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 1.7rem 3.3rem; margin: 0;
}
.steps li:not(:last-child)::after { /* thread joining the numbers */
  content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px;
  width: 1px; background: linear-gradient(var(--rule), transparent);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 31px; height: 31px; border-radius: 50%;
  border: 1px solid var(--rule); color: var(--gold-lit);
  font-family: 'Cormorant Garamond', serif; font-size: 1.05rem;
  display: grid; place-items: center; background: var(--night);
}

/* ── Pricing ────────────────────────────────────────────────── */

.rates { border-top: 1px solid var(--rule); }
.rate {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.15rem .2rem; border-bottom: 1px solid var(--rule);
}
.rate .what { flex: 1; }
.rate .amt {
  font-family: 'Cormorant Garamond', serif; font-size: 1.85rem;
  color: var(--gold-lit); line-height: 1; white-space: nowrap;
}
.rate .amt.is-free { color: var(--wa); font-size: 1.4rem; letter-spacing: .04em; }
/* ── Testimonials ───────────────────────────────────────────── */

.voice { position: relative; padding: 0 0 2.2rem 1.6rem; margin: 0; }
.voice::before {
  content: ""; position: absolute; left: 0; top: .45rem; bottom: 2.6rem;
  width: 1px; background: linear-gradient(var(--gold), transparent);
  opacity: .55;
}
.voice p { font-family: 'Cormorant Garamond', serif; font-size: 1.24rem; line-height: 1.55; font-style: italic; margin-bottom: .5rem; }
.voice .hinglish { font-size: .94rem; font-style: normal; font-family: 'Spectral', serif; color: var(--ink-dim); margin-bottom: .7rem; }
.voice cite {
  font-style: normal; font-size: .76rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold);
}

/* ── Footer ─────────────────────────────────────────────────── */

footer { margin-top: 5rem; padding: 2.4rem 0 3.4rem; border-top: 1px solid var(--rule); text-align: center; }
footer nav { margin-bottom: 1.5rem; line-height: 2.5; }
footer nav a {
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-dim); text-decoration: none; margin: 0 .7rem; white-space: nowrap;
}
footer nav a:hover { color: var(--gold-lit); }
footer .entity { font-family: 'Cormorant Garamond', serif; font-size: 1.06rem; color: var(--ink); }
footer .small { color: var(--ink-dim); }

/* ── Legal pages ────────────────────────────────────────────── */

.legal { padding: 3rem 0 0; }
.legal h1 { font-size: clamp(2rem, 8vw, 2.7rem); margin-bottom: .3rem; }
.legal h2 { font-size: 1.32rem; margin-top: 2.6rem; }
.legal .updated { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 2.4rem; }
.legal ul { padding-left: 1.1rem; margin: 0 0 1.05em; }
.legal li { margin-bottom: .5em; }
.legal li::marker { color: var(--gold); }
.back {
  display: inline-block; margin-bottom: 1.6rem; text-decoration: none;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim);
}
.back:hover { color: var(--gold-lit); }

/* ── Entrance: one orchestrated reveal, not scattered fidgets ── */

@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(14px); animation: rise .85s cubic-bezier(.2,.7,.2,1) forwards; }
  .d1 { animation-delay: .06s } .d2 { animation-delay: .16s } .d3 { animation-delay: .26s }
  .d4 { animation-delay: .36s } .d5 { animation-delay: .46s }
  @keyframes rise { to { opacity: 1; transform: none } }

  .torana .frame { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s cubic-bezier(.3,.7,.2,1) .2s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0 } }
}

@media (min-width: 720px) {
  body { font-size: 18px; }
  .wrap { padding: 0 32px; }
  section { padding: 5.6rem 0 0; }
  .hero { padding: 5rem 0 0; }
  .portrait-ring, .portrait-ring img { width: 200px; }
  .portrait-ring img { height: 200px; }
}
