/* ============================================================
   VASISTHA — landing page theme
   Extends /css/main.css. Same system, different soul:
   deep teal reading surface, ivory serif, muted amber lamp.
   ============================================================ */

:root {
  --bg: #04313a;
  --bg-deep: #01222a;
  --ink: #fdf7ea;
  --ink-muted: #b6cac7;
  --ink-faint: #8ba5a3;          /* ≥4.5:1 on --bg */
  --gold: #e6b978;               /* the amber lamp */
  --gold-soft: #d7ab73;
  --violet: #74bfb4;             /* jade, replaces the indigo accent */
  --pink: #8fd0c2;

  --hairline: rgba(253, 247, 234, 0.12);
  --glass-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014));
  --content-w: 70rem;
}

::selection { background: rgba(230, 185, 120, 0.28); color: #fff8ea; }

/* the mark replaces the Jnana Lab dot */
.site-head .brand-dot { display: none; }
.v-mark { flex: 0 0 auto; color: var(--gold); }
.brand-name { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.98rem; }

/* ---------- Reading typography ---------- */
.v-serif {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 120, "wght" 400;
  letter-spacing: -0.005em;
}

.v-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "wght" var(--tw, 400);
  font-size: clamp(2.2rem, 4.7vw, 3.65rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-title { font-variation-settings: "opsz" 110, "wght" 420; }

/* ---------- Hero ---------- */
.v-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  min-height: 100svh;
  padding-top: 7rem;
}
.v-hero-copy .body {
  margin-top: 1.5rem;
  font-size: clamp(1.02rem, 1.9vw, 1.15rem);
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 46ch;
}

.proof-line {
  margin-top: 1.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.trust-line {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* release-state status: deliberately not a button */
.cta-cluster {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px dashed rgba(230, 185, 120, 0.5);
  background: rgba(230, 185, 120, 0.05);
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 480;
  letter-spacing: 0.03em;
}
.status-chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: lamp-pulse 3.4s ease-in-out infinite;
}
@keyframes lamp-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
.release-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  max-width: 42ch;
}

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.92rem;
  font-weight: 470;
  color: var(--ink);
  border-bottom: 1px solid rgba(230, 185, 120, 0.45);
  padding-bottom: 0.15rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.link-cta:hover, .link-cta:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}
.link-cta svg { transition: transform 0.35s var(--ease); }
.link-cta:hover svg { transform: translateX(3px); }

/* ---------- Phone screenshots ---------- */
.v-shot {
  justify-self: center;
  width: min(310px, 74vw);
  border-radius: 42px;
  padding: 8px;
  border: 1px solid rgba(253, 247, 234, 0.16);
  background: rgba(2, 26, 32, 0.55);
  box-shadow:
    0 44px 96px -34px rgba(0, 0, 0, 0.8),
    0 0 0 5px rgba(2, 22, 28, 0.6),
    0 0 60px -18px rgba(230, 185, 120, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.v-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 35px;
}

@media (max-width: 56em) {
  .v-hero {
    grid-template-columns: 1fr;
    padding-top: 6.5rem;
    min-height: 0;
  }
  .v-shot { margin-top: 3rem; width: min(280px, 72vw); }
}

/* ---------- The text: editorial section ---------- */
.text-lede {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-weight: 380;
  font-variation-settings: "opsz" 90, "wght" 380;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 40ch;
  text-wrap: balance;
}
.text-body {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.2rem;
  max-width: 62ch;
  color: var(--ink-muted);
  line-height: 1.75;
}
.text-body strong { color: var(--ink); font-weight: 520; }

.why-list {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}
.why-item {
  position: relative;
  padding: 1.6rem 1.5rem;
  border-radius: 22px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
  overflow: hidden;
}
.why-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255,255,255,0.18), rgba(116,191,180,0.16) 55%, rgba(230,185,120,0.14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.why-item h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-variation-settings: "opsz" 60, "wght" 450;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--ink);
}
.why-item p {
  margin-top: 0.6rem;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.sanskrit {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.9;
}

/* the six books, as a quiet ledger */
.books {
  margin-top: 3rem;
  border-top: 1px solid var(--hairline);
}
.books li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 12rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0.2rem;
  border-bottom: 1px solid var(--hairline);
}
.books .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold-soft);
}
.books .sk {
  font-family: var(--font-display);
  font-weight: 440;
  font-variation-settings: "opsz" 60, "wght" 440;
  font-size: 1.02rem;
  color: var(--ink);
}
.books .en { font-size: 0.93rem; color: var(--ink-muted); }
@media (max-width: 40em) {
  .books li { grid-template-columns: 2.2rem 1fr; row-gap: 0.2rem; }
  .books .en { grid-column: 2; }
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: clamp(3.5rem, 8vh, 6rem); margin-top: 3.5rem; }
.step {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.step.flip .step-copy { order: 2; }
.step.flip .v-shot { order: 1; }
/* step one has no screen of its own: the hero already showed it */
.step-solo {
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--hairline);
}
.step-solo p { max-width: 60ch; }
.step-n {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--gold);
  border: 1px solid rgba(230, 185, 120, 0.4);
  background: rgba(230, 185, 120, 0.06);
}
.step h3 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 440;
  font-variation-settings: "opsz" 100, "wght" 440;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.012em;
}
.step p {
  margin-top: 0.9rem;
  color: var(--ink-muted);
  max-width: 46ch;
  line-height: 1.7;
}
.step .kbd {
  color: var(--ink);
  font-weight: 520;
  white-space: nowrap;
}
@media (max-width: 56em) {
  .step { grid-template-columns: 1fr; }
  .step.flip .step-copy { order: 1; }
  .step.flip .v-shot { order: 2; }
}

/* ---------- Library ---------- */
.library-grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.library-grid .explore { margin-top: 0; grid-template-columns: 1fr; }
@media (max-width: 56em) {
  .library-grid { grid-template-columns: 1fr; }
  .library-grid .explore { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
}

/* ---------- Rendering vs source comparison ---------- */
.compare {
  margin-top: 2.6rem;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: linear-gradient(165deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.compare-col { padding: clamp(1.5rem, 3.2vw, 2.4rem); }
.compare-col + .compare-col {
  border-left: 1px solid var(--hairline);
  background: rgba(1, 34, 42, 0.3);
}
.compare-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.compare-col + .compare-col .compare-label { color: var(--ink-faint); }
.compare-text {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 80, "wght" 400;
  font-size: 1.14rem;
  line-height: 1.55;
  color: var(--ink);
}
.compare-col + .compare-col .compare-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.compare-src {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.compare-foot {
  padding: 1rem clamp(1.5rem, 3.2vw, 2.4rem);
  border-top: 1px solid var(--hairline);
  font-size: 0.85rem;
  color: var(--ink-muted);
}
@media (max-width: 46em) {
  .compare-grid { grid-template-columns: 1fr; }
  .compare-col + .compare-col {
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }
}

/* ---------- Library themes ---------- */
.explore {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
}
.explore-item {
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.028);
}
.explore-item h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-variation-settings: "opsz" 50, "wght" 450;
  font-size: 1.02rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.explore-item p {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ---------- Facts / privacy proof ---------- */
.facts {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.7rem;
}
.facts li {
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.facts li b {
  display: block;
  font-family: var(--font-display);
  font-weight: 460;
  font-variation-settings: "opsz" 40, "wght" 460;
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

/* ---------- FAQ (no JavaScript required) ---------- */
.faq { margin-top: 2.6rem; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0.2rem;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 440;
  font-variation-settings: "opsz" 50, "wght" 440;
  font-size: 1.04rem;
  color: var(--ink);
  transition: color 0.25s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold); }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p {
  padding: 0 0.2rem 1.3rem;
  max-width: 62ch;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ---------- Closing ---------- */
.v-closing {
  text-align: center;
  padding-block: clamp(5rem, 13vh, 8rem);
}
.v-closing .v-title { margin-inline: auto; max-width: 18ch; }
.v-closing .cta-cluster { justify-content: center; }

/* ---------- Footer notes ---------- */
.foot-note {
  margin: 1.4rem auto 0;
  max-width: 52ch;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-faint);
}

/* ---------- Lamp anchors ---------- */
.lamp-anchor {
  position: absolute;
  top: 45%; left: 50%;
  width: 1px; height: 1px;
}
.v-hero .lamp-anchor { top: 46%; left: 66%; }
@media (max-width: 56em) {
  .v-hero .lamp-anchor { top: 30%; left: 50%; }
}

/* ---------- No WebGL: a quieter field ---------- */
.no-webgl #sky { display: none; }
.no-webgl body {
  background:
    radial-gradient(50rem 40rem at 60% 18rem, rgba(230, 185, 120, 0.14), transparent 62%),
    linear-gradient(to bottom, #05414c, #01222a 70%);
  background-attachment: fixed;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .status-chip .dot { animation: none; opacity: 0.9; }
}

/* ---------- Legal and support documents ---------- */
.doc {
  max-width: 44rem;
  padding-top: 9rem;
  text-align: left;
}
.doc h1 {
  font-family: var(--font-display);
  font-weight: 430;
  font-variation-settings: "opsz" 120, "wght" 430;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.doc .doc-date {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.doc h2 {
  margin-top: 2.8rem;
  font-family: var(--font-display);
  font-weight: 440;
  font-variation-settings: "opsz" 80, "wght" 440;
  font-size: 1.35rem;
  line-height: 1.25;
}
.doc h3 {
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-weight: 440;
  font-variation-settings: "opsz" 50, "wght" 440;
  font-size: 1.06rem;
}
.doc p, .doc li {
  margin-top: 0.9rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-muted);
}
.doc ul { list-style: disc; padding-left: 1.4rem; }
.doc ul li { margin-top: 0.45rem; padding-left: 0.2rem; }
.doc strong { color: var(--ink); font-weight: 520; }
.doc a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 0.2em; }
.doc a:hover { color: var(--gold); }
.doc .doc-note {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(230, 185, 120, 0.25);
  background: rgba(230, 185, 120, 0.05);
  font-size: 0.88rem;
}
.doc-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.doc-back:hover, .doc-back:focus-visible { color: var(--gold); }

.quiet-link {
  color: var(--gold-soft);
  text-decoration: underline;
  text-decoration-color: rgba(230, 185, 120, 0.35);
  text-underline-offset: 0.2em;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
.quiet-link:hover, .quiet-link:focus-visible {
  color: var(--gold);
  text-decoration-color: var(--gold);
}
