/* The homes' own styles (SRS v3 V3.G0, FR-DES-7): the mockup's home view (mockup/src.html:965-1265), split out
   of site.css so that site.css holds only what two or more templates use. Only /, /hi/ and /mr/ link it,
   after site.css. */
/* ---------- Home: hero ---------- */
.hero { position: relative; overflow: clip; }
.hero__grid { display: grid; gap: 40px; padding-block: 44px 36px; align-items: center; }
.hero__copy { container-type: inline-size; max-width: 46rem; }
/* Two columns only where the copy column can hold the headline in four lines or fewer; below 1200 px (tablets in
   either orientation) the copy runs full width and the card sits under it. */
@media (min-width: 1200px) {
  .hero__grid { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 32px; padding-block: 80px 56px; }
  .hero__copy { max-width: none; }
}
.kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; color: var(--band-ink-2); font-weight: 500; }
.kicker .deva { font: 500 1.375rem/1.5 var(--font-deva); color: var(--gold); }
.hero h1 { font-size: var(--step-hero); font-size: min(var(--step-hero), 13.5cqi); line-height: 1.02; letter-spacing: -.015em; margin-block: 14px 24px; font-weight: 650; }
.hero h1 .l2 { display: block; color: var(--gold); font-weight: 450; }
/* site.css's Devanagari heading rule followed .hero h1 when both lived there; this keeps its result. */
:is(:lang(hi), :lang(mr)) .hero h1 { line-height: 1.28; letter-spacing: 0; }
.hero .lede { color: var(--band-ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 32px; }
.hero__price { margin-top: 16px; color: var(--band-ink-2); font-size: var(--step-small); }
.hero__price b { color: var(--band-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hero__stage { position: relative; display: grid; gap: 26px; justify-items: center; min-width: 0; }
.hero__cardwrap { position: relative; width: min(100%, 560px); }
.hero__yantra { position: absolute; left: 50%; top: 50%; width: 136%; translate: -50% -50%; opacity: .3; pointer-events: none; overflow: visible; }
/* Stacked, the full-size yantra reached up through the actions row (768 px pass); here it stays near the card. */
@media (max-width: 1199px) { .hero__stage { margin-top: 48px; } .hero__yantra { width: 92%; } }
@media (min-width: 900px) and (max-width: 1199px) {
  .hero__stage { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 32px; }
  .hero__stage .preview { width: 100%; }
}
.hero__yantra .ln { fill: none; stroke: var(--gold); stroke-width: .42; }
.hero__yantra .dot { fill: var(--gold); }
.hero .bcard { position: relative; width: 100%; }
.hero .preview { position: relative; z-index: 1; padding: 18px; border: 1px solid var(--rule); border-radius: 10px; background: var(--band); }
@media (prefers-reduced-motion: no-preference) {
  .hero__yantra .ln { stroke-dasharray: 1; animation: draw 1.7s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms + 200ms); }
  .hero .bcard__tilt { animation: rise .9s var(--ease) both .1s; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { translate: 0 18px; opacity: .2; } }

/* ---------- Home: collection ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0 4px; border-bottom: 1px solid var(--rule); margin-bottom: 26px; }
.tab { border: 0; background: none; min-height: 48px; padding: 0 12px; color: var(--ink-2); font-weight: 600; position: relative; display: inline-flex; gap: 8px; align-items: center; }
.tab .n { font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 500; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent-ink); }
.panel h3 { font-size: var(--step-3); margin-bottom: 18px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 31%); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.rail > .tile { scroll-snap-align: start; }
@media (max-width: 640px) { .rail { grid-auto-columns: 80%; } }
@supports selector(::scroll-marker) {
  .rail { scroll-marker-group: after; }
  .rail::scroll-marker-group { display: flex; gap: 10px; justify-content: center; padding-top: 10px; }
  .rail > .tile::scroll-marker { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rule-strong); }
  .rail > .tile::scroll-marker:target-current { background: var(--accent-ink); }
}
.collection__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }

/* ---------- Home: anatomy ---------- */
.anat { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .anat { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } }
.anat__fig { width: 100%; max-width: 520px; justify-self: center; view-timeline: --anat block; }
.anat__fig svg { width: 100%; height: auto; overflow: visible; }
.anat .ln { fill: none; stroke: var(--ink); stroke-width: .7; transition: opacity .35s, stroke .35s, stroke-width .35s; }
.anat .dot { fill: var(--ink); transition: fill .35s, opacity .35s; }
.anat[data-part] .layer { opacity: .24; }
.anat[data-part="bindu"] .layer--bindu, .anat[data-part="trikona"] .layer--trikona, .anat[data-part="vritta"] .layer--vritta,
.anat[data-part="dala"] .layer--dala, .anat[data-part="bhupura"] .layer--bhupura { opacity: 1; }
.anat[data-part="bindu"] .layer--bindu .ln, .anat[data-part="trikona"] .layer--trikona .ln, .anat[data-part="vritta"] .layer--vritta .ln,
.anat[data-part="dala"] .layer--dala .ln, .anat[data-part="bhupura"] .layer--bhupura .ln { stroke: var(--accent-ink); stroke-width: 1.15; }
.anat[data-part="bindu"] .layer--bindu .dot { fill: var(--accent-ink); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .anat .ln { stroke-dasharray: 1; animation: draw linear; animation-timeline: --anat; animation-range: entry 0% cover 40%; }
  }
}
.parts { display: grid; gap: 4px; margin-top: 22px; }
.part { display: grid; grid-template-columns: 5.2em 1fr; gap: 0 14px; align-items: baseline; text-align: left; width: 100%; padding: 12px 14px; border: 1px solid transparent; border-radius: 8px; background: transparent; }
.part:hover { background: color-mix(in oklab, var(--ink) 5%, transparent); }
.part[aria-pressed="true"] { border-color: var(--rule-strong); background: var(--raised); }
.part__deva { font: 500 1.25rem/1.5 var(--font-deva); color: var(--gold-ink); grid-row: span 2; }
.part__name { font-weight: 600; color: var(--ink); }
.part__def { grid-column: 2; color: var(--ink-2); font-size: var(--step-small); display: none; }
.part[aria-pressed="true"] .part__def { display: block; }

/* ---------- Home: why a card ---------- */
.why figure { margin: 0; }
.why img { width: 100%; height: auto; border-radius: 6px; }
.why figcaption { margin-top: 10px; }
.made { list-style: none; margin: 30px 0 0; padding: 0; counter-reset: made; }
.made li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 2px 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.made li::before { counter-increment: made; content: counter(made); font: 600 1.5rem/1.2 var(--font-display); color: var(--gold-ink); grid-row: span 2; }
.made b { font-weight: 600; }
.made span { grid-column: 2; color: var(--ink-2); }

/* ---------- Home: seven steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; position: relative; view-timeline: --steps block; }
.steps::before, .steps::after { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 2px; }
.steps::before { background: var(--rule); }
.steps::after { background: var(--gold); transform-origin: top; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::after { animation: thread linear; animation-timeline: --steps; animation-range: cover 0% cover 65%; }
  }
}
@keyframes thread { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 22px; padding: 16px 0; position: relative; }
.step__n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--band); border: 1px solid var(--rule-strong); color: var(--gold); font: 600 1.125rem/1 var(--font-display); position: relative; z-index: 1; }
.step h3 { font-size: 1.3rem; line-height: 1.3; padding-top: 8px; }
.step > p { grid-column: 2; color: var(--band-ink-2); max-width: 38em; }
.mala { grid-column: 2; }

/* ---------- Home: season, knowledge, newsletter ---------- */
.season { display: grid; gap: 28px; margin-top: 8px; }
@media (min-width: 900px) { .season { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
.guide { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 2px solid var(--ink); }
.guide h3 { font-size: var(--step-3); line-height: 1.25; }
.guide h3 a { color: var(--ink); text-decoration: none; }
.guide h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.guide p { color: var(--ink-2); }
.alm-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.alm { display: inline-flex; gap: 8px; align-items: baseline; padding: 6px 10px; border: 1px dashed var(--rule-strong); border-radius: var(--radius); font-size: var(--step-caption); color: var(--ink-3); }
.alm b { color: var(--ink); font-weight: 600; }
.daily { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); align-items: baseline; }
.daily .deva { font-family: var(--font-deva); }

/* ---------- Home: deity ribbon ---------- */
.ribbon { background: var(--band-2); border-block: 1px solid color-mix(in oklab, var(--gold) 20%, transparent); overflow: hidden; }
.ribbon__track { display: flex; width: max-content; padding-block: 10px; font: 500 1.25rem/1.5 var(--font-deva); color: color-mix(in oklab, var(--gold) 80%, var(--band-2)); white-space: nowrap; }
.ribbon__track span { display: inline-flex; align-items: center; gap: 22px; padding-inline: 11px; }
.ribbon__track svg { width: 14px; height: 14px; fill: currentColor; opacity: .6; }
@media (prefers-reduced-motion: no-preference) {
  .ribbon__track { animation: ribbon 110s linear infinite; }
  .ribbon:hover .ribbon__track { animation-play-state: paused; }
}
@keyframes ribbon { to { translate: -50% 0; } }

/* ---------- Home: how buying works ---------- */
.journey__head { max-width: 760px; }
.journey { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 30px; position: relative; view-timeline: --journey block; }
@media (min-width: 700px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; } }
@media (min-width: 1100px) {
  .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* From the first icon's centre to the last one's: four columns, 40 px gaps, 56 px icons. */
  .journey::before, .journey::after { content: ""; position: absolute; top: 27px; left: 28px; right: calc(25% - 58px); height: 2px; }
  .journey::before { background: var(--rule); }
  .journey::after { background: var(--gold); transform-origin: left; }
}
.jstep { position: relative; display: grid; gap: 8px; align-content: start; }
.jstep__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ground); border: 1px solid var(--rule-strong); color: var(--gold); position: relative; z-index: 1; }
.jstep__icon svg { width: 26px; height: 26px; overflow: visible; }
.jstep__icon .ln { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.jstep__n { margin-top: 8px; color: var(--ink-3); font-size: var(--step-caption); font-weight: 600; font-variant-numeric: tabular-nums; }
.jstep h3 { font-size: var(--step-3); line-height: 1.25; }
.jstep p { color: var(--ink-2); max-width: 30em; }
.journey__cta { margin-top: 30px; }
@keyframes thread-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .journey::after { animation: thread-x linear both; animation-timeline: --journey; animation-range: entry 30% cover 55%; }
    .jstep__icon .ln { stroke-dasharray: 1; animation: draw linear both; animation-timeline: --journey; animation-range: entry 10% cover 40%; }
  }
}

/* ---------- Home: occasions ---------- */
.occ { display: grid; gap: 20px; min-width: 0; align-content: start; }
.occ__panel { display: grid; gap: 26px; align-items: center; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--rule); border-radius: 12px; background: var(--raised); }
@media (min-width: 700px) { .occ__panel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.occ__face { width: 100%; max-width: 360px; justify-self: center; container-type: inline-size; view-transition-name: occ-card; }
.occ__text { display: grid; gap: 10px; align-content: start; min-width: 0; view-transition-name: occ-text; }
.occ__text h3 { font-size: var(--step-3); line-height: 1.25; }
.occ__text p { color: var(--ink-2); }
.occ__also { font-size: var(--step-small); }
html.vt-local::view-transition-old(root), html.vt-local::view-transition-new(root) { animation: none; }

/* ---------- Home: a plate and a card ---------- */
.compare { margin-top: 30px; overflow-x: auto; }
.compare table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: var(--step-small); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-top: 1px solid var(--rule); }
.compare thead th { border-top: 0; padding-top: 0; color: var(--ink-3); font-size: var(--step-caption); font-weight: 600; }
.compare thead th:last-child { color: var(--gold-ink); }
.compare tbody th { width: 30%; color: var(--ink); font-weight: 600; }
.compare td { color: var(--ink-2); }
.compare td:last-child { color: var(--ink); }

/* ---------- Home: the next festival, today ---------- */
.count-band { display: grid; gap: 18px 28px; align-items: center; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--rule-strong); border-radius: 12px; margin-bottom: 34px; }
@media (min-width: 760px) { .count-band { grid-template-columns: minmax(0, 1fr) auto; } .count-band__act { grid-column: 1 / -1; } }
.count-band__name { font: 600 var(--step-3)/1.25 var(--font-display); }
.count-band__date { color: var(--ink-2); }
.count-band__act { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.today { margin-top: 28px; display: grid; gap: 14px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 10px; background: var(--raised); }
.today__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.today__head b { font: 600 1.125rem/1.3 var(--font-display); }
.today dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
@media (min-width: 600px) { .today dl { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.today dt { color: var(--ink-3); font-size: var(--step-caption); }
.today dd { margin: 0; font-weight: 600; }

/* ---------- Home: questions, readers' stories ---------- */
.proof { margin-top: 28px; padding: 16px 18px; border: 1px dashed var(--rule-strong); border-radius: 10px; color: var(--ink-3); font-size: var(--step-small); }
.proof b { display: block; margin-bottom: 4px; color: var(--ink-2); font-weight: 600; }
