/* ==========================================================================
   Saṃskṛta Avagāhinī (Level-2) landing page — same Geervanee "manuscript"
   design system as /pravesini/styles.css (kept in sync intentionally: both
   Level-1 and Level-2 course pages should look like one family). See
   /assets/css/style.css for the shared :root tokens + fonts. Ink-dark hero
   with a gold temple-border rule, cream parchment cards elsewhere, Fraunces
   for display type, Noto Serif Devanagari for Sanskrit accents.
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
a.underline { text-decoration: underline; color: var(--gold); }
.hero a.underline, .footer a.underline { color: var(--gold); }
img, iframe { max-width: 100%; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Layout helpers */
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 28px; }
.section { padding: 40px 0; }
.section-large { padding: 56px 0; }
.hero-pad { padding: 44px 0 52px; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 16px; }
.mb-3 { margin-top: 0; margin-bottom: 16px; }
.mb-4 { margin-bottom: 22px; }
.mt { margin-top: 22px; }
.mt-12 { margin-top: 28px; }
.pt-2 { padding-top: 10px; }
.pt { padding-top: 24px; }

.grid2 { display: grid; grid-template-columns: 1fr; }
.grid3 { display: grid; grid-template-columns: 1fr; }
.align-start { align-items: start; }
.align-center { align-items: center; }
.gap { gap: 20px; }

@media (min-width: 860px) {
  .grid2 { grid-template-columns: 1.15fr 1fr; }
  .grid3 { grid-template-columns: repeat(3, 1fr); }
}

.flex-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.center { text-align: center; display: grid; place-items: center; gap: 12px; }

/* Headings — Fraunces everywhere, matching the rest of geervanee.in */
.h1, .h2, .h3, .h4, .h5 { font-family: "Fraunces", serif; color: var(--ink); font-weight: 600; }
.h1 { font-size: clamp(28px, 4.6vw, 42px); line-height: 1.2; font-weight: 600; margin: 18px 0 0; }
.h2 { font-size: clamp(22px, 3.6vw, 30px); margin: 0; }
.h3 { font-size: clamp(19px, 3.2vw, 25px); margin: 0; }
.h3.big { font-size: clamp(20px, 3.2vw, 24px); }
.h4 { font-size: 18px; margin: 0; }
.h5 { font-size: 17px; margin: 0; }

.lead { font-size: clamp(15px, 2vw, 17px); line-height: 1.7; color: var(--ink-soft); max-width: 68ch; }
.muted { color: var(--ink-soft); }
.muted.big { font-size: 15px; margin-top: 8px; }
.muted.strong, p.muted.strong { font-weight: 700; color: var(--ink); }
.small { font-size: 13.5px; }

/* ===== Hero — dark ink "manuscript at night" treatment ===== */
.bg-hero { background: var(--ink); }
.hero { position: relative; overflow: hidden; }
.hero::after {
  content: ""; display: block; height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 14px);
  opacity: 0.6;
}
.hero-grid { align-items: center; margin-top: 36px; }
.hero-head { text-align: left; }
.hero-eyebrow {
  font-family: "Noto Serif Devanagari", serif; color: var(--gold);
  font-size: 15px; letter-spacing: 0.03em; margin-top: 16px;
}
.hero .h1 { color: var(--cream); }
.hero .lead { color: #cfc8e3; }
.hero .lead b { color: var(--gold); }
.hero-summary {
  margin-top: 18px; padding: 14px 20px; border-radius: 14px;
  background: rgba(251,248,241,0.06); border: 1px solid rgba(184,134,11,0.35);
  color: #d9d3ea; font-size: 14.5px; line-height: 1.6; max-width: 68ch;
}
.hero-summary b { color: var(--gold); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(184,134,11,0.45);
  background: rgba(184,134,11,0.15);
  color: var(--cream);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 13.5px;
}
.pill-emoji { font-size: 17px; }

.bullets { display: grid; gap: 8px; margin-top: 18px; }
.bullet { display: flex; align-items: center; gap: 10px; color: #d9d3ea; font-size: 15px; }
.bullet b { color: var(--cream); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 999px; background: var(--gold); flex: none; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn-row.center { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-family: "Work Sans", sans-serif;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .05s ease, background .2s ease, border-color .2s ease, filter .2s ease;
  text-align: center; font-size: 15px;
}
.btn:active { transform: translateY(1px); }

.btn-primary { color: var(--cream); background: var(--ink); box-shadow: 0 10px 24px -12px rgba(46,38,71,0.55); }
.hero .btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(184,134,11,0.55); }
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost { color: var(--cream); background: transparent; border-color: rgba(251,248,241,0.35); }
.btn-ghost:hover { background: rgba(251,248,241,0.1); }
section .btn-ghost, .card .btn-ghost { color: var(--ink); border-color: var(--border); }
section .btn-ghost:hover, .card .btn-ghost:hover { background: var(--bg); }

.btn-ghost-sm {
  font-weight: 600; padding: 8px 14px; font-size: 13px;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--cream); color: var(--ink);
}
.btn-ghost-sm:hover { background: var(--bg); }

.btn-icon-row { display: flex; gap: 8px; }
.btn-icon {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--cream);
  color: var(--ink); cursor: pointer; font-size: 16px;
}
.btn-icon:hover { border-color: var(--gold); color: var(--gold); }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px -30px rgba(46, 38, 71, 0.4);
}
.card.soft { background: var(--bg); }
.card.dashed { border-style: dashed; border-width: 1.5px; }
.card.brandish { border-color: rgba(184,134,11,0.5); background: var(--cream); }
.card.center { text-align: center; }
.card.shrink { flex: 0 0 auto; width: 100%; }

.hoverable { transition: background .2s ease, border-color .2s ease; }
.hoverable:hover { background: var(--cream); border-color: var(--gold); }

.tick {
  display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
  border: 1px solid rgba(184,134,11,0.4); background: rgba(184,134,11,0.12);
  border-radius: 9px; margin-bottom: 8px;
}
.emoji { font-size: 24px; }
.soln-pill {
  margin-top: 14px; width: 100%;
  border: 1px solid var(--border); background: var(--card);
  color: var(--ink-soft); padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.6;
}

/* Responsive video */
.video-card { border: 1px solid var(--border); border-radius: 20px; background: var(--ink); overflow: hidden; box-shadow: 0 20px 40px -25px rgba(46,38,71,0.6); }
.aspect-16-9 { position: relative; width: 100%; padding-top: 56.25%; }
.iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* Carousel base */
.viewport { overflow: hidden; position: relative; }
.track { display: flex; gap: 20px; will-change: transform; transition: transform 0.5s ease-out; }

/* Countdown boxes — "temple clock" */
.counter { display: flex; flex-wrap: wrap; gap: 12px; }
.counter .box {
  min-width: 78px; text-align: center;
  background: var(--ink); border: 1px solid rgba(184,134,11,0.4);
  padding: 12px 10px; border-radius: 14px;
}
.hero .counter .box { background: rgba(251,248,241,0.06); border-color: rgba(184,134,11,0.45); }
.counter .num { font-family: "Fraunces", serif; font-size: 24px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.counter .num.secs { color: var(--pink); }
.counter .lab { font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: #cfc8e3; margin-top: 2px; }
section .counter .lab { color: var(--ink-soft); }

/* Footer */
.footer { padding: 32px 0; color: var(--ink-soft); font-size: 13.5px; background: var(--ink); }
.footer a { color: var(--cream); }
.footrow { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #cfc8e3; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; }
.modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(46,38,71,0.55); }
.modal-positioner { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; }
.modal-panel {
  width: 100%; max-width: 780px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 40px 80px -30px rgba(46,38,71,0.5);
}
.modal-head, .modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-foot { border-bottom: 0; border-top: 1px solid var(--border); justify-content: flex-end; }
.modal-body { padding: 20px 22px; max-height: 70vh; overflow: auto; }
.modal-body .ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.modal-body .ol > li { border-left: 3px solid var(--gold); padding-left: 14px; }
.modal-body .ol > li > strong { font-family: "Fraunces", serif; color: var(--ink); }
.modal-body .ul { list-style: disc; margin: 6px 0 0 20px; padding: 0; }
.modal-body .ul li { margin-bottom: 3px; line-height: 1.6; }

/* Special offer */
.offer-card { background: var(--cream); border-color: rgba(184,134,11,0.5); }
.offer-heading-row { font-weight: 700; font-size: 22px; font-family: "Fraunces", serif; }
.offer-pulse { color: var(--gold); animation: offer-pulse 2.2s ease-in-out infinite; }
.offer-pulse-alt { color: var(--pink); animation: offer-pulse 2.2s ease-in-out infinite; animation-delay: .3s; }
@keyframes offer-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.offer-body { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.offer-text { text-align: left; max-width: 480px; font-size: 14.5px; line-height: 1.6; }

/* ===== Geervanee Sanskrit learning path ===== */
.path-progress { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.path-step {
  padding: 14px 20px; border-radius: 14px; font-weight: 700;
  min-width: 160px; text-align: center; font-family: "Fraunces", serif;
  transition: transform .2s ease; background: var(--card); border: 1px solid var(--border); color: var(--ink);
}
.path-step.active { background: var(--ink); color: var(--cream); border-color: var(--gold); transform: scale(1.06); }
.path-step.active::before { content: ""; }
.path-step.completed { background: var(--cream); color: var(--gold); border: 1.5px solid var(--gold); }
.path-step.completed a { color: inherit; }
.path-step.upcoming { background: var(--bg); color: var(--ink-soft); border: 1px dashed var(--border); font-weight: 600; }
.path-step.upcoming a { color: inherit; }
.path-line { width: 50px; height: 3px; border-radius: 10px; background: repeating-linear-gradient(90deg, var(--gold) 0 5px, transparent 5px 10px); }
@media (max-width: 640px) { .path-progress { gap: 10px; } .path-line { width: 26px; } }

@media (max-width: 620px) {
  .offer-body { flex-direction: column; }
  .hero-grid { margin-top: 24px; }
}
