/* =========================================
   EMI CALCULATOR
   Page-level styles for /tools/emi-calculator (tools/emi-calculator/index.html).
   Loads after: tailwind, site, launch, consumer-bar.
   Sections: Hero art · EMI guide · FAQ · Result-card links
   Add new styles for this page here, inside the matching section.
   ========================================= */

/* ---------- Hero art ---------- */
/* Infographic beside the hero copy: one illustration cut into a still scene (assets/emi-hero-scene.webp) and a parts sheet
   (assets/emi-hero-parts.webp) shown through clip-paths: six principal/interest bars, the % and ₹ bubbles and three dots.
   launch.js gates the reveal (.is-ready/.is-in): the scene rises in, the bars grow left to right, the bubbles pop in and bob,
   and the three calendar ticks ping in turn. The legend is live text. Reduced motion or no JS: everything is simply visible. */
.emi-hero__grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(28px,4vw,64px);align-items:center}
.emi-hero__copy{min-width:0}
.emi-hero__art{justify-self:end;width:100%;max-width:440px}
.emi-art__stage,.emi-art__float{position:relative}
.emi-art__scene{display:block;width:100%;height:auto}
.emi-art__part{position:absolute;inset:0}
.emi-art__part img{display:block;width:100%;height:100%}
.emi-art__bar--1{clip-path:inset(60.77% 85.69% 5.04% 4.39%)}
.emi-art__bar--2{clip-path:inset(60.77% 73.95% 5.04% 16.32%)}
.emi-art__bar--3{clip-path:inset(60.77% 61.93% 5.04% 28.24%)}
.emi-art__bar--4{clip-path:inset(60.77% 49.90% 5.04% 40.27%)}
.emi-art__bar--5{clip-path:inset(60.77% 37.79% 5.04% 52.39%)}
.emi-art__bar--6{clip-path:inset(60.77% 25.67% 5.04% 64.50%)}
.emi-art__bar{transform-origin:50% 94.86%}
.emi-art__pct{clip-path:circle(8.84% at 12.69% 25.59%);transform-origin:12.69% 25.59%}
.emi-art__rs{clip-path:circle(8.45% at 87.88% 78.01%);transform-origin:87.88% 78.01%}
.emi-art__dot--1{clip-path:circle(1.75% at 22.52% 17.89%)}
.emi-art__dot--2{clip-path:circle(1.75% at 24.71% 21.74%)}
.emi-art__dot--3{clip-path:circle(1.65% at 95.42% 85.57%)}
.emi-art__ping{position:absolute;width:7.6%;aspect-ratio:1;margin:-3.8% 0 0 -3.8%;border:2px solid var(--teal);border-radius:28%;opacity:0;transform:rotate(5deg);pointer-events:none}
.emi-art__ping--1{left:47.33%;top:26.28%}
.emi-art__ping--2{left:67.75%;top:36.46%}
.emi-art__ping--3{left:81.39%;top:46.05%}
.emi-art__legend{display:flex;justify-content:center;gap:24px;margin:12px 0 0;font-size:14px;font-weight:600;color:var(--navy)}
.emi-art__key{display:inline-flex;align-items:center;gap:8px}
.emi-art__key::before{content:"";width:12px;height:12px;border-radius:50%;background:var(--teal)}
.emi-art__key--interest::before{background:var(--navy)}
.emi-art.is-ready:not(.is-in) .emi-art__stage{opacity:0}
.emi-art.is-in .emi-art__stage{animation:emi-art-in .9s cubic-bezier(.16,1,.3,1) both}
.emi-art.is-in .emi-art__float{animation:emi-art-float 7s ease-in-out 1.8s infinite}
.emi-art.is-in .emi-art__bar{animation:emi-bar-grow .8s cubic-bezier(.2,.9,.3,1.12) both}
.emi-art.is-in .emi-art__bar--1{animation-delay:.35s}
.emi-art.is-in .emi-art__bar--2{animation-delay:.45s}
.emi-art.is-in .emi-art__bar--3{animation-delay:.55s}
.emi-art.is-in .emi-art__bar--4{animation-delay:.65s}
.emi-art.is-in .emi-art__bar--5{animation-delay:.75s}
.emi-art.is-in .emi-art__bar--6{animation-delay:.85s}
.emi-art.is-in .emi-art__pct{animation:emi-pop .7s cubic-bezier(.16,1,.3,1.3) .9s both,emi-bob 4.6s ease-in-out 1.6s infinite}
.emi-art.is-in .emi-art__rs{animation:emi-pop .7s cubic-bezier(.16,1,.3,1.3) 1.05s both,emi-bob 5.4s ease-in-out 1.75s infinite}
.emi-art.is-in .emi-art__dot{animation:emi-twinkle 2.8s ease-in-out 1.2s infinite}
.emi-art.is-in .emi-art__dot--2{animation-delay:1.9s}
.emi-art.is-in .emi-art__dot--3{animation-delay:2.4s}
.emi-art.is-in .emi-art__ping{animation:emi-ping 4.5s ease-out 1.6s infinite}
.emi-art.is-in .emi-art__ping--2{animation-delay:2.1s}
.emi-art.is-in .emi-art__ping--3{animation-delay:2.6s}
@keyframes emi-art-in{from{opacity:0;transform:translateY(24px) scale(.96)}}
@keyframes emi-art-float{50%{transform:translateY(-8px)}}
@keyframes emi-bar-grow{from{transform:scaleY(0)}}
@keyframes emi-pop{from{opacity:0;transform:scale(.4)}}
@keyframes emi-bob{50%{transform:translateY(-5px)}}
@keyframes emi-twinkle{50%{opacity:.25}}
@keyframes emi-ping{0%{opacity:.9;transform:rotate(5deg) scale(1)}30%,100%{opacity:0;transform:rotate(5deg) scale(1.8)}}
@media(prefers-reduced-motion:reduce){
  .emi-art *{animation:none!important}
  .emi-art.is-ready:not(.is-in) .emi-art__stage{opacity:1}
}
@media(max-width:899px){
  .emi-hero__grid{grid-template-columns:minmax(0,1fr);gap:28px}
  .emi-hero__art{justify-self:center;max-width:400px}
}
@media(max-width:479px){.emi-hero__art{max-width:min(320px,100%)}}

/* ---------- EMI guide ---------- */
/* Formula, worked example, 16% EMI table and next step, between the calculator and the FAQ (crawlable plain text). */
.emi-guide{padding-block:clamp(40px,5vw,72px) 0}
.emi-guide>.shell{max-width:1120px}
.emi-guide__body{max-width:820px}
.emi-guide__body h2{margin-top:52px}
.emi-guide__body h2:first-child{margin-top:0}
.emi-guide__body h3{margin-top:28px}
.emi-guide__formula{padding:18px 22px;border:1px solid var(--line);border-radius:12px;background:var(--mist);font-family:'IBM Plex Mono',monospace;font-size:16px;overflow-x:auto}
.emi-guide__body caption{caption-side:bottom;padding-top:12px;text-align:left;font-size:14px;line-height:1.55;color:var(--muted)}
.emi-guide__next{margin-top:44px;padding:26px 28px;border:1px solid var(--line);border-radius:15px;background:#fff}
.emi-guide__next p{margin:0}
.emi-guide .emi-guide__actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 26px;margin-top:18px}
@media(max-width:639px){
  .emi-guide__next{padding:22px 18px}
  .emi-guide .emi-guide__actions{flex-direction:column;align-items:stretch;text-align:center}
}

/* ---------- FAQ ---------- */
/* /tools/emi-calculator FAQ: heading beside the shared .faq-list accordion, aligned to the calculator's 1120px width.
   Mirrors the layout used for the FAQ on /personal-loan/rates-and-charges. */
.emi-faq{padding-block:clamp(48px,6vw,84px) clamp(56px,7vw,94px);scroll-margin-top:108px}
.emi-faq .emi-faq__layout{max-width:1120px;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr);gap:80px;align-items:start}
.emi-faq .faq-list{min-width:0}
.emi-faq .faq-answer p{margin:0}
@media(max-width:1023px){
  .emi-faq .emi-faq__layout{grid-template-columns:minmax(0,1fr);gap:28px}
}

/* ---------- Result-card links ---------- */
/* The text links inside the result cards ("Check what you can afford", "Check eligibility") inherited plain body text.
   Give them the same green underlined style as links elsewhere on the site. */
.result-card p a:not(.button){color:var(--forest);font-weight:600;text-decoration:none;text-underline-offset:3px}
.result-card p a:not(.button):hover{color:var(--navy)}
