/* ============================================================
   Layamritam — landing page styles
   Built on the Layamritam Design System (css/tokens.css)
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--surface);
  color: var(--fg-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ─── Type helpers ─────────────────────────────────────── */
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--fg-3); font-family: var(--font-body);
}
h1.display {
  font-family: var(--font-display); font-size: 64px; font-weight: 400;
  line-height: 1.04; letter-spacing: -0.03em; margin: 0; color: var(--fg-1);
}
h2 {
  font-family: var(--font-display); font-size: 44px; font-weight: 500;
  line-height: 1.1; letter-spacing: -0.02em; margin: 0; color: var(--fg-1);
}
h3 { font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1.25; margin: 0; }
p.lede { font-size: 20px; line-height: 1.55; color: var(--fg-2); margin: 0; }

/* Indic scripts stack conjuncts and matras above and below the base letter;
   the tight display leading clips them. Give the big lines room (and drop the
   negative tracking, which squeezes joined forms) for those interface
   languages. html[lang] is set by the locale loader. */
:is(:lang(ml), :lang(hi), :lang(ta), :lang(te), :lang(kn), :lang(mr), :lang(gu), :lang(bn), :lang(or), :lang(sa), :lang(pa)) :is(h1.display, #hero-title) {
  line-height: 1.38; letter-spacing: 0;
}
:is(:lang(ml), :lang(hi), :lang(ta), :lang(te), :lang(kn), :lang(mr), :lang(gu), :lang(bn), :lang(or), :lang(sa), :lang(pa)) h2 {
  line-height: 1.32; letter-spacing: 0;
}
:is(:lang(ml), :lang(hi), :lang(ta), :lang(te), :lang(kn), :lang(mr), :lang(gu), :lang(bn), :lang(or), :lang(sa), :lang(pa)) h3 {
  line-height: 1.4;
}
:is(:lang(ml), :lang(hi), :lang(ta), :lang(te), :lang(kn), :lang(mr), :lang(gu), :lang(bn), :lang(or), :lang(sa), :lang(pa)) p.lede {
  line-height: 1.7;
}

/* ─── Buttons ──────────────────────────────────────────── */
.btn-primary {
  background: var(--primary); color: var(--primary-fg); border: none;
  padding: 12px 22px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: var(--font-body);
  box-shadow: 0 2px 8px rgba(184,68,44,0.25);
  transition: all var(--dur-base) var(--ease-out);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(184,68,44,0.35); }
.btn-secondary {
  background: transparent; color: var(--fg-1); border: 1px solid var(--bd-strong);
  padding: 12px 22px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600;
  font-family: var(--font-body); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn-secondary:hover { background: var(--surface-raised); border-color: var(--bd-strong); }

/* ─── Nav ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,244,232,0.88);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--bd-subtle);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; max-width: 1340px; margin: 0 auto; gap: 14px 20px; flex-wrap: wrap;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-brand img { border-radius: 7px; display: block; }
.nav-brand span { font-family: var(--font-display); font-size: 23px; font-weight: 500; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 18px; font-size: 14px; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; font-weight: 500; color: var(--fg-2); letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.nav-links a:hover { color: var(--primary); border-bottom-color: var(--accent); }
.nav-links a.active { color: var(--primary); border-bottom-color: var(--accent); }
.nav-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* When one row can't hold everything (long-word languages), stack: brand
   left + actions right on the first row, menu links on their own row below,
   left-aligned. Toggled by layoutNav() in site.js. */
.nav-inner.stacked .nav-brand { order: 1; }
.nav-inner.stacked .nav-search { order: 2; margin-left: auto; }
.nav-inner.stacked .nav-actions { order: 3; }
.nav-inner.stacked .nav-links { order: 4; flex-basis: 100%; justify-content: flex-start; }

/* ─── Header search ────────────────────────────────────── */
/* Types straight into the Questions section further down the page. */
.nav-search { position: relative; display: flex; align-items: center; }
.nav-search svg {
  position: absolute; left: 12px; color: var(--fg-3); pointer-events: none;
}
.nav-search input {
  width: 150px; padding: 9px 14px 9px 34px; border-radius: var(--r-pill);
  border: 1px solid var(--bd-default); background: var(--surface-raised);
  font-family: var(--font-body); font-size: 14px; color: var(--fg-1); outline: none;
  transition: width var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.nav-search input:focus { width: 220px; box-shadow: var(--shadow-focus); }
.nav-search input::-webkit-search-cancel-button { cursor: pointer; }
[dir="rtl"] .nav-search input { padding: 9px 34px 9px 14px; }
[dir="rtl"] .nav-search svg { left: auto; right: 12px; }

/* ─── Language picker ──────────────────────────────────── */
.lang-picker { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--bd-default); background: transparent;
  font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--fg-2);
  cursor: pointer; transition: all var(--dur-base) var(--ease-out); white-space: nowrap;
}
.lang-btn:hover { border-color: var(--bd-strong); color: var(--fg-1); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  background: var(--surface-raised); border: 1px solid var(--bd-default);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px;
  display: flex; gap: 6px; max-height: 60vh; overflow-y: auto;
}
.lang-col { display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.lang-menu[hidden] { display: none; }
.lang-item {
  text-align: left; padding: 9px 12px; border: none; background: transparent;
  border-radius: 8px; font-family: var(--font-body); font-size: 14px; color: var(--fg-1);
  cursor: pointer; transition: background var(--dur-base) var(--ease-out); white-space: nowrap;
}
.lang-item:hover { background: var(--surface-sunken); }
.lang-item.active { background: rgba(184,68,44,0.1); color: var(--primary); font-weight: 600; }

/* RTL: mirror the reading direction but keep the phone frames upright. */
[dir="rtl"] .detail-copy li { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .detail-copy li::before { left: auto; right: 2px; }
[dir="rtl"] .wn-card li { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .wn-card li::before { left: auto; right: 0; }
[dir="rtl"] .faq-q ol { padding: 0 42px 0 22px; }
[dir="rtl"] .faq-search input { padding: 14px 46px 14px 18px; }
[dir="rtl"] .faq-search svg { left: auto; right: 17px; }
[dir="rtl"] .translit-explain { text-align: right; }

/* ─── Sections ─────────────────────────────────────────── */
section { padding: 88px 0; }
section.alt { background: var(--surface-sunken); }
section.dark { background: var(--parchment-900); color: var(--parchment-0); }
section.dark h2 { color: var(--parchment-0); }
section.dark .eyebrow { color: var(--fg-on-dark-3); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-header .eyebrow { font-size: 19px; letter-spacing: 0.08em; }
.section-header h2 { margin-top: 12px; }
.section-header p { margin-top: 16px; font-size: 18px; color: var(--fg-2); line-height: 1.6; }
section.dark .section-header p { color: var(--fg-on-dark-2); }

/* ─── Hero + carousel ──────────────────────────────────── */
.hero { padding: 48px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 22px; font-size: 17px; letter-spacing: 0.09em; }
#hero-title {
  font-size: 58px; min-height: 2.1em;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
#hero-sub {
  margin-top: 20px; max-width: 500px; min-height: 4.7em;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.hero-copy .swapping { opacity: 0; transform: translateY(6px); }
.hero-ctas { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.stat-row { display: flex; gap: 40px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--bd-subtle); }
.stat .num { font-family: var(--font-display); font-size: 32px; font-weight: 500; color: var(--primary); line-height: 1; letter-spacing: -0.02em; }
.stat .lbl { font-size: 12px; color: var(--fg-2); margin-top: 6px; }

.carousel { position: relative; }
.carousel-viewport { position: relative; min-height: 556px; }
.carousel-slide {
  position: absolute; inset: 0; opacity: 0; transform: translateY(10px);
  transition: opacity var(--dur-slower) var(--ease-out), transform var(--dur-slower) var(--ease-out);
  pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.carousel-slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.slide-shots { display: flex; gap: 16px; justify-content: center; align-items: flex-start; }
.frame {
  background: var(--parchment-900); border-radius: 26px; padding: 5px;
  box-shadow: 0 20px 40px rgba(42,31,24,0.22); flex: 0 0 auto; width: 228px;
}
.frame img { width: 100%; border-radius: 21px; display: block; }
.slide-shots .frame:nth-child(2) { margin-top: 28px; }
.slide-shots.banner { align-items: center; min-height: 500px; }
.slide-banner {
  width: min(520px, 94%);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(43, 26, 16, 0.18);
}

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.carousel-dots { display: flex; gap: 7px; }
.carousel-dots button {
  width: 7px; height: 7px; border-radius: 999px; border: none; padding: 0;
  background: var(--parchment-300); cursor: pointer; transition: all var(--dur-base) var(--ease-out);
}
.carousel-dots button.active { background: var(--primary); width: 20px; }
.carousel-arrow {
  width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--bd-default);
  background: var(--surface-raised); color: var(--fg-1); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-base) var(--ease-out);
}
.carousel-arrow:hover { border-color: var(--bd-strong); box-shadow: var(--shadow-sm); }

/* ─── Feature cards ────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface-raised); border: 1px solid var(--bd-subtle);
  border-radius: 16px; padding: 28px; transition: all var(--dur-base) var(--ease-out);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-card .icon-box {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(184,68,44,0.1);
  color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--fg-2); line-height: 1.55; margin: 0; }

/* ─── Detailed feature rows ────────────────────────────── */
.detail-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 44px 0;
}
.detail-row + .detail-row { border-top: 1px solid var(--bd-subtle); }
.detail-row.flip .detail-media { order: 2; }
.detail-media { display: flex; gap: 16px; justify-content: center; }
.detail-media .frame { width: 216px; }
.detail-media .frame:nth-child(2) { margin-top: 26px; }
.detail-media .frame.wide { width: 360px; }
.detail-copy h3 { font-size: 28px; }
.detail-copy .eyebrow { margin-bottom: 10px; }
.detail-copy ul { margin: 18px 0 0; padding: 0; list-style: none; }
.detail-copy li {
  font-size: 15px; color: var(--fg-2); line-height: 1.55; padding-left: 24px;
  position: relative; margin-bottom: 10px;
}
.detail-copy li::before {
  content: ''; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px;
  border-radius: 999px; background: var(--accent);
}
.platform-note { font-size: 12px; color: var(--fg-3); margin-top: 14px; }

/* ─── Amma ─────────────────────────────────────────────── */
.amma-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.amma-copy h2 { margin-top: 12px; }
.amma-copy .lede { margin-top: 18px; color: var(--brass-200); }
.amma-copy > p:not(.lede) {
  margin: 18px 0 0; font-size: 16px; line-height: 1.7; color: var(--fg-on-dark-2);
}
.amma-links { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
section.dark .amma-links .btn-secondary { color: var(--parchment-0); border-color: rgba(255,253,248,0.3); }
section.dark .amma-links .btn-secondary:hover { background: rgba(255,253,248,0.08); border-color: rgba(255,253,248,0.55); }
.amma-mark { text-align: center; }
/* The oṃ glyph ships dark; invert it to sit on the night-temple background. */
.amma-photo {
  width: min(340px, 84%);
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  transition: opacity 0.45s ease;
}
.amma-photo.fading { opacity: 0; }
.amma-quote { transition: opacity 0.45s ease; min-height: 3.2em; }
.amma-quote.fading { opacity: 0; }
.amma-quote {
  font-family: var(--font-display); font-size: 22px; font-style: italic; font-weight: 400;
  line-height: 1.45; color: var(--parchment-0); margin-top: 28px;
}
.amma-attrib {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-on-dark-3); margin-top: 14px;
}

/* ─── Deep dive ────────────────────────────────────────── */
.dd-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 0 44px; }
.dd-tab {
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--bd-default);
  background: transparent; color: var(--fg-2); font-family: var(--font-body);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}
.dd-tab:hover { border-color: var(--bd-strong); color: var(--fg-1); }
.dd-tab.active { background: var(--primary); border-color: var(--primary); color: #fffdf8; }
.dd-panel { display: none; }
.dd-panel.active { display: block; }
.dd-lead { font-size: 19px; line-height: 1.55; color: var(--fg-2); max-width: 720px; margin: 0 auto 40px; text-align: center; }
.dd-flow { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; padding: 8px 0 36px; }
.dd-flow.flip .dd-media { order: -1; }
.dd-steps { display: flex; flex-direction: column; gap: 26px; }
.dd-step { display: flex; gap: 16px; align-items: flex-start; }
.dd-n {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  font-weight: 700; font-size: 16px;
}
.dd-step h4 { margin: 4px 0 6px; font-size: 17px; font-weight: 700; }
.dd-step p { margin: 4px 0 0; color: var(--fg-2); line-height: 1.6; }
.dd-media { display: flex; gap: 14px; justify-content: center; align-items: flex-start; flex-wrap: wrap; position: sticky; top: 96px; }
.dd-shot { margin: 0; width: 215px; }
.dd-shot .frame { width: 100%; }
.dd-shot figcaption { font-size: 14.5px; color: var(--fg-2); font-weight: 500; text-align: center; margin-top: 10px; line-height: 1.45; }
.dd-sub { border-top: 1px solid var(--bd-subtle); padding-top: 34px; margin-top: 12px; }
.dd-sub h3 { text-align: center; margin-bottom: 26px; }

/* ─── What's new ───────────────────────────────────────── */
.wn-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 40px; }
.wn-tab {
  padding: 10px 22px; border-radius: var(--r-pill); border: 1px solid var(--bd-default);
  background: transparent; font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; color: var(--fg-2); transition: all var(--dur-base) var(--ease-out);
}
.wn-tab.active { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.wn-panel { display: none; }
.wn-panel.active { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.wn-card {
  background: var(--surface-raised); border: 1px solid var(--bd-subtle);
  border-radius: 16px; padding: 24px;
}
.wn-card h4 { font-family: var(--font-display); font-size: 19px; font-weight: 500; margin: 0 0 12px; }
.wn-card ul { margin: 0; padding: 0; list-style: none; }
.wn-card li {
  font-size: 14px; color: var(--fg-2); line-height: 1.5; padding-left: 20px;
  position: relative; margin-bottom: 8px;
}
.wn-card li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px;
  border-radius: 999px; background: var(--accent);
}
.wn-card .chip {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-3); border: 1px solid var(--bd-default);
  border-radius: var(--r-pill); padding: 3px 10px; margin-bottom: 12px;
}

/* ─── Languages ────────────────────────────────────────── */
.lang-groups { display: flex; flex-direction: column; gap: 18px; margin-top: 34px; }
.lang-group {
  border: 1px solid rgba(255,253,248,0.16); border-radius: 16px;
  padding: 18px 20px 22px; background: rgba(255,253,248,0.03);
}
.lang-group-title {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,253,248,0.65); margin-bottom: 14px;
}
.lang-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.lang-chip {
  padding: 16px 12px; background: rgba(255,253,248,0.05);
  border: 1px solid rgba(255,253,248,0.1); border-radius: 12px; text-align: center;
  transition: all var(--dur-base) var(--ease-out);
}
.lang-chip:hover { background: rgba(255,253,248,0.08); border-color: rgba(255,253,248,0.18); }
.lang-chip { cursor: pointer; font: inherit; }
.lang-chip.active { background: rgba(216, 111, 56, 0.22); border-color: var(--accent); }
.lang-chip.active .label { color: #fffdf8; }

.verse-stage { text-align: center; margin: 26px 0 6px; min-height: 132px; }
.verse-text {
  font-size: clamp(24px, 3.2vw, 34px); line-height: 1.5; color: #fffdf8;
  transition: opacity 0.35s var(--ease-out);
}
.verse-meaning { margin-top: 10px; font-style: italic; color: var(--fg-on-dark-2); font-size: 16px; transition: opacity 0.35s var(--ease-out); }
.verse-lang { margin-top: 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.verse-stage.swapping .verse-text, .verse-stage.swapping .verse-meaning { opacity: 0; }
.lang-chip .script {
  font-size: 20px; color: var(--brass-200); line-height: 1;
  font-family: 'Noto Serif Devanagari', 'Noto Sans Malayalam', var(--font-display);
}
.lang-chip .label { font-size: 10px; color: var(--fg-on-dark-3); margin-top: 8px; letter-spacing: 0.04em; font-family: var(--font-body); }

/* ─── Transliteration showcase ─────────────────────────── */
.translit-card {
  max-width: 880px; margin: 0 auto;
  background: rgba(255,253,248,0.04); border: 1px solid rgba(255,253,248,0.1);
  border-radius: 20px; padding: 36px 40px; text-align: center;
}
.translit-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-on-dark-3); margin-bottom: 26px;
}
.translit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 28px; }
.tl-text {
  font-family: 'Noto Serif Devanagari', 'Noto Sans Malayalam', var(--font-display), serif;
  font-size: 19px; line-height: 1.5; color: var(--brass-200);
}
.tl-lang { font-size: 10px; color: var(--fg-on-dark-3); margin-top: 6px; letter-spacing: 0.08em; text-transform: uppercase; }
.translit-meaning {
  font-family: var(--font-display); font-size: 21px; font-style: italic; font-weight: 400;
  color: var(--parchment-0); margin-top: 30px;
}
.translit-explain {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin-top: 28px;
  padding-top: 24px; border-top: 1px solid rgba(255,253,248,0.08);
  font-size: 13px; line-height: 1.55; color: var(--fg-on-dark-2); text-align: left;
}
.translit-explain strong { color: var(--parchment-0); font-weight: 600; }

/* ─── FAQ ──────────────────────────────────────────────── */
.faq-search { max-width: 560px; margin: 0 auto 36px; position: relative; }
.faq-search input {
  width: 100%; padding: 14px 18px 14px 46px; border-radius: var(--r-pill);
  border: 1px solid var(--bd-default); background: var(--surface-raised);
  font-family: var(--font-body); font-size: 15px; color: var(--fg-1); outline: none;
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.faq-search input:focus { box-shadow: var(--shadow-focus); }
.faq-search svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--fg-3); }
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-cat {
  background: var(--surface-raised); border: 1px solid var(--bd-subtle);
  border-radius: 14px; margin-bottom: 12px; overflow: hidden;
}
.faq-cat > summary {
  cursor: pointer; list-style: none; padding: 18px 22px; display: flex;
  align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-display); font-size: 19px; font-weight: 500;
}
.faq-cat > summary::-webkit-details-marker { display: none; }
.faq-cat > summary .count { font-family: var(--font-body); font-size: 12px; color: var(--fg-3); font-weight: 500; }
.faq-q { border-top: 1px solid var(--bd-subtle); }
.faq-q > summary {
  cursor: pointer; list-style: none; padding: 14px 22px; font-size: 15px;
  font-weight: 600; color: var(--fg-1);
}
.faq-q > summary::-webkit-details-marker { display: none; }
.faq-q > summary:hover { color: var(--primary); }
.faq-q ol { margin: 0 0 16px; padding: 0 22px 0 42px; }
.faq-q li { font-size: 14px; color: var(--fg-2); line-height: 1.55; margin-bottom: 6px; }
.faq-q .platform-note { padding: 0 22px 14px; margin: 0; }
.faq-empty { text-align: center; color: var(--fg-3); font-size: 15px; padding: 24px 0; display: none; }
.faq-shots { display: flex; gap: 10px; padding: 2px 22px 14px; flex-wrap: wrap; }
.faq-shots img {
  height: 180px; width: auto; border-radius: 10px; border: 1px solid var(--bd-default);
  cursor: zoom-in; box-shadow: var(--shadow-sm); background: var(--surface-raised);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.faq-shots img:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ─── Lightbox ─────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(42,31,24,0.62);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-height: 86vh; max-width: 92vw; border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45); background: var(--surface-raised);
}

/* ─── CTA ──────────────────────────────────────────────── */
.cta-wrap { padding: 0 32px; max-width: 1200px; margin: 0 auto; }
.cta {
  background: linear-gradient(135deg, var(--kumkum-500), var(--kumkum-700));
  color: var(--parchment-0); padding: 72px 48px; text-align: center;
  border-radius: 24px; margin: 80px auto; position: relative; overflow: hidden;
}
.cta h2 { color: var(--parchment-0); font-size: 48px; }
.cta::before {
  content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px;
  border-radius: 999px; border: 1px solid rgba(255,253,248,0.08);
}
.cta::after {
  content: ''; position: absolute; top: -50px; right: -50px; width: 300px; height: 300px;
  border-radius: 999px; border: 1px solid rgba(255,253,248,0.06);
}
.cta .inner { position: relative; z-index: 1; }
.cta .btn-primary { background: var(--parchment-0); color: var(--kumkum-500); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.cta .btn-primary:hover { background: var(--parchment-0); filter: brightness(1.02); }
.cta .btn-secondary { color: var(--parchment-0); border-color: rgba(255,253,248,0.3); }
.cta .btn-secondary:hover { background: rgba(255,253,248,0.08); border-color: rgba(255,253,248,0.5); }
.cta-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 860px; margin: 34px auto 0; text-align: left;
}
.cta-step {
  background: rgba(255,253,248,0.1); border: 1px solid rgba(255,253,248,0.18);
  border-radius: 16px; padding: 20px 22px;
}
.cta-step .n {
  width: 30px; height: 30px; border-radius: 999px; background: var(--parchment-0);
  color: var(--kumkum-700); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.cta-step h3 { font-size: 17px; color: var(--parchment-0); margin: 0 0 6px; font-family: var(--font-body); font-weight: 700; }
.cta-step p { font-size: 13.5px; line-height: 1.55; color: rgba(255,253,248,0.82); margin: 0; }
.cta-step-btn {
  display: inline-block; margin-top: 12px; padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--parchment-0); color: var(--kumkum-700); font-weight: 600; font-size: 13px;
  text-decoration: none;
}
.cta-step-btn:hover { background: #fff; }

.platforms { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.store-note { margin-top: 20px; font-size: 12px; color: rgba(255,253,248,0.6); }

/* ─── Footer ───────────────────────────────────────────── */
footer { padding: 60px 0 40px; border-top: 1px solid var(--bd-subtle); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 {
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 14px;
}
.footer-col a { display: block; text-decoration: none; font-size: 14px; margin-bottom: 8px; color: var(--fg-1); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; justify-content: space-between; margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--bd-subtle); font-size: 12px; color: var(--fg-3); flex-wrap: wrap; gap: 8px;
}

/* ─── Responsive ───────────────────────────────────────── */
/* ─── About ────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 10px; }
.about-card {
  background: var(--surface-raised); border: 1px solid var(--bd-subtle);
  border-radius: 20px; padding: 30px 32px;
}
.about-card h3 { margin-bottom: 14px; }
.about-card p { color: var(--fg-2); line-height: 1.65; font-size: 15px; margin: 0 0 12px; }
.about-tagline {
  margin-top: 18px; font-family: var(--font-display); font-style: italic;
  font-size: 19px; color: var(--primary); line-height: 1.5;
}
.about-areas { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.about-areas span {
  padding: 7px 13px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600;
  background: rgba(216, 111, 56, 0.08); border: 1px solid rgba(216, 111, 56, 0.25);
  color: var(--fg-1);
}
.about-follow {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px 22px; margin-top: 36px; font-size: 14px;
}
.about-follow span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.about-follow a { color: var(--primary); font-weight: 600; text-decoration: none; }
.about-follow a:hover { text-decoration: underline; }

/* ─── Yatra map ────────────────────────────────────────── */
.yatra-switch { display: flex; gap: 10px; justify-content: center; margin: 0 0 30px; }
.yatra-pill {
  padding: 9px 22px; border-radius: var(--r-pill); font-family: var(--font-body);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--bd-default); background: var(--surface-raised); color: var(--fg-2);
}
.yatra-pill.active { background: var(--primary); border-color: var(--primary); color: #fffdf8; }
.yatra-meter-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 8px; }
.yatra-meter { font-family: var(--font-display); font-size: 18px; color: var(--fg-1); }
.yatra-reset {
  border: none; background: none; cursor: pointer; font-family: var(--font-body);
  font-size: 12.5px; color: var(--fg-3); text-decoration: underline; text-underline-offset: 3px;
}
.yatra-reset:hover { color: var(--primary); }
.yatra-blessing {
  text-align: center; margin: 10px auto 6px; max-width: 640px;
  font-family: var(--font-display); font-style: italic; font-size: 19px; line-height: 1.5;
  color: var(--primary);
}
.yatra-layout { display: grid; grid-template-columns: 2.1fr 1fr; gap: 32px; align-items: stretch; margin-top: 10px; }
#inside > .container { max-width: 1340px; }
.yatra-map-wrap {
  background: var(--surface-raised) url('../assets/texture-parchment.svg');
  border: 1px solid var(--bd-subtle); border-radius: 20px; padding: 10px;
  display: flex; align-items: center;
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(43,26,16,0.08));
}
.yatra-svg { width: 100%; height: auto; display: block; }
.yatra-paths path { fill: none; stroke: rgba(122, 84, 55, 0.45); stroke-width: 2; stroke-dasharray: 7 6; stroke-linecap: round; }
.yatra-node { cursor: pointer; outline: none; }
.yatra-stone { fill: rgba(255, 253, 248, 0.85); stroke: rgba(122, 84, 55, 0.55); stroke-width: 1.6; transition: fill 0.25s; }
.yatra-node:hover .yatra-stone, .yatra-node:focus .yatra-stone { fill: #fffdf8; stroke: var(--primary); }
.yatra-node.current .yatra-stone { stroke: var(--primary); stroke-width: 2.6; }
.yatra-node.heart .yatra-stone { stroke-width: 2.2; fill: #fffdf8; }
.yatra-node.heart .yatra-label { font-size: 15.5px; font-weight: 700; }
.yatra-label { font-family: var(--font-body); font-size: 15px; font-weight: 600; fill: var(--fg-1); }
.diya-bowl { fill: #a0522d; }
.diya-flame { fill: rgba(122, 84, 55, 0.25); transition: fill 0.3s; }
.yatra-node.lit .diya-flame { fill: url(#yatra-flame); animation: yatra-flicker 2.4s ease-in-out infinite; }
@keyframes yatra-flicker {
  0%, 100% { opacity: 1; } 42% { opacity: 0.82; } 58% { opacity: 0.95; } 74% { opacity: 0.85; }
}
.yatra-card {
  background: var(--surface-raised); border: 1px solid var(--bd-subtle); border-radius: 20px;
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.yatra-card-empty { display: flex; align-items: center; justify-content: center; min-height: 260px; }
.yatra-card-head { display: flex; align-items: center; gap: 10px; }
.yatra-card-head h3 { margin: 0; font-size: 27px; }
.yatra-card-desc { margin: 0; color: var(--fg-2); line-height: 1.65; font-size: 15.5px; }
.yatra-card-shot { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.yatra-card-shot .frame { width: 235px; }
.yatra-shot-nav { display: flex; align-items: center; gap: 12px; }
.yatra-shot-nav button {
  width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--bd-default);
  background: var(--surface-raised); cursor: pointer; font-size: 16px; color: var(--fg-1);
}
.ys-count { font-size: 12px; color: var(--fg-3); }
.yatra-deeper { font-weight: 600; font-size: 14px; color: var(--primary); text-decoration: none; }
.yatra-deeper:hover { text-decoration: underline; }
.yatra-roads-title { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin-top: 4px; }
.yatra-roads { display: flex; flex-wrap: wrap; gap: 8px; }
.yatra-road {
  padding: 8px 14px; border-radius: var(--r-pill); font-family: var(--font-body); font-size: 13.5px;
  font-weight: 600; cursor: pointer; border: 1px solid var(--bd-default);
  background: var(--surface-raised); color: var(--fg-1);
}
.yatra-road:hover { border-color: var(--primary); color: var(--primary); }
.yatra-road.lit { border-color: rgba(216, 111, 56, 0.5); }
.yatra-hint { text-align: center; color: var(--fg-3); font-size: 13px; margin-top: 18px; }

/* Hamburger (hidden on desktop) */
.nav-burger { display: none; border: none; background: none; cursor: pointer; color: var(--fg-1); padding: 6px; }

@media (max-width: 1360px) {
  .nav-search { display: none; }
}

@media (max-width: 960px) {
  .dd-flow { grid-template-columns: 1fr; gap: 28px; }
  .dd-flow.flip .dd-media { order: 0; }
  .dd-media { position: static; }
  .hero-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .detail-row { grid-template-columns: 1fr; gap: 32px; }
  .detail-row.flip .detail-media { order: 0; }
  .amma-grid { grid-template-columns: 1fr; gap: 40px; }
  .wn-panel.active { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface-raised); border-bottom: 1px solid var(--bd-subtle);
    padding: 12px 20px 16px; box-shadow: 0 16px 32px rgba(43,26,16,0.12);
  }
  .nav-links.open a { padding: 10px 4px; border-bottom: none; font-size: 16px; }
  .nav-burger { display: block; }
  .nav { position: sticky; }
  .nav-inner { position: relative; }
  .yatra-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .yatra-map-wrap { display: none; }  /* phones walk the trail: card + roads */
  .nav-search { display: none; }
  .lang-menu { flex-direction: column; right: -60px; }
  .section-header .eyebrow { font-size: 16px; }
  .hero-copy .eyebrow { font-size: 15px; }
  h1.display, #hero-title { font-size: 40px; min-height: 0; }
  #hero-sub { min-height: 0; }
  h2, .cta h2 { font-size: 32px; }
  .translit-grid { grid-template-columns: 1fr; gap: 18px; }
  .translit-explain { grid-template-columns: 1fr; }
  .translit-card { padding: 28px 22px; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .slide-shots .frame { width: 180px; }
  .detail-media .frame { width: 180px; }
  .carousel-viewport { min-height: 470px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 12px 16px; }
  .nav-brand span { font-size: 19px; }
  .nav-actions .btn-primary, .nav-actions .btn-secondary { padding: 9px 14px; font-size: 13px; }
  .cta { padding: 56px 24px; }
  .platforms { flex-direction: column; align-items: center; }
  .cta-steps { grid-template-columns: 1fr; }
  .yatra-switch { flex-wrap: wrap; padding: 0 12px; }
  .yatra-pill { padding: 8px 16px; font-size: 13px; }
  .yatra-meter-row { flex-wrap: wrap; gap: 8px 14px; padding: 0 14px; }
  .yatra-meter { font-size: 16px; }
  .yatra-card { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-slide { transition: none; }
}
