/* ============================================================
   Home scenes — pitch, live demo, plans — shared by the home page
   and the first-visit intro on /strategy-lab. Everything is scoped
   under .hm (the scenes' <main>) so it cannot touch the Lab.
   Markup lives in index.html; sync-intro.py copies it to the Lab.
   ============================================================ */
  /* ============================================================
     Home — three pinned scenes that slide over one another:
     pitch -> live demo -> plans. Layout and type come from the
     site tokens (styles.css); only the scene mechanics live here.
     ============================================================ */
/* the same header as every page; it only has to sit above the scenes */
body.home header.site{position:relative;z-index:6}
  body.home footer.site{position:relative;z-index:4;margin-top:0}

  /* figure card, shared by every scene: a flat surface with a hairline */
.hm .chip{position:absolute;display:flex;flex-direction:column;gap:6px;min-width:176px;padding:13px 15px 14px;
    border-radius:var(--radius-sub);background:var(--card);
    border:1px solid var(--rule);
    box-shadow:var(--shadow-pop);text-align:left;will-change:transform}
  .hm .chip-l{font-size:.78rem;font-weight:500;color:var(--muted);line-height:1.2}
  .hm .chip-v{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:1.55rem;font-weight:500;
    letter-spacing:-.02em;line-height:1.1;color:var(--navy);font-family:var(--font-num);font-variant-numeric:tabular-nums}
  .hm .chip-ic{flex:0 0 auto;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;
    background:color-mix(in srgb,var(--muted) 75%,transparent);color:var(--card)}
  .hm .chip-ic.up{background:var(--c-accent)}
  .hm .chip-ic svg{width:11px;height:11px}
  .hm .chip{opacity:0;scale:.94;transition:opacity .6s ease,scale .6s cubic-bezier(.2,.7,.3,1)}
  .hm .chip.is-in{opacity:1;scale:1}

  /* ---------------- scene 1: the pitch ---------------- */
.hm .s-hero{position:sticky;top:0;z-index:1;height:calc(100vh - var(--hdr,70px));height:calc(100svh - var(--hdr,70px));overflow:hidden;
  padding:0;box-sizing:border-box}   /* not the site-wide section padding: the hero starts right under the header */
  /* The line, the search box, the ticker and the contest as one group, with
     the box at about the middle of the first screen. */
  .hm .s-hero-in{position:relative;height:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;
    max-width:1240px;margin:0 auto;padding:24px clamp(20px,4vw,48px) clamp(16px,3vh,40px);
    transform-origin:50% 20%;will-change:transform,opacity}
  .hm .h-over{display:inline-flex;align-items:center;gap:9px;font-size:.72rem;font-weight:600;letter-spacing:.08em;
    text-transform:uppercase;color:var(--muted);border:1px solid var(--rule);border-radius:var(--radius-pill);padding:6px 14px}
  .hm .h-over i{width:6px;height:6px;border-radius:50%;background:var(--c-accent)}
  .hm .h-copy{position:relative;z-index:3;display:flex;flex-direction:column;align-items:center;text-align:center;width:min(640px,100%)}
  .hm .h-title{font-size:clamp(2.4rem,min(5vw,8vh),4.4rem);line-height:1.08;letter-spacing:-.02em;font-weight:700;
    max-width:none;margin:0 0 clamp(22px,4vh,40px);text-wrap:balance}
  .hm .h-title em{display:block;font-style:normal;color:var(--gold)}
  /* wide screens: two lines, "Find the best strategy" / "for your SIP" */
  @media (min-width:861px){ .hm .h-title{width:max-content;max-width:calc(100vw - 48px)} }

  /* the search: one box over every asset class */
  .hm .h-find{position:relative;z-index:4;width:100%;margin:0}
  .hm .h-find-box{display:flex;align-items:center;gap:10px;padding:7px 7px 7px 20px;border-radius:var(--r-lg);
    background:var(--card);border:1px solid var(--c-border-strong);
    transition:border-color .2s ease,box-shadow .2s ease}
  .hm .h-find-box{animation:h-find-glow 3s ease-in-out 1.2s infinite}
  .hm .h-find-box:focus-within{animation:none;border-color:var(--c-info);box-shadow:var(--focus-ring)}
  .hm .h-find-ic{flex:none;color:var(--gold)}
  .hm .h-find-in{flex:1;min-width:0;height:48px;border:0;outline:0;background:transparent;color:var(--ink);font-size:1.06rem;font-weight:500}
  .hm .h-find-in::placeholder{color:var(--muted);font-weight:400}
  .hm .h-find-in::-webkit-search-cancel-button{-webkit-appearance:none}
  .hm .h-find-go{flex:none;padding:13px 24px;font-size:1rem;white-space:nowrap}
  /* matches float over everything under the box */
  .hm .h-find-list{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 8px);max-height:min(430px,52vh);max-height:min(430px,52svh);overflow:auto;
    padding:6px;border-radius:var(--radius-card);background:var(--card);border:1px solid var(--rule);text-align:left;
    box-shadow:var(--shadow-pop)}
  .hm .h-find-list[hidden]{display:none}
  .hm .h-find-sep{height:1px;margin:5px 10px;border:0;background:var(--rule)}
  .hm .h-find-row{display:flex;align-items:center;gap:12px;width:100%;padding:9px 10px;border:0;border-radius:var(--r-md);background:none;
    color:var(--ink);text-align:left;cursor:pointer;font:inherit}
  .hm .h-find-row.is-cur{background:var(--c-surface-2)}
  .hm .h-find-tx{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
  .hm .h-find-tx b{font-size:.93rem;font-weight:600;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .hm .h-find-tx small{font-size:.74rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  /* a ticker pill chosen: its class tag sits in the box, and Find the best
     nudges and glows as the next step */
  .hm .h-find-sel{width:auto;padding:4px 9px;flex:none}
  .hm .h-find:not(.is-picked) .h-find-sel{display:none}
  .hm .h-find.is-picked .h-find-box{animation:none;border-color:var(--gold)}
  .hm .h-find-go{position:relative}
  .hm .h-find-go::after{content:"\2192";display:inline-block;width:0;margin-left:0;opacity:0;overflow:hidden;vertical-align:bottom;
    transition:width .25s ease,margin .25s ease,opacity .25s ease}
  .hm .h-find-go.is-ready::after{width:1em;margin-left:6px;opacity:1}
  .hm .h-find-go.is-ready{animation:h-go-nudge 1.5s cubic-bezier(.3,.7,.3,1) 3,h-go-ring 1.5s ease-out infinite}
  .hm .h-find-none{margin:0;padding:14px 12px;font-size:.88rem;color:var(--muted);max-width:none}
  /* each class keeps one colour, in the list and on the picks */
  .hm .h-find-tag{--c:var(--gold);flex:none;width:76px;box-sizing:border-box;text-align:center;font-style:normal;font-size:.6rem;font-weight:700;
    letter-spacing:.06em;text-transform:uppercase;padding:4px 6px;border-radius:var(--radius-chip);color:var(--c);
    background:color-mix(in srgb,var(--c) 13%,transparent);border:1px solid color-mix(in srgb,var(--c) 38%,transparent)}
  .hm .is-index,.hm .is-gidx{--c:var(--gold)}
  .hm .is-mf{--c:var(--green)}
  .hm .is-stk{--c:var(--red)}
  .hm .is-us,.hm .is-etf{--c:var(--c-cat-1)}
  .hm .is-cmd{--c:var(--c-cat-2)}
  .hm .is-crypto{--c:var(--c-cat-3)}
  /* Two options side by side under the ticker, one card component (.h-card):
     the month's contest (a month of premium for taking part) and the ₹499
     offer. Thin gold edge, gold label, one big figure with a small unit, a
     gold status line with a live dot, a pill button: filled for the offer,
     outlined for the contest. Stacked under 1000px. */
  .hm .h-cta{display:flex;justify-content:center;align-items:stretch;gap:14px;width:100%;margin-top:clamp(22px,4vh,34px)}
  .hm .h-card{flex:0 1 440px;min-width:0;display:flex;align-items:center;gap:20px;box-sizing:border-box;padding:16px 16px 16px 22px;
    border-radius:var(--radius-card);border:1px solid var(--rule);background:var(--panel);
    text-align:left;text-decoration:none;color:var(--navy);transition:border-color .2s ease;
    animation:h-card-in .7s cubic-bezier(.2,.7,.3,1) both}
  .hm .h-card:hover{border-color:var(--c-border-strong)}
  .hm .h-card[hidden]{display:none}
  .hm .h-contest[hidden] + .h-offer{flex-basis:560px}
  @keyframes h-card-in{from{opacity:0;transform:translateY(10px)}}
  .hm .h-card-tx{flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);row-gap:6px}
  .hm .h-card-k{font-size:.72rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--gold)}
  .hm .h-card-p{margin:0;font-family:var(--font-num);font-size:1.9rem;font-weight:600;letter-spacing:-.02em;line-height:1;
    color:var(--navy);font-variant-numeric:tabular-nums;white-space:nowrap}
  .hm .h-card-p small{font-family:var(--font-sans);font-size:.82rem;font-weight:500;letter-spacing:0;color:var(--muted)}
  .hm .h-card-p s{font-size:.5em;font-weight:500;color:var(--muted);margin-right:7px;vertical-align:.35em}
  .hm .h-card-s{margin:0;font-size:.82rem;font-weight:600;color:var(--gold)}
  .hm .h-card-s:empty{display:none}
  .hm .h-card-s::before{content:"";display:inline-block;width:6px;height:6px;margin-right:8px;border-radius:50%;
    vertical-align:.12em;background:var(--c-accent);animation:hm-pulse 2s ease-out infinite}
  .hm .h-card-go{flex:none;padding:12px 22px;white-space:nowrap}
  .hm .h-card-go.is-line{background:var(--card);color:var(--navy);border-color:var(--c-border-strong);transition:background .2s ease,color .2s ease}
  .hm .h-contest:hover .h-card-go.is-line,.hm .h-contest:focus-visible .h-card-go.is-line{background:var(--c-accent);border-color:var(--c-accent);color:var(--c-on-accent)}
  /* the arrow Find the best uses, on hover */
  .hm .h-card-go::after{content:"\2192";display:inline-block;width:0;margin-left:0;opacity:0;overflow:hidden;vertical-align:bottom;
    transition:width .25s ease,margin .25s ease,opacity .25s ease}
  .hm .h-offer .h-card-go:hover::after,.hm .h-offer .h-card-go:focus-visible::after,
  .hm .h-contest:hover .h-card-go::after,.hm .h-contest:focus-visible .h-card-go::after{width:1em;margin-left:6px;opacity:1}
  @media (prefers-reduced-motion:reduce){
    .hm .h-card,.hm .h-card-s::before{animation:none}
    .hm .h-card,.hm .h-card-go::after,.hm .h-card-go.is-line{transition:none}
  }
  @media (max-width:999px){
    .hm .h-cta{flex-direction:column;align-items:center;gap:10px}
    .hm .h-card,.hm .h-contest[hidden] + .h-offer{flex:none;width:min(560px,100%)}
  }
  /* Phones: each offer collapses to a single strip, roughly a quarter of the
     height it took stacked. The search box is what this page is for, and two
     full cards under it pushed it up the screen; the offers still read
     "what it is / what it costs / the way in", just on one line. */
  @media (max-width:560px){
    .hm .h-cta{gap:6px;margin-top:14px}
    .hm .h-card{align-items:center;gap:10px;padding:7px 8px 7px 12px;border-radius:var(--radius-sub)}
    .hm .h-card-tx{display:flex;flex-direction:row;align-items:baseline;gap:8px;row-gap:0;min-width:0}
    .hm .h-card-k{flex:none;font-size:.58rem;letter-spacing:.05em}
    .hm .h-card-p{min-width:0;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .hm .h-card-p small{font-size:.68rem}
    .hm .h-card-p s{font-size:.62em;margin-right:4px;vertical-align:.2em}
    /* the countdown and the spots left: no room for them beside the price */
    .hm .h-card-s{display:none}
    .hm .h-card-go{padding:6px 11px;font-size:.74rem}
    /* the price is already on the strip, so the button need not repeat it */
    .hm .h-card-go .h-go-long{display:none}
  }
  /* Narrow phones: the label and the figure stop fitting on one line and the
     price is what gets clipped, so put the label above it. Two short lines
     beside the button, still a strip. */
  @media (max-width:380px){
    .hm .h-card{gap:8px;padding-left:10px}
    .hm .h-card-tx{flex-direction:column;align-items:flex-start;gap:0;row-gap:1px}
    .hm .h-card-p{font-size:.95rem}
    .hm .h-card-go{padding:6px 10px;font-size:.72rem}
  }
  /* the picks: a ticker moving one way at a constant speed (scenes.js
     doubles the track and sets --dur from its width); hover holds it */
  .hm .h-picks{width:min(860px,calc(100vw - 32px));margin:18px 0 0;overflow:hidden;
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent);
    mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent)}
  .hm .h-picks-in{display:flex;width:max-content;padding:2px 0}
  .hm .h-picks.is-moving .h-picks-in{animation:h-tick var(--dur,30s) linear infinite}
  .hm .h-picks.is-moving:hover .h-picks-in{animation-play-state:paused}
  @keyframes h-tick{to{transform:translateX(-50%)}}
  .hm .h-pick{display:inline-flex;align-items:center;gap:7px;flex:none;margin-right:8px;padding:6px 13px;
    border-radius:var(--radius-pill);border:1px solid var(--rule);background:color-mix(in srgb,var(--card) 60%,transparent);
    color:var(--navy);font:inherit;font-size:.84rem;font-weight:500;cursor:pointer;white-space:nowrap;
    transition:border-color .15s ease,background .15s ease,transform .15s ease}
  .hm .h-pick[hidden]{display:none}
  .hm .h-pick:hover{border-color:var(--c-border-strong);background:var(--c-surface-2)}
  .hm .h-pick:active{transform:scale(.97)}
  .hm .h-pick-m{font-size:.76rem;font-weight:700;font-variant-numeric:tabular-nums;opacity:0;transition:opacity .4s ease}
  .hm .h-pick-m:not(:empty){opacity:1}
  .hm .h-pick-m.is-up{color:var(--green)}
  .hm .h-pick-m.is-down{color:var(--red)}
  .hm .h-micro{font-size:.8rem;color:var(--muted)}
  .hm .ln{fill:none;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}
  .hm .ln-s{stroke:var(--gold);stroke-width:2.2}
  .hm .ln-p{stroke:var(--muted);stroke-width:1.6;opacity:.75}
  .hm .ln-i{stroke:var(--navy);stroke-width:1.4;opacity:.8}
  .hm .dot{position:absolute;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:var(--c-accent);
    box-shadow:0 0 0 0 color-mix(in srgb,var(--gold) 45%,transparent);opacity:0;transition:opacity .5s ease}
  .hm .dot.p{background:var(--muted)}
  .hm .dot.is-in{opacity:1;animation:hm-pulse 2.4s ease-out infinite}
  @keyframes hm-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--gold) 45%,transparent)}100%{box-shadow:0 0 0 14px transparent}}
  .hm .rise{opacity:0;transform:translateY(14px);animation:hm-rise .8s cubic-bezier(.2,.7,.3,1) forwards}
  .hm .rise.d1{animation-delay:.08s}.hm .rise.d2{animation-delay:.18s}.hm .rise.d3{animation-delay:.3s}
  @keyframes hm-rise{to{opacity:1;transform:none}}
  @keyframes h-go-nudge{0%,60%,100%{transform:scale(1)}15%{transform:scale(1.07)}32%{transform:scale(.97)}46%{transform:scale(1.02)}}
  @keyframes h-go-ring{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--c-accent) 60%,transparent)}100%{box-shadow:0 0 0 12px transparent}}
  @keyframes h-find-glow{
    0%,100%{border-color:var(--c-border-strong)}
    50%{border-color:var(--c-accent)}}

  /* ---------------- scene 2: the demo ---------------- */
.hm .s-demo{position:relative;z-index:2;height:420vh;height:420svh;background:var(--panel);
    border-radius:var(--r-xl) var(--r-xl) 0 0;border-top:1px solid var(--rule)}
  .hm .d-pin{position:sticky;top:0;height:100vh;height:100svh;display:flex;align-items:center;overflow:hidden}
  .hm .d-grid{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:clamp(32px,6vw,88px);align-items:center;width:100%}
  .hm .d-kick{font-size:.72rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);margin-bottom:18px}
  .hm .d-steps ol{list-style:none;margin:0;padding:0}
  .hm .d-step{display:grid;grid-template-columns:48px minmax(0,1fr);padding:16px 0;opacity:.3;transition:opacity .4s ease}
  .hm .d-step.is-on{opacity:1}
  .hm .d-num{font-size:.75rem;font-weight:600;letter-spacing:.08em;color:var(--gold);padding-top:.9em;font-variant-numeric:tabular-nums}
  .hm .d-num span{display:none}
  .hm .d-step h3{font-size:clamp(1.5rem,2.5vw,2.2rem);letter-spacing:-.02em;margin:0 0 4px;line-height:1.1}
  .hm .d-step p{margin:0;color:var(--muted);font-size:.98rem}
  .hm .d-prog{height:2px;background:var(--rule);border-radius:2px;margin:18px 0 28px;overflow:hidden}
  .hm .d-prog i{display:block;height:100%;width:0;background:var(--c-accent)}
  .hm .d-go{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
  .hm .d-stage{position:relative;transform-origin:50% 0}
  .hm .d-app{position:relative;background:var(--card);border:1px solid var(--rule);border-radius:var(--radius-dialog);
    padding:20px 22px 22px;display:flex;flex-direction:column;gap:18px}
  .hm .d-top{display:flex;justify-content:space-between;align-items:center;font-size:.8rem;color:var(--muted)}
  .hm .d-brand{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:var(--navy)}
  .hm .d-brand i{width:8px;height:8px;border-radius:50%;background:var(--c-accent)}
  .hm .d-lab{display:block;font-size:.76rem;font-weight:500;color:var(--muted);margin-bottom:7px}
  .hm .d-input{display:flex;align-items:center;gap:10px;min-height:44px;border:1px solid var(--rule);border-radius:var(--radius-field);
    padding:10px 14px;font-size:.95rem;color:var(--ink);background:var(--paper);transition:border-color .3s ease}
  .hm .d-input.is-done{border-color:var(--gold)}
  .hm .d-input svg{width:15px;height:15px;color:var(--muted);flex:0 0 auto}
  .hm .d-typed:empty::before{content:"Search any index, fund or stock";color:var(--muted);opacity:.7}
  .hm .d-caret{width:1.5px;height:1.15em;background:var(--c-accent);animation:hm-blink 1s steps(1) infinite;margin-left:-8px}
  .hm .d-input.is-done .d-caret{display:none}
  @keyframes hm-blink{50%{opacity:0}}
  .hm .d-ok{margin-left:auto;font-size:.72rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--gold);opacity:0;transition:opacity .3s ease}
  .hm .d-input.is-done .d-ok{opacity:1}
  .hm .d-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
  .hm .d-rule-h{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
  .hm .d-rule-h .d-lab{margin:0}
  .hm .d-val{font-weight:600;color:var(--navy);font-family:var(--font-num);font-variant-numeric:tabular-nums;font-size:.95rem}
  .hm .d-track{position:relative;height:4px;border-radius:var(--radius-pill);background:var(--rule);margin-top:14px}
  .hm .d-fill{position:absolute;left:0;top:0;bottom:0;border-radius:inherit;background:var(--navy)}
  .hm .d-knob{position:absolute;top:50%;width:18px;height:18px;border-radius:50%;background:var(--card);border:2px solid var(--navy);
    transform:translate(-50%,-50%)}
  .hm .d-chart{position:relative;height:190px}
  .hm .d-chart > svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
  .hm .band{fill:var(--gold);opacity:.13}
  .hm .d-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:.74rem;color:var(--muted);margin-top:-6px}
  .hm .d-legend i{display:inline-block;width:14px;height:2px;border-radius:2px;vertical-align:middle;margin-right:6px}
  .hm .d-legend .lb{height:8px;width:10px;opacity:.35;background:var(--c-accent)}
  .hm .d-verdict{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:var(--radius-field);font-size:.95rem;
    background:color-mix(in srgb,var(--green) 11%,transparent);color:var(--ink);opacity:0;transform:translateY(8px);
    transition:opacity .45s ease,transform .45s ease}
  .hm .d-verdict.is-in{opacity:1;transform:none}
  .hm .d-verdict b{color:var(--green);font-weight:700}
  .hm .d-verdict svg{width:18px;height:18px;color:var(--green);flex:0 0 auto}

  /* ---------------- scene 2b: inside the Lab ----------------
     Slides over the demo's held last screen (the plans used to), then the
     plans follow in the flow. Cards rise at their own speeds (data-depth). */
.hm .s-feat{position:relative;z-index:3;margin-top:-100vh;margin-top:-100svh;height:320vh;height:320svh;
    background:var(--paper);border-radius:var(--r-xl) var(--r-xl) 0 0;border-top:1px solid var(--rule);overflow:clip}
  /* the stage stays on screen while the section scrolls by; the ring turns
     with that scroll (scenes.js sets its rotation and each card's light) */
  .hm .f-stage{position:sticky;top:0;height:100vh;height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:clamp(18px,4vh,40px);padding:24px 16px;box-sizing:border-box;perspective:1400px;perspective-origin:50% 40%}
  /* cards 48deg apart on a wide ring, so the neighbours stay in view at the
     sides, angled and dimmed, while the front one faces you */
  .hm .f-ring{--w:min(420px,78vw);--r:calc(var(--w) * 1.3);position:relative;width:var(--w);height:min(400px,58vh);height:min(400px,58svh);
    transform-style:preserve-3d;transform:translateZ(calc(var(--r) * -1)) rotateY(var(--turn,0deg));will-change:transform}
  .hm .f-ring>.f-card{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;
    transform:rotateY(var(--at)) translateZ(var(--r));box-shadow:var(--shadow-pop)}
  .hm .f-ring>.f-card:nth-child(1){--at:0deg}
  .hm .f-ring>.f-card:nth-child(2){--at:48deg}
  .hm .f-ring>.f-card:nth-child(3){--at:96deg}
  .hm .f-ring>.f-card.is-front{border-color:var(--c-border-strong)}
  .hm .f-head{text-align:center;max-width:720px;margin:0 auto}
  .hm .f-head h2{font-size:clamp(2.1rem,4.6vw,3.6rem);letter-spacing:-.03em;line-height:1.05;margin:14px 0 0;text-wrap:balance}
  .hm .f-card{position:relative;display:flex;flex-direction:column;gap:12px;min-width:0;padding:20px 22px;border-radius:var(--radius-dialog);
    background:var(--card);border:1px solid var(--rule);color:var(--ink);text-decoration:none;box-sizing:border-box;overflow:hidden;
    transition:border-color .3s ease}
  .hm a.f-card:hover{border-color:var(--c-border-strong)}
  .hm .f-kick{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0;max-width:none;font-size:.72rem;font-weight:700;
    letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
  .hm .f-kick span{font-weight:500;letter-spacing:0;text-transform:none;color:var(--muted)}
  .hm .f-note{display:flex;gap:11px;align-items:center;padding:12px;border-radius:var(--radius-sub);background:var(--panel);border:1px solid var(--rule)}
  .hm .f-note-ic{flex:none;width:36px;height:36px;border-radius:9px;display:block;box-shadow:0 0 0 1px var(--rule)}
  .hm .f-note>div{min-width:0;flex:1}
  .hm .f-note-top{display:flex;justify-content:space-between;gap:8px;margin:0 0 4px;max-width:none;font-size:.72rem;color:var(--muted)}
  .hm .f-note-top b{color:var(--navy);font-weight:700}
  .hm .f-note-msg{display:flex;align-items:center;gap:8px;margin:0;max-width:none;font-size:.9rem;font-weight:600;color:var(--navy)}
  .hm .f-signal{justify-content:center;gap:20px}
  .hm .f-signal .f-kick{position:absolute;top:20px;left:22px}
  .hm .f-when{margin:0;max-width:none;text-align:center;font-size:1.05rem;font-weight:600;color:var(--navy)}
  .hm .f-pro{font-style:normal;font-size:.6rem;letter-spacing:.08em;padding:3px 8px;border-radius:var(--radius-chip);color:var(--c-on-accent);background:var(--c-accent)}
  .hm .f-foot{margin:auto 0 0;max-width:none;font-size:.74rem;color:var(--muted)}
  /* figures: a coloured rule on the left of each */
  .hm .f-figs{display:flex;gap:22px;flex-wrap:wrap}
  .hm .f-figs>div{display:flex;flex-direction:column;gap:2px;padding-left:11px;border-left:3px solid var(--muted)}
  .hm .f-figs>div.is-s{border-color:var(--gold)}
  .hm .f-figs b{font-size:1.45rem;font-weight:700;color:var(--navy);line-height:1.15;font-family:var(--font-num);font-variant-numeric:tabular-nums}
  .hm .f-figs span{font-size:.74rem;color:var(--muted)}
  .hm .f-figs small{font-size:.74rem;font-weight:700;color:var(--green)}
  /* the strategy chart: drawn in when the card comes into view */
  .hm .f-plot{position:relative;flex:1 1 auto;min-height:200px}
  .hm .f-plot > svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
  .hm .area-s{fill:url(#gS)}
  /* the review's chart wipes in with its card */
  .hm .f-pf-plot{position:relative;flex:1 1 auto;min-height:140px}
  .hm .f-pf-plot svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;clip-path:inset(-10px 100% -10px 0)}
  .hm .f-pf.is-shown .f-pf-plot svg{clip-path:inset(-10px -10px -10px 0);transition:clip-path 1.4s cubic-bezier(.3,.6,.3,1) .2s}
  .hm .f-pf .area-s{fill:color-mix(in srgb,var(--gold) 10%,transparent)}
  .hm .f-todo{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
  .hm .f-todo li{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid var(--rule);font-size:.84rem}
  .hm .f-todo span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--navy);font-weight:500}
  .hm .f-todo b{flex:none;font-weight:700;color:var(--green)}
  .hm .f-card i.is-sell,.hm .f-todo i{flex:none;font-style:normal;font-size:.6rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
    padding:3px 8px;border-radius:var(--radius-chip);border:1px solid var(--rule);color:var(--navy)}
  .hm .f-card i.is-sell{color:var(--red);border-color:color-mix(in srgb,var(--red) 45%,transparent);background:color-mix(in srgb,var(--red) 9%,transparent)}
  /* ---------------- scene 3: plans ----------------
     Follows the inside-the-Lab scene in the flow. */
.hm .s-plans{position:relative;z-index:3;min-height:100vh;min-height:100svh;
    background:var(--paper);border-top:1px solid var(--rule-soft);
    display:flex;align-items:center;padding:72px 0 88px;overflow:hidden;overflow:clip}
  .hm .p-bg{position:absolute;left:0;right:0;bottom:0;height:60%;pointer-events:none;opacity:.55;will-change:transform}
  .hm .p-bg > svg{width:100%;height:100%;display:block}
  .hm .p-in{position:relative;width:100%}
  .hm .p-head{text-align:center;max-width:640px;margin:0 auto 42px;will-change:transform,opacity}
  .hm .p-head h2{font-size:clamp(2.3rem,5.4vw,4rem);letter-spacing:-.025em;line-height:1.04;margin:14px 0 12px}
  .hm .p-head p{color:var(--muted);margin:0 auto;font-size:1.05rem;max-width:36ch}
  /* four plans: Free, Premium and the two analyst plans; two by two on
     tablets, one column on phones */
  .hm .p-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;max-width:1200px;margin:0 auto}
  /* Outside India the two Research Analyst cards are not shown, so the grid
     stops pretending to have four columns. pricing.js adds the class. */
  .hm .p-grid.is-geo-two{grid-template-columns:repeat(2,minmax(0,1fr));max-width:820px}
  .hm .p-grid .p-card{padding:24px 20px 22px}
  .hm .p-grid .p-price{font-size:2.2rem}
  @media (max-width:1180px) and (min-width:861px){
    .hm .p-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:820px}
  }
  /* value first: one sentence under the name, then the price and the button */
  .hm .p-value{margin:12px 0 20px;font-size:1.02rem;line-height:1.45;color:var(--ink);min-height:2.9em}
  .hm .p-value b{color:var(--gold);font-weight:600}
  .hm .p-grid .p-meta{margin-bottom:22px}
  .hm .p-grid .btn{margin-top:auto}
  .hm .p-card{background:var(--panel);border:1px solid var(--rule);border-radius:var(--radius-card);padding:var(--sp-5);
    display:flex;flex-direction:column;will-change:transform}
  .hm .p-card.is-pro{border-color:var(--c-accent);box-shadow:inset 0 3px 0 var(--c-accent)}
  .hm .p-name{font-size:.72rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
  .hm .is-pro .p-name{color:var(--gold)}
  .hm .p-price{font-family:var(--font-num);font-size:2.7rem;font-weight:600;letter-spacing:-.02em;line-height:1;
    color:var(--navy);margin:14px 0 6px;font-variant-numeric:tabular-nums}
  .hm .p-price small{font-family:var(--font-sans);font-size:.88rem;font-weight:500;letter-spacing:0;color:var(--muted)}
  .hm .p-price s{font-size:.46em;font-weight:500;color:var(--muted);margin-right:8px;vertical-align:.4em}
  .hm .p-meta{min-height:2.7em}
  .hm .p-per{font-size:.82rem;color:var(--muted);margin:0}
  .hm .p-per.lab-launch{color:var(--gold);font-weight:600}
  .hm .p-list{list-style:none;margin:22px 0 26px;padding:0;display:grid;gap:12px;flex:1}
  .hm .p-list li{position:relative;padding-left:26px;font-size:.95rem;line-height:1.4}
  .hm .p-list b.gold{color:var(--gold);font-weight:600}
  .hm .p-list li::before{content:"";position:absolute;left:1px;top:.36em;width:11px;height:6px;
    border-left:2px solid var(--green);border-bottom:2px solid var(--green);transform:rotate(-45deg)}
  .hm .p-card .btn{display:block;width:100%;text-align:center}
  .hm .p-foot{display:flex;justify-content:center;gap:22px;flex-wrap:wrap;margin-top:28px;font-size:.88rem}
  .hm .p-foot a{color:var(--muted);text-decoration:none;border-bottom:1px solid var(--rule)}
  .hm .p-foot a:hover{color:var(--navy);border-color:var(--navy)}

  /* ---------------- phones and tablets ---------------- */
@media (max-width:860px){
    /* phones: the same two things, sized for a thumb */
    .hm .s-hero-in{padding:16px 16px clamp(8px,2svh,24px)}
    .hm .h-title{max-width:13ch;margin:0 auto clamp(18px,3svh,26px);font-size:clamp(2rem,min(9.5vw,5.6svh),2.7rem)}
    .hm .h-find-box{padding:4px 4px 4px 12px;gap:6px}
    .hm .h-find-ic{display:none}
    .hm .h-find-in{height:42px;font-size:16px}
    .hm .h-find-go{padding:11px 16px;font-size:.9rem}
    .hm .h-find-list{max-height:min(380px,46svh)}
    .hm .h-find-tag{width:64px;font-size:.56rem}
    .hm .h-picks{margin-top:14px}
    .hm .h-pick{padding:6px 11px;font-size:.8rem}
    .hm .chip{min-width:0;padding:10px 12px 11px;gap:4px}
    .hm .chip-l{font-size:.7rem}
    .hm .chip-v{font-size:1.08rem;gap:10px}
    .hm .chip-ic{width:20px;height:20px}
    .hm .chip-ic svg{width:9px;height:9px}

    .hm .s-demo{height:380vh;height:380svh;border-radius:var(--r-xl) var(--r-xl) 0 0}
    .hm .d-pin{align-items:flex-start;padding-top:max(20px,3svh)}
    .hm .d-grid{grid-template-columns:1fr;gap:18px}
    .hm .d-kick{margin-bottom:6px}
    .hm .d-step{display:none;grid-template-columns:1fr;padding:0}
    .hm .d-step.is-on{display:grid}
    .hm .d-num{padding:0 0 4px}
    .hm .d-num span{display:inline}
    .hm .d-step h3{font-size:1.6rem}
    .hm .d-prog{margin:12px 0 0}
    .hm .d-go{display:none}
    .hm .d-app{padding:16px 16px 36px;gap:14px}
    .hm .d-top .d-sip{display:none}
    .hm .d-rules{gap:16px}
    .hm .d-chart{height:140px}
    /* result cards: a row of three floating over the card's bottom edge */
.hm .d-stage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
    .hm .d-app{grid-column:1/-1}
    .hm .d-stage .chip{position:relative;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
      margin-top:-26px;z-index:1}
    .hm .d-stage .chip-v{font-size:1rem}
    .hm .d-stage .chip-ic{display:none}

    .hm .s-feat{border-radius:var(--r-xl) var(--r-xl) 0 0}
    .hm .f-ring{--r:calc(var(--w) * 1.3)}
    .hm .f-card{padding:16px 16px}
    .hm .f-plot{min-height:150px}
    .hm .f-figs{gap:14px}
    .hm .f-figs>div{padding-left:9px}
    .hm .f-figs b{font-size:1.12rem}
    .hm .s-plans{padding:56px 0 72px}
    .hm .p-head{margin-bottom:28px}
    .hm .p-grid{grid-template-columns:1fr;max-width:440px}
  }
  @media (max-width:420px){
    .hm .d-rules{gap:12px}
    .hm .d-rule-h{flex-direction:column;align-items:flex-start;gap:2px}
    .hm .d-track{margin-top:10px}
  }

  @media (prefers-reduced-motion:reduce){
    .hm .rise{animation:none;opacity:1;transform:none}
    .hm .h-find-box{animation:none}
    .hm .h-find-go.is-ready{animation:none}
    .hm .s-feat{height:auto}
    .hm .f-stage{position:static;height:auto;padding:56px 16px}
    .hm .f-ring{transform:none;height:auto;display:grid;gap:14px}
    .hm .f-ring>.f-card{position:relative;inset:auto;transform:none;min-height:340px}
    .hm .f-pf .f-pf-plot svg{clip-path:none;transition:none}
    .hm .h-picks{overflow-x:auto;scrollbar-width:none}
    .hm .chip,.hm .d-verdict{transition:none}
    .hm .dot.is-in{animation:none}
    .hm .d-caret{animation:none}
  }
