:root {
  color-scheme: light only;
  --ink: #1a1f3a;
  --ink-soft: #2a3158;
  --parchment: #f3ead7;
  --parchment-deep: #e8dcc4;
  --saffron: #c45c26;
  --saffron-hover: #a84b1c;
  --cream: #faf6ee;
  --text: #1c1830;
  --muted: #5c5670;
  --on-dark: #f3ead7;
  --on-dark-muted: rgba(243, 234, 215, 0.78);
  --header-h: 64px;
  --radius: 4px;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow-soft: 0 12px 40px rgba(26, 31, 58, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  color-scheme: light only;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  forced-color-adjust: none;
  -webkit-tap-highlight-color: transparent;
}

/* In-page targets clear the sticky header */
#home,
#about,
#features,
#libraries,
#screenshots,
#download,
#premium {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  color-scheme: light only;
  forced-color-adjust: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--saffron);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

.wrap {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.band__narrow {
  width: min(720px, 100%);
  margin-inline: auto;
}

.about-prose {
  width: min(820px, 100%);
  margin: 0;
}
.about-prose p {
  margin: 0 0 1.15rem;
}
.about-prose .lead {
  margin-bottom: 1.35rem;
  font-size: 1.2rem;
  color: var(--text);
}
.about-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.5rem !important;
}
.about-links__sep {
  color: var(--muted);
}

/* Sticky chrome keeps header + drawer + backdrop in one stacking context
   so the dim overlay can never sit above the menu links. */
.site-top {
  position: sticky;
  top: 0;
  z-index: 200;
}

/* Header */
.site-header {
  position: relative;
  z-index: 2;
  min-height: var(--header-h);
  background: rgba(26, 31, 58, 0.94);
  backdrop-filter: blur(10px);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(243, 234, 215, 0.12);
}

.site-header__inner {
  width: min(1100px, calc(100% - 1.25rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--on-dark);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 5.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.1;
}
.site-logo span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: fixed;
  top: var(--header-h);
  right: 0;
  width: min(320px, 88vw);
  height: calc(100vh - var(--header-h));
  padding: 1.25rem;
  background: var(--ink);
  transform: translateX(105%);
  transition: transform 0.35s var(--ease), visibility 0.35s;
  z-index: 3;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
}
.site-nav a {
  color: var(--on-dark);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(243, 234, 215, 0.08);
}

body.nav-open .site-nav {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 24, 0.55);
  z-index: 1;
}
.nav-backdrop[hidden] {
  display: none;
}

.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(243, 234, 215, 0.25);
  border-radius: var(--radius);
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.lang-switch a.is-active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}
.lang-switch a:hover,
.lang-switch a:focus-visible {
  background: rgba(243, 234, 215, 0.08);
}
.lang-switch a.is-active:hover,
.lang-switch a.is-active:focus-visible {
  background: var(--saffron-hover);
  border-color: var(--saffron-hover);
}

.site-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(243, 234, 215, 0.55);
  border-radius: 6px;
  background: rgba(243, 234, 215, 0.12);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  color-scheme: only light;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  box-shadow: 0 0 0 0.5px rgba(243, 234, 215, 0.35);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.btn--primary {
  background: var(--saffron);
  color: #fff;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--saffron-hover);
  color: #fff;
}
.btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.btn--compact {
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
}

.text-link {
  color: var(--saffron);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.text-link--on-dark {
  color: #f0c9a0;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(26, 31, 58, 0.12), rgba(26, 31, 58, 0.02)),
    url("/img/srila-prabhupada.jpg") center top / cover no-repeat;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(18, 22, 42, 0.08) 0%,
      rgba(18, 22, 42, 0.12) 38%,
      rgba(18, 22, 42, 0.45) 68%,
      rgba(18, 22, 42, 0.78) 100%
    );
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 1.25rem 0 1.1rem;
  max-width: 34rem;
  margin-left: max(1rem, calc((100% - 1100px) / 2));
  margin-right: 1rem;
  animation: heroIn 0.9s var(--ease) both;
}
.hero__brand {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.89rem, 7.2vw, 3.42rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 18px rgba(10, 12, 24, 0.55);
}
.hero__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4.68vw, 1.98rem);
  font-weight: 600;
  line-height: 1.18;
  max-width: 28ch;
  text-shadow: 0 2px 16px rgba(10, 12, 24, 0.5);
}
.hero__sub {
  margin: 0 0 1.1rem;
  font-size: 0.945rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 36ch;
  text-shadow: 0 1px 12px rgba(10, 12, 24, 0.55);
}
.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hero__ctas .btn {
  width: 100%;
  max-width: 22rem;
  min-height: 38px;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media {
    animation: none;
  }
  .hero__content {
    animation: none;
  }
}

/* Bands */
.band {
  padding: 3.5rem 0;
}
.band--parchment {
  background: var(--parchment);
}
.band--ink {
  background: var(--ink);
  color: var(--on-dark);
}
.band--ink .lead {
  color: var(--on-dark-muted);
}
.band--cta {
  background:
    radial-gradient(circle at 20% 20%, rgba(196, 92, 38, 0.25), transparent 45%),
    linear-gradient(135deg, #242a4d, #1a1f3a 55%, #2f2450);
  color: #fff;
  text-align: center;
}
.band--premium {
  background: var(--parchment-deep);
  text-align: center;
}
.band--closing {
  padding: 2.5rem 0;
  background:
    linear-gradient(rgba(18, 22, 42, 0.72), rgba(18, 22, 42, 0.85)),
    url("/img/gaurakisora-dasa-babaji.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
}
.closing-quote {
  margin: 0 auto;
  max-width: 40rem;
  padding: 0 0.5rem;
  border: 0;
  text-align: center;
}
.closing-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.26rem, 3.36vw, 1.62rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
.closing-cite {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 500;
  color: rgba(243, 234, 215, 0.72);
}
.closing-cite a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 234, 215, 0.35);
}
.closing-cite a:hover,
.closing-cite a:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
}
.subhead {
  margin: 1.5rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.muted {
  color: var(--muted);
  font-size: 0.98rem;
}
.band__intro {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}
.band__footer-link {
  margin-top: 1.75rem;
}

.feature-grid,
.proof-grid,
.book-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.feature-item {
  padding: 1.15rem 1.1rem;
  background: rgba(243, 234, 215, 0.06);
  border: 1px solid rgba(243, 234, 215, 0.12);
  border-radius: var(--radius);
}
.feature-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}
.feature-item p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 0.98rem;
}

.band-split {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0;
  background: var(--cream);
}
.band-split__media {
  min-height: 220px;
  background-size: cover;
  background-position: center;
}
.band-split__body {
  padding: 2.5rem 1rem;
}
.band-split__body .wrap,
.band-split__body > div {
  width: min(560px, 100%);
  margin-inline: auto;
}
.book-list {
  display: grid;
  gap: 0.35rem;
}
.book-list li {
  padding-left: 1rem;
  position: relative;
}
.book-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--saffron);
}

/* Package language tabs */
.pkg-tabs {
  margin-top: 0.5rem;
}
.pkg-tabs__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.85rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.pkg-tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(26, 31, 58, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}
.pkg-tabs__tab img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}
.pkg-tabs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(26, 31, 58, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
}
.pkg-tabs__tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}
.pkg-tabs__tab.is-active .pkg-tabs__count {
  background: rgba(243, 234, 215, 0.18);
  color: var(--on-dark);
}
.pkg-tabs__tab:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}
.pkg-tabs__panel {
  display: none;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(26, 31, 58, 0.1);
  border-radius: var(--radius);
  padding: 0.35rem 0.75rem;
}
.pkg-tabs__panel.is-active {
  display: block;
}
.pkg-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pkg-list__item {
  display: grid;
  grid-template-columns: minmax(4.5rem, 7rem) 44px minmax(0, 1fr);
  gap: 0.35rem 0.55rem;
  align-items: center;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid rgba(26, 31, 58, 0.08);
}
.pkg-list__item:last-child {
  border-bottom: 0;
}
.pkg-list__alias {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  word-break: break-word;
}
.pkg-list__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.pkg-list__name {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
}
.pkg-list__name:hover,
.pkg-list__name:focus-visible {
  color: var(--saffron);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.libraries-notes {
  margin-top: 1.5rem;
  max-width: 46rem;
}
.libraries-notes p {
  margin: 0 0 0.75rem;
}

.proof-grid {
  display: grid;
  gap: 1rem;
}
.proof-item {
  padding: 1.25rem 1.15rem;
  background: rgba(26, 31, 58, 0.04);
  border-left: 3px solid var(--saffron);
}
.proof-item p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.35;
}

.shot-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shot-card {
  margin: 0;
  flex: 0 0 min(220px, 70vw);
  scroll-snap-align: start;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.shot-card img {
  width: 100%;
  height: auto;
}

.store-badge {
  margin: 1rem auto 0;
  opacity: 0.95;
}

.band--cta .hero__ctas,
.band--premium .hero__ctas {
  max-width: 28rem;
  margin-inline: auto;
}
.band--premium .btn--secondary {
  color: var(--ink);
  border-color: rgba(26, 31, 58, 0.35);
}
.band--premium .btn--secondary:hover,
.band--premium .btn--secondary:focus-visible {
  background: rgba(26, 31, 58, 0.06);
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: #12162a;
  color: var(--on-dark-muted);
  padding: 2.5rem 0;
}
.site-footer__inner {
  display: grid;
  gap: 1.25rem;
}
.site-footer__brand {
  margin: 0;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
}
.site-footer__links a {
  color: var(--on-dark-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: #fff;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Tablet+ */
@media (min-width: 640px) {
  .hero__ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hero__ctas .btn {
    width: auto;
  }
  .band--cta .hero__ctas .btn,
  .band--premium .hero__ctas .btn {
    width: auto;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    width: auto;
    height: auto;
    padding: 0;
    transform: none;
    background: transparent;
    overflow: visible;
    gap: 0.15rem;
    margin-left: 1rem;
    visibility: visible;
    pointer-events: auto;
  }
  .site-nav a {
    min-height: 40px;
    padding: 0.25rem 0.55rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .band-split {
    grid-template-columns: 1.05fr 1fr;
    min-height: 520px;
  }
  .band-split__media {
    min-height: 100%;
  }
  .band-split__body {
    display: flex;
    align-items: center;
    padding: 3rem 2.5rem;
  }
  .pkg-list__item {
    grid-template-columns: 8.5rem 44px minmax(0, 1fr);
    gap: 0.75rem;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .feature-item:nth-child(10) {
    grid-column: span 1;
  }
}
