/* Home S7 process dial. Figma: 1440 x 1140 navy, aurora glows. Head: H2 48/56 (680 wide) left, intro 460
   wide right. Stage at y326: dial 560 (ticks r257-271, arc ring r175-250, icons on r220, disc 340, dashed
   ring 300, number 132/132, pips 92 x 6 at y342, orbit dot 14 on r290) + list 600 wide centred against it.
   Rows 99 tall, active row 624 x 158 glass. Closing line 30/34 at y976, underline 160 at y1028. */
.ifpa-hpr{--hm-pt:110px;--hm-pb:110px;--hpr-p:0;overflow:hidden;overflow:clip;background:#111634 linear-gradient(180deg,#111634 0%,#0C1030 100%)}
.ifpa-hpr__aurora{position:absolute;z-index:0;border-radius:50%;pointer-events:none}
/* Figma auroras are solid discs under a 180 layer blur */
.ifpa-hpr__aurora--indigo{left:80px;top:220px;width:760px;height:760px;background:rgba(46,49,146,.6);filter:blur(90px)}
/* Red aurora: 20px past the bottom of the 1140 frame in Figma. Anchored to the bottom because the pinned section is taller */
.ifpa-hpr__aurora--red{left:calc(50% + 380px);top:auto;bottom:-20px;width:460px;height:460px;background:rgba(237,28,36,.22);filter:blur(90px)}
/* Figma "Decor · circuit hairlines" (desktop only): dashed 4/6 periwinkle 30% lines, 300 + 40 diagonal from the
   top left at y90, and a 40 diagonal + 260 line into the right edge at y820 */
.ifpa-hpr__grid{position:absolute;inset:0;z-index:0;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='341' height='131'%3E%3Cg fill='none' stroke='%236180EF' stroke-opacity='.3' stroke-dasharray='4 6'%3E%3Cpath d='M0 90.5H300'/%3E%3Cpath d='M300 90.5L340.5 131'/%3E%3C/g%3E%3C/svg%3E") 0 0/341px 131px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='41'%3E%3Cg fill='none' stroke='%236180EF' stroke-opacity='.3' stroke-dasharray='4 6'%3E%3Cpath d='M0 0L40 40.5'/%3E%3Cpath d='M40 40.5H300'/%3E%3C/g%3E%3C/svg%3E") right 0 top 780px/300px 41px no-repeat}
.ifpa-hpr.ifpa-hm--split .ifpa-head{grid-template-columns:minmax(0,680px) minmax(0,460px);justify-content:space-between;column-gap:40px;margin-bottom:70px}
.ifpa-hpr.ifpa-hm--split .ifpa-head__desc{align-self:start;margin:50px 0 0;color:#C8CBF5}
.ifpa-hpr .ifpa-head__title{font-size:48px;line-height:56px;letter-spacing:-1.4px;color:#fff}

.ifpa-hpr__stage{display:grid;grid-template-columns:560px minmax(0,600px);column-gap:40px;align-items:center;justify-content:space-between}

/* Dial */
.ifpa-hpr__dial{position:relative;width:560px;max-width:100%;aspect-ratio:1;container-type:inline-size}
/* Short laptop screens: the pinned dial shrinks so the whole stage stays on screen while pinned */
@media (min-width:1024px){.ifpa-hpr__dial{width:min(560px,calc(100vh - 170px));min-width:420px}.ifpa-hpr__dialwrap{display:flex;justify-content:center}}
.ifpa-hpr__svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.ifpa-hpr__tick{stroke:rgba(255,255,255,.2);stroke-width:1.5;stroke-linecap:round;transition:stroke 250ms linear}
.ifpa-hpr__tick.is-long{stroke-width:2.2}
.ifpa-hpr__tick.is-lit{stroke:rgba(255,255,255,.92)}
.ifpa-hpr__base{fill:none;stroke:rgba(255,255,255,.06);stroke-width:75}
.ifpa-hpr__arc{fill:none;stroke-width:75;stroke-dasharray:1 1;stroke-dashoffset:var(--f-off,1);opacity:0;transition:opacity 400ms var(--hm-ease),filter 400ms var(--hm-ease)}
.ifpa-hpr__arc.is-done{opacity:.42;--f-off:0}
.ifpa-hpr__arc.is-on{opacity:1;filter:drop-shadow(0 0 14px rgba(97,128,239,.55))}
.ifpa-hpr.is-static .ifpa-hpr__arc{transition:opacity 400ms var(--hm-ease),stroke-dashoffset 700ms var(--hm-ease)}
.ifpa-hpr.is-static .ifpa-hpr__arc.is-on{--f-off:0}
.ifpa-hpr__disc{position:absolute;left:19.643%;top:19.643%;width:60.714%;aspect-ratio:1;border-radius:50%;overflow:hidden;background:radial-gradient(circle at 50% 40%,#1C2160 0%,#121641 60%,#0E1236 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 30px 60px -20px rgba(0,0,0,.6)}
.ifpa-hpr__sweep{position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,rgba(97,128,239,0) 0deg,rgba(97,128,239,0) 280deg,rgba(97,128,239,.22) 360deg);animation:ifpa-hpr-spin 8s linear infinite}
.ifpa-hpr__ring{position:absolute;left:5.88%;top:5.88%;width:88.24%;aspect-ratio:1;border-radius:50%;border:1px dashed rgba(255,255,255,.16);box-sizing:border-box;animation:ifpa-hpr-spin 40s linear infinite reverse}
@keyframes ifpa-hpr-spin{to{rotate:360deg}}
.ifpa-hpr__num{position:absolute;left:35%;top:35.714%;width:30%;height:23.572%;overflow:hidden}
.ifpa-hpr__numcol{display:flex;flex-direction:column;transform:translateY(calc(var(--hpr-i,0) * -100% / var(--hpr-n)));transition:transform 650ms cubic-bezier(.65,0,.35,1)}
.ifpa-hpr__numcol>span{display:block;height:23.572cqw;font-family:var(--ifpa-font-head);font-weight:800;font-size:23.572cqw;line-height:23.572cqw;letter-spacing:-.714cqw;text-align:center;background:linear-gradient(90deg,#ED1C24,#6180EF);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.ifpa-hpr__pips{position:absolute;left:41.786%;top:61.07%;display:flex;gap:1.43cqw;width:16.43%;height:1.07cqw}
.ifpa-hpr__pip{flex:1 1 0;border-radius:99px;background:rgba(255,255,255,.18);transition:background-color 400ms var(--hm-ease)}
.ifpa-hpr__pip.is-done,.ifpa-hpr__pip.is-on{background:linear-gradient(90deg,#ED1C24,#6180EF)}
.ifpa-hpr__ico{position:absolute;z-index:2;left:calc(var(--x) / 560 * 100%);top:calc(var(--y) / 560 * 100%);width:8.57%;aspect-ratio:1;translate:-50% -50%;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#111634;border:1px solid rgba(255,255,255,.18);color:rgba(255,255,255,.85);cursor:pointer;transition:width 450ms var(--hm-ease),background-color 450ms var(--hm-ease),color 450ms var(--hm-ease),box-shadow 450ms var(--hm-ease)}
.ifpa-hpr__ico svg{width:3.57cqw;height:3.57cqw}
.ifpa-hpr__ico.is-on{width:10.714%;background:#fff;border-color:#fff;color:#2E3192;box-shadow:0 0 0 6px rgba(255,255,255,.08),0 16px 34px -10px rgba(97,128,239,.8)}
.ifpa-hpr__orbit{position:absolute;inset:0;rotate:calc(var(--hpr-p) * 360deg);pointer-events:none}
.ifpa-hpr__odot{position:absolute;left:50%;top:-1.786%;width:2.5%;aspect-ratio:1;translate:-50% -50%;border-radius:50%;background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.12),0 0 18px 4px rgba(154,176,255,.9)}

/* Step list */
.ifpa .ifpa-hpr__list{position:relative;display:flex;flex-direction:column;gap:12px;margin:0;padding:0;list-style:none!important}
.ifpa .ifpa-hpr__row{position:relative;margin:0;padding:20px 24px 21px 68px;border:1px solid transparent;border-radius:20px;transition:margin 450ms var(--hm-ease),padding 450ms var(--hm-ease),background-color 450ms var(--hm-ease),border-color 450ms var(--hm-ease),box-shadow 450ms var(--hm-ease)}
.ifpa-hpr__row::before{content:"";position:absolute;left:0;right:0;top:-7px;height:1px;background:rgba(255,255,255,.1);transition:opacity 300ms var(--hm-ease)}
.ifpa-hpr__row:first-child::before,.ifpa-hpr__row.is-on::before,.ifpa-hpr__row.is-on+.ifpa-hpr__row::before{opacity:0}
.ifpa .ifpa-hpr__row.is-on{margin:0 -12px;padding:21px 24px 43px 80px;border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.09);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 30px 60px -30px rgba(0,0,0,.6)}
.ifpa-hpr__acc{position:absolute;left:-1px;top:24px;width:4px;height:52px;border-radius:0 2px 2px 0;background:linear-gradient(180deg,#ED1C24,#6180EF);transform:scaleY(0);transition:transform 450ms var(--hm-ease)}
.ifpa-hpr__row.is-on .ifpa-hpr__acc{transform:none}
.ifpa-hpr__rico{display:none}
.ifpa-hpr__rnum{position:absolute;left:24px;top:23px;font-family:var(--ifpa-font-head);font-weight:800;font-size:15px;line-height:20px;letter-spacing:1px;color:rgba(255,255,255,.35);transition:left 450ms var(--hm-ease),top 450ms var(--hm-ease),color 450ms var(--hm-ease)}
.ifpa-hpr__row.is-done .ifpa-hpr__rnum{color:rgba(255,255,255,.6)}
.ifpa-hpr__row.is-on .ifpa-hpr__rnum{left:36px;top:28px;background:linear-gradient(90deg,#ED1C24,#6180EF);-webkit-background-clip:text;background-clip:text;color:transparent}
.ifpa .ifpa-hpr__rt{margin:0;font-family:var(--ifpa-font-head);font-weight:800;font-size:20px;line-height:26px;letter-spacing:0;text-transform:none;color:rgba(255,255,255,.5);transition:font-size 450ms var(--hm-ease),line-height 450ms var(--hm-ease),color 450ms var(--hm-ease)}
.ifpa .ifpa-hpr__row.is-done .ifpa-hpr__rt{color:rgba(255,255,255,.75)}
.ifpa .ifpa-hpr__row.is-on .ifpa-hpr__rt{font-weight:800;font-size:26px;line-height:32px;color:#fff}
.ifpa .ifpa-hpr__rd{margin:8px 0 0;max-width:500px;font-family:var(--ifpa-font-body);font-weight:500;font-size:15px;line-height:22px;color:rgba(200,203,245,.35);transition:font-size 450ms var(--hm-ease),line-height 450ms var(--hm-ease),color 450ms var(--hm-ease)}
.ifpa .ifpa-hpr__row.is-done .ifpa-hpr__rd{color:rgba(200,203,245,.5)}
.ifpa .ifpa-hpr__row.is-on .ifpa-hpr__rd{max-width:480px;font-size:17px;line-height:26px;color:rgba(200,203,245,.95)}
.ifpa-hpr__prog{position:absolute;left:80px;bottom:19px;width:min(480px,calc(100% - 104px));height:3px;border-radius:2px;background:rgba(255,255,255,.12);overflow:hidden;opacity:0;transition:opacity 300ms var(--hm-ease)}
.ifpa-hpr__prog>span{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,#ED1C24,#6180EF);transform-origin:0 50%;transform:scaleX(var(--q,0))}
.ifpa-hpr__row.is-on .ifpa-hpr__prog{opacity:1}
.ifpa-hpr.is-static .ifpa-hpr__row.is-on .ifpa-hpr__prog>span{--q:1;transition:transform 900ms var(--hm-ease) 150ms}
.ifpa .ifpa-hpr__hit{all:unset;position:absolute;inset:0;z-index:2;border-radius:inherit;cursor:pointer}
.ifpa .ifpa-hpr__hit:focus-visible{outline:2px solid var(--ifpa-peri);outline-offset:2px}

/* Closing line: words rise one after another, then the underline draws */
.ifpa .ifpa-hpr__close{margin:90px 0 0;text-align:center;font-family:var(--ifpa-font-head);font-weight:800;font-size:30px;line-height:34px;letter-spacing:-.5px;color:#fff}
/* Figma: one gradient across the whole closing line (#FF8A8F, white at 50%, #9AB0FF). Each word paints its slice:
   the script sets --gw (line box width) on the line and --gx (word offset) on each word. */
.ifpa .ifpa-hpr__close{max-width:1141px;margin-left:auto;margin-right:auto}
.ifpa-hpr__w{background:linear-gradient(90deg,#FF8A8F 0%,#fff 50%,#9AB0FF 100%) calc(-1 * var(--gx,0px)) 0/var(--gw,100%) 100% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.ifpa-hpr__w{display:inline-block;transition:opacity 600ms var(--hm-ease) calc(var(--w) * 60ms),transform 600ms var(--hm-ease) calc(var(--w) * 60ms)}
.ifpa-js .ifpa-hpr__close:not(.is-in) .ifpa-hpr__w{opacity:0;transform:translateY(12px)}
.ifpa-hpr__cul{display:block;width:160px;height:3px;margin:18px auto 0;border-radius:2px;background:linear-gradient(90deg,#ED1C24,#6180EF);transform-origin:50% 50%;transition:transform 700ms var(--hm-ease) 500ms}
.ifpa-js .ifpa-hpr__close:not(.is-in)+.ifpa-hpr__cul{transform:scaleX(0)}

@media (max-width:1199px){
	.ifpa-hpr__stage{grid-template-columns:minmax(0,46%) minmax(0,1fr)}
	.ifpa-hpr .ifpa-head__title{font-size:40px;line-height:48px}
}
/* Tablet + phone (M7): no pin. Mini dial (314) sits above the rows; on phones it is sticky under the header
   (see the 767 block) and the row in the free space below it is active. Every step's text stays visible. */
@media (max-width:1023px){
	.ifpa-hpr{--hm-pt:88px;--hm-pb:88px}
	.ifpa-hpr.ifpa-hm--split .ifpa-head{margin-bottom:28px}
	.ifpa-hpr.ifpa-hm--split .ifpa-head__desc{margin-top:16px}
	.ifpa-hpr .ifpa-head__title{font-size:28px;line-height:36px;letter-spacing:-.6px}
	.ifpa-hpr__stage{display:block}
	.ifpa-hpr__dialwrap{position:relative;z-index:3;margin:0 calc(-1 * var(--hm-px));padding:4px var(--hm-px) 22px;background:linear-gradient(180deg,#121641 0%,#121641 86%,rgba(18,22,65,0) 100%)}
	.ifpa-hpr__dial{width:min(314px,100%);margin:0 auto}
	.ifpa-hpr__sweep,.ifpa-hpr__ring{animation:none}
	.ifpa .ifpa-hpr__list{gap:10px;margin-top:8px}
	.ifpa .ifpa-hpr__row,.ifpa .ifpa-hpr__row.is-on{margin:0;padding:16px 16px 22px 70px}
	.ifpa-hpr__row::before{display:none}
	.ifpa .ifpa-hpr__row{border-color:rgba(255,255,255,.06)}
	.ifpa-hpr__rico{position:absolute;left:16px;top:16px;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);color:#fff;transition:background 400ms var(--hm-ease)}
	.ifpa-hpr__rico svg{width:20px;height:20px}
	.ifpa-hpr__row.is-on .ifpa-hpr__rico{border-color:transparent;background:linear-gradient(135deg,#ED1C24,#6180EF);background-origin:border-box}
	.ifpa-hpr__rnum,.ifpa-hpr__row.is-on .ifpa-hpr__rnum{position:static;display:block;margin-bottom:2px;font-size:12px;line-height:16px}
	.ifpa-hpr__acc{top:18px;height:36px}
	.ifpa .ifpa-hpr__rt,.ifpa .ifpa-hpr__row.is-on .ifpa-hpr__rt{font-size:19px;line-height:26px}
	.ifpa .ifpa-hpr__rd,.ifpa .ifpa-hpr__row.is-on .ifpa-hpr__rd{font-size:15px;line-height:23px;color:rgba(200,203,245,.8)}
	.ifpa .ifpa-hpr__row.is-on .ifpa-hpr__rd{color:#C8CBF5}
	.ifpa-hpr__prog{left:70px;bottom:10px;width:calc(100% - 86px)}
	.ifpa .ifpa-hpr__close{margin-top:48px;font-size:22px;line-height:30px}
	.ifpa-hpr__ph{display:block}
}
/* M7 (Figma 390, 1448 tall): dial 314 at y316 (sticks with its top at 72px), rows 17.6 below it, 10 apart,
   r20, icon 44 r14 at (18,18), number 13/16, title 20/26, text 15/23 from x76; the active row grows 19px to
   show its progress bar. Closing line 32 below the rows, 80px underline 14 below it. Paddings allow for borders. */
@media (max-width:767px){
	.ifpa-hpr{--hm-pt:64px;--hm-pb:62px}
	.ifpa-hpr.ifpa-hm--split .ifpa-head{margin-bottom:20px}
	.ifpa-hpr.ifpa-hm--split .ifpa-head__desc{margin-top:14px}
	.ifpa-hpr .ifpa-head__title{letter-spacing:-1.4px}
	/* M7 notes: the mini dial is sticky 8px under the header (72px with the 64px header; it follows the header
	   when that hides or returns) while the rows scroll under it. A navy panel fades in behind it only while it
	   is held, so the rows slide under the dial instead of showing round its edges. */
	.ifpa-hpr__dialwrap{position:sticky;top:calc(var(--ifpa-shd-top,64px) + 8px);margin-top:-4px;background:none;transition:top 350ms cubic-bezier(.2,.8,.2,1)}
	.ifpa-hpr__dialwrap::before{content:"";position:absolute;left:0;right:0;top:calc(-8px - var(--ifpa-shd-top,64px));bottom:-28px;z-index:-1;background:linear-gradient(180deg,#111634 0,#111634 calc(100% - 44px),rgba(17,22,52,0) 100%);opacity:0;transition:opacity 250ms ease;pointer-events:none}
	.ifpa-hpr__dialwrap.is-stuck::before{opacity:1}
	/* JS sets --hpr-rel (the last row's height): the dial lets go once the last row is just under it */
	.ifpa-hpr__dialwrap{margin-bottom:var(--hpr-rel,0px)}
	.ifpa-hpr__grid{display:none}
	.ifpa-hpr__aurora--indigo{left:-100px;top:300px;width:560px;height:560px;filter:blur(70px)}
	.ifpa-hpr__aurora--red{left:200px;top:1000px;bottom:auto;width:300px;height:300px;filter:blur(70px)}
	.ifpa .ifpa-hpr__list{margin-top:calc(-4.4px - var(--hpr-rel,0px))}
	.ifpa .ifpa-hpr__row,.ifpa .ifpa-hpr__row.is-on{padding:17px 17px 17px 75px;border-color:rgba(255,255,255,.08);background:rgba(255,255,255,.03)}
	.ifpa .ifpa-hpr__row.is-on{padding-bottom:36px;border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.09);box-shadow:0 16px 36px rgba(5,8,31,.35)}
	.ifpa-hpr__rico{left:17px;top:17px;width:44px;height:44px;border:0;border-radius:14px;background:rgba(255,255,255,.06)}
	.ifpa-hpr__row.is-done .ifpa-hpr__rico{background:rgba(255,255,255,.14)}
	.ifpa-hpr__rico svg{width:22px;height:22px}
	.ifpa-hpr__acc{top:19px;height:44px}
	.ifpa-hpr__rnum,.ifpa-hpr__row.is-on .ifpa-hpr__rnum{margin-bottom:2px;font-weight:800;font-size:13px;line-height:16px}
	.ifpa-hpr__rnum{color:rgba(255,255,255,.45)}
	.ifpa-hpr__row.is-done .ifpa-hpr__rnum{color:rgba(255,255,255,.45)}
	.ifpa .ifpa-hpr__rt,.ifpa .ifpa-hpr__row.is-on .ifpa-hpr__rt{font-weight:800;font-size:20px;line-height:26px;letter-spacing:0;color:rgba(255,255,255,.65)}
	.ifpa .ifpa-hpr__row.is-done .ifpa-hpr__rt{color:rgba(255,255,255,.85)}
	.ifpa .ifpa-hpr__row.is-on .ifpa-hpr__rt{color:#fff}
	.ifpa .ifpa-hpr__rd,.ifpa .ifpa-hpr__row.is-on .ifpa-hpr__rd{margin-top:6px;color:rgba(200,203,245,.6)}
	.ifpa .ifpa-hpr__row.is-done .ifpa-hpr__rd{color:rgba(200,203,245,.6)}
	.ifpa .ifpa-hpr__row.is-on .ifpa-hpr__rd{color:rgba(200,203,245,.95)}
	.ifpa-hpr__prog{left:75px;bottom:15px;width:calc(100% - 92px)}
	.ifpa .ifpa-hpr__close{margin-top:32px}
	.ifpa-hpr__cul{width:80px;margin-top:14px}
}
/* Tablet: dial on the left, the four steps on the right (no sticky) */
@media (min-width:768px) and (max-width:1023px){
	.ifpa-hpr__stage{display:grid;grid-template-columns:minmax(0,40%) minmax(0,1fr);column-gap:32px;align-items:start}
	.ifpa-hpr__dialwrap{position:relative;margin:0;padding:0;background:none}
	.ifpa-hpr__dial{width:100%;max-width:340px;margin:0}
	.ifpa .ifpa-hpr__list{margin-top:0}
}
/* Landscape phones: a sticky dial would fill the whole screen, so it scrolls with the page */
@media (max-width:767px) and (max-height:560px){
	.ifpa-hpr__dialwrap{position:relative;top:auto;padding-bottom:8px}
	.ifpa-hpr__dial{width:min(260px,100%)}
}
@media (prefers-reduced-motion:reduce){
	.ifpa-hpr__sweep,.ifpa-hpr__ring{animation:none}
	.ifpa-hpr__numcol{transition:none}
	.ifpa-hpr__w,.ifpa-hpr__cul{transition-duration:200ms!important;transition-delay:0s!important;transform:none!important}
}
