/* Mortgage Rail component pages: shared styles. Same tokens as the main page (Framer V3, light only). */
:root{
  color-scheme: light;
  --ground:#FFFFFF; --panel:#F4F4F2; --mist:#F1F5F7; --hair:rgba(17,17,17,.10);
  --ink:#111111; --ink2:#55555A; --ink3:#6F6F74;
  --glu:#2B8FD9; --glu-w:#E6F1FB;
  --done:#1F7A4D; --done-t:#E4F3EA; --pend:#B0641A; --pend-t:#FBF0E3; --pend-x:#8F4E10;
  --display:"Inter","Inter Display",system-ui,sans-serif;
  --body:"Instrument Sans",system-ui,sans-serif;
  --shadow:0 1px 2px rgba(0,63,90,.06),0 14px 30px -20px rgba(0,63,90,.30);
  --gut:40px; --c:var(--glu); --wash:var(--glu-w);
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ground);color:var(--ink);font:400 17px/1.55 var(--body);-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.ic{width:20px;height:20px;flex:none;display:inline-block;vertical-align:middle}
.t-display,.t-h2,.t-h3,.t-h4,.t-card{font-family:var(--display);font-variation-settings:"opsz" 32;margin:0;text-wrap:balance}
.t-display{font-size:60px;line-height:1.06;letter-spacing:-.03em;font-weight:600}
.t-h2{font-size:36px;line-height:1.12;letter-spacing:-.02em;font-weight:500}
.t-h3{font-size:26px;line-height:1.25;letter-spacing:-.015em;font-weight:500}
.t-h4{font-size:20px;line-height:1.35;letter-spacing:-.01em;font-weight:500}
.t-card{font-size:17px;line-height:1.3;letter-spacing:-.01em;font-weight:500}
.t-bodyL{font-size:19px;line-height:1.55;margin:0}
.t-body{font-size:17px;line-height:1.55;margin:0}
.t-small{font-size:15px;line-height:1.5;margin:0}
.t-eyebrow{font-size:12px;line-height:1.3;letter-spacing:.14em;font-weight:500;text-transform:uppercase;color:var(--ink2);margin:0}
.ink2{color:var(--ink2)} .ink3{color:var(--ink3)}
.wrap{width:100%;max-width:calc(1120px + 2*var(--gut));margin:0 auto;padding-inline:var(--gut)}
section.sec{padding-block:0 128px}
.sec-head{display:flex;flex-direction:column;gap:14px;margin-bottom:48px;max-width:780px}

.btn{display:inline-flex;align-items:center;gap:10px;height:48px;padding:0 24px;border-radius:999px;font:600 14px/1.2 var(--body);letter-spacing:.01em;white-space:nowrap;transition:transform .12s,background .2s}
.btn .ic{width:18px;height:18px}
.btn-dark{background:var(--ink);color:#fff}
.btn-light{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1px var(--hair)}
.btn:active{transform:scale(.98)}
@media (hover:hover){.btn-dark:hover{background:#2a2a2d}.btn-light:hover{background:var(--panel)}}
.btn:focus-visible,a:focus-visible,button:focus-visible{outline:2px solid var(--glu);outline-offset:3px}

/* nav */
.nav{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);box-shadow:0 1px 0 var(--hair)}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;height:72px;max-width:1200px;padding-inline:24px}
.nav .logo{display:flex;align-items:center;gap:14px}
.nav .logo img{height:26px;width:auto}
.nav .logo span{font:500 14px/1 var(--body);color:var(--ink2);padding-left:14px;border-left:1px solid var(--hair)}
.nav .links{display:flex;gap:4px;align-items:center}
.nav .links a{font:500 14px/1 var(--body);color:var(--ink2);padding:10px 12px;border-radius:999px;white-space:nowrap}
.nav .logo span{white-space:nowrap}
.nav .btn{flex:none}
@media (max-width:1279px){.nav .logo span{display:none}.nav .links a{padding:10px 9px}}
.nav .links a[aria-current]{color:var(--ink);background:var(--panel)}
@media (hover:hover){.nav .links a:hover{color:var(--ink)}}

/* hero */
.crumb{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--ink3);margin:48px 0 28px}
.crumb a{color:var(--ink2);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--hair)}
.crumb .ic{width:14px;height:14px}
.phero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:56px;align-items:center;padding-bottom:112px}
.phero > *,.step > *,.two > *,.flow > *,.stage{min-width:0}
.phero .copy{display:flex;flex-direction:column;gap:20px}
.tag2{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 12px;border-radius:999px;background:var(--wash);font:500 13px/1 var(--body);color:var(--ink)}
.tag2 i{width:8px;height:8px;border-radius:9px;background:var(--c)}
.ctas{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}
.stage{background:var(--wash);border-radius:28px;padding:28px;display:flex;flex-direction:column;gap:14px}
.stage.shot{padding:28px 28px 0}

/* primitives */
.chp{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 9px;border-radius:999px;font:500 12px/1 var(--body);white-space:nowrap;flex:none}
.chp.red{background:#FDECEA;color:#B42318}
.chp.amb{background:var(--pend-t);color:var(--pend-x)}
.chp.grn{background:var(--done-t);color:var(--done)}
.chp.blu{background:var(--glu-w);color:#1C6FB0}
.chp.gry{background:var(--panel);color:var(--ink2)}
.t3{width:20px;height:20px;border-radius:99px;display:grid;place-items:center;flex:none}
.t3 .ic{width:12px;height:12px;stroke-width:2.5}
.t3.ok{background:var(--done)} .t3.ok .ic{color:#fff}
.t3.warn{background:var(--pend-t)} .t3.warn .ic{color:var(--pend-x);width:13px;height:13px;stroke-width:2}
.t3.wait{box-shadow:inset 0 0 0 1.5px rgba(17,17,17,.22);background:#fff}
.dmock{background:#fff;border-radius:14px;box-shadow:0 1px 2px rgba(10,20,40,.08),0 24px 48px -24px rgba(10,20,40,.35);padding:18px 22px 20px;display:flex;flex-direction:column}
.stage.shot .dmock{border-radius:14px 14px 0 0}
.dh{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:14px;margin-bottom:4px;border-bottom:1px solid var(--hair)}
.dh .t{display:flex;align-items:center;gap:10px;font:500 17px/1.3 var(--display);font-variation-settings:"opsz" 32;min-width:0}
.dh .t .ic{width:20px;height:20px;color:var(--ink2);flex:none}
.dr{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:14px;padding:11px 0;font-size:15px}
.dr + .dr{border-top:1px solid var(--hair)}
.dr .tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.dr .tx b{font-weight:500}
.dr .tx span{font-size:13.5px;line-height:1.4;color:var(--ink2)}
.dfoot{margin-top:6px;padding-top:14px;border-top:1px solid var(--hair);display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:13.5px;color:var(--ink2)}
.frame{border-radius:14px 14px 0 0;overflow:hidden;background:#fff;box-shadow:0 1px 2px rgba(10,20,40,.08),0 24px 48px -24px rgba(10,20,40,.35)}
.frame img{width:100%;height:auto}
.illus{font-size:12.5px;color:var(--ink3);margin:0}

/* goal band */
.goal{display:grid;grid-template-columns:260px 1fr;gap:48px;align-items:start;padding:40px 0;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
.goal .t-h3{font-size:24px}

/* have / don't have */
.two{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.opt{border-radius:24px;padding:32px;display:flex;flex-direction:column;gap:16px}
.opt.have{box-shadow:inset 0 0 0 1px var(--hair)}
.opt.need{background:var(--wash)}
.opt .kick{display:flex;align-items:center;gap:10px;font:600 13px/1 var(--body);letter-spacing:.06em;text-transform:uppercase;color:var(--ink2)}
.opt .kick .ic{width:18px;height:18px;color:var(--c)}
.opt.have .kick .ic{color:var(--done)}
.opt ul{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
.opt li{display:grid;grid-template-columns:22px 1fr;gap:10px;font-size:16px;line-height:1.45}
.opt li .ic{width:18px;height:18px;margin-top:2px;color:var(--ink3)}
.opt.need li .ic{color:var(--c)}

/* flow: in -> component -> out */
.flow{display:grid;grid-template-columns:1fr 64px 1fr 64px 1fr;align-items:stretch}
.fcol{background:var(--panel);border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:12px}
.fcol.mid{background:var(--ink);color:#fff}
.fcol.mid .t-eyebrow{color:rgba(255,255,255,.6)}
.fcol ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;font-size:15px}
.fcol li{display:flex;gap:8px;align-items:flex-start}
.fcol li::before{content:"";width:6px;height:6px;border-radius:9px;background:var(--c);margin-top:8px;flex:none}
.fcol.mid li::before{background:#8CC8F2}
.farr{display:grid;place-items:center;color:var(--ink3)}
.farr .ic{width:24px;height:24px}

/* steps with screenshots (underwriting) */
.steps{display:flex;flex-direction:column;gap:96px}
.step{display:grid;grid-template-columns:300px minmax(0,1fr);gap:40px;align-items:start}
.step .txt{display:flex;flex-direction:column;gap:12px;position:sticky;top:100px}
.step .n{display:inline-flex;align-items:center;gap:10px;font:600 13px/1 var(--body);letter-spacing:.06em;text-transform:uppercase;color:var(--c)}
.step .n i{width:24px;height:24px;border-radius:99px;background:var(--wash);display:grid;place-items:center;font-style:normal;letter-spacing:0}
.ba{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.ba div{display:grid;grid-template-columns:22px 1fr;gap:10px;font-size:15px;line-height:1.45;color:var(--ink2)}
.ba div.now{color:var(--ink);font-size:16px}
.ba .bi{width:22px;height:22px;border-radius:99px;background:var(--panel);display:grid;place-items:center}
.ba .bi .ic{width:12px;height:12px;color:var(--ink3);stroke-width:2.4}
.ba .now .bi{background:var(--c)} .ba .now .bi .ic{color:#fff}
.seg{display:inline-flex;align-self:flex-start;background:#fff;border-radius:999px;padding:4px;box-shadow:inset 0 0 0 1px var(--hair)}
.seg button{height:32px;padding:0 14px;border-radius:999px;font:500 13.5px/1 var(--body);color:var(--ink2)}
.seg button[aria-selected="true"]{background:var(--ink);color:#fff}

/* stats */
.stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
.stats > div{padding:28px 24px 26px 0;display:flex;flex-direction:column;gap:8px}
.stats > div + div{padding-left:24px;border-left:1px solid var(--hair)}
.stats .n{font:600 44px/1 var(--display);font-variation-settings:"opsz" 32;letter-spacing:-.03em;white-space:nowrap}
.stats .n small{font-size:.5em;letter-spacing:0;font-weight:500;color:var(--ink2)}
.stats .src{font-size:13px;color:var(--ink3)}

/* code (affordability API) */
.code{background:#0F1720;color:#D6E2EE;border-radius:14px;padding:18px 20px;font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-x:auto;margin:0;white-space:pre}
.code .k{color:#8CC8F2}.code .s{color:#B9E4A8}.code .c{color:#7D8B99}

/* chat bubbles (agents) */
.chat{display:flex;flex-direction:column;gap:10px}
.msg{max-width:88%;padding:11px 14px;border-radius:16px;font-size:14.5px;line-height:1.45}
.msg.me{align-self:flex-end;background:var(--ink);color:#fff;border-bottom-right-radius:6px}
.msg.ai{align-self:flex-start;background:#fff;box-shadow:var(--shadow);border-bottom-left-radius:6px}
.msg .who{display:block;font-size:12px;color:var(--ink3);margin-bottom:4px}
.msg.me .who{color:rgba(255,255,255,.6)}

/* other components */
.comps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.comp{border-radius:20px;box-shadow:inset 0 0 0 1px var(--hair);padding:22px;display:flex;flex-direction:column;gap:8px;transition:background .2s}
.comp .top{display:flex;align-items:center;justify-content:space-between}
.comp i.d{width:10px;height:10px;border-radius:9px;background:var(--c)}
.comp .ic{width:18px;height:18px;color:var(--ink3)}
@media (hover:hover){.comp:hover{background:var(--panel)}}
.comp[aria-current]{background:var(--panel);box-shadow:none}

/* close + footer */
.close{background:var(--ink);color:#fff}
.close .wrap{display:flex;align-items:center;justify-content:space-between;gap:32px;padding-block:64px;flex-wrap:wrap}
.close p{color:rgba(255,255,255,.7);margin:10px 0 0}
footer{padding:64px 0 40px;font-size:13px;color:var(--ink3)}
footer .wrap{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;max-width:1200px;padding-inline:24px}
footer p{margin:0 0 6px}
footer b{color:var(--ink);font-weight:500}

@media (max-width:1099px){
  :root{--gut:32px}
  .t-display{font-size:48px}.t-h2{font-size:30px}
  .phero{grid-template-columns:1fr;gap:40px}
  .goal{grid-template-columns:1fr;gap:12px}
  .step{grid-template-columns:1fr;gap:24px}
  .step .txt{position:static}
  .flow{grid-template-columns:1fr;gap:0}
  .farr{height:44px}.farr .ic{transform:rotate(90deg)}
  .comps{grid-template-columns:1fr 1fr}
  .nav .wrap{flex-wrap:wrap;height:auto;padding-block:12px 0;row-gap:4px}
  .nav .links{order:3;width:100%;overflow-x:auto;scrollbar-width:none;padding-bottom:8px}
  .nav .links::-webkit-scrollbar{display:none}
  .nav .links a{white-space:nowrap}
}
@media (max-width:767px){
  :root{--gut:16px}
  .t-display{font-size:38px}.t-h2{font-size:26px}.t-h3{font-size:22px}
  section.sec{padding-bottom:88px}
  .nav .wrap{padding-inline:16px}
  .nav .btn{height:40px;padding:0 16px}
  .nav .logo span{display:none}
  .crumb{margin:28px 0 20px}
  .phero{padding-bottom:80px}
  .stage{padding:16px;border-radius:20px}.stage.shot{padding:16px 16px 0}
  .two{grid-template-columns:1fr}
  .opt{padding:22px}
  .stats{grid-template-columns:1fr}
  .stats > div + div{padding-left:0;border-left:0;border-top:1px solid var(--hair)}
  .comps{grid-template-columns:1fr}
  .dmock{padding:14px}
  .dr{gap:10px;font-size:14px}
  .frame{overflow-x:auto}.frame img{min-width:620px}
}
@media (prefers-reduced-motion:reduce){*{transition-duration:.01ms!important;animation:none!important;scroll-behavior:auto!important}}

/* wide hero (1 Oct comments): copy on top, the product screen below with room to play */
.phero.wide{grid-template-columns:minmax(0,1fr);gap:48px;align-items:start}
.phero.wide .copy{max-width:820px}
.phero.wide .hero-stage{position:relative;border-radius:28px}
.phero.wide .stage.hero-stage:not(.shot){padding:48px 40px 40px;align-items:center}
.phero.wide .hero-mock{width:100%;max-width:720px;margin:0 auto;position:relative}
.phero.wide .hero-mock .dh .t{font-size:18px}
.phero.wide .hero-mock .dr{padding:13px 0}
.phero.wide .hero-stage .illus{text-align:center}
.phero.wide .hero-stage>.mx-toast{top:24px;right:24px}
@media (max-width:767px){.phero.wide{gap:32px}.phero.wide .stage.hero-stage:not(.shot){padding:56px 14px 16px;border-radius:20px}.phero.wide .hero-stage>.mx-toast{top:10px;right:10px;left:10px;width:auto}}
.stage .dmock{position:relative}

/* cards sit whole inside their panels, with even space on every side (owner comment 1 Oct) */
.stage.shot{padding:28px}
.stage.shot .dmock,.frame{border-radius:14px}
@media (max-width:767px){.stage.shot{padding:16px}}
/* hero pop messages sit beside the screen on wide layouts, never over it (owner comment 1 Oct) */
@media (min-width:1100px){.phero.wide .stage.hero-stage:not(.shot):has(> .mx-toast){padding-right:368px}}

/* full-width layout (owner comment, 1 Oct): content runs to both edges with a gutter instead of a centred column.
   Header: logo | Mortgage Rail in the left corner, Book a demo in the right corner, the page links between them. */
:root{--gut:clamp(32px,4.4vw,88px)}
.wrap{max-width:none}
.nav .wrap,footer .wrap{max-width:none;padding-inline:var(--gut)}
.nav .wrap{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:24px;justify-content:normal}
.nav .logo{justify-self:start}
.nav .logo span{display:inline;font:600 15px/1 var(--body);color:var(--ink);border-left-color:rgba(17,17,17,.22)}
.nav .links{justify-content:center;min-width:0}
.nav .links a{padding:10px}
.nav .btn{justify-self:end}
@media (max-width:1339px){
  .nav .wrap{grid-template-columns:auto auto;justify-content:space-between;height:auto;padding-block:12px 0;row-gap:2px}
  .nav .links{grid-column:1/-1;grid-row:2;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;padding-bottom:8px;margin-inline:-10px}
  .nav .links::-webkit-scrollbar{display:none}
  .step .txt{top:128px}
}
@media (max-width:1099px){:root{--gut:32px}}
@media (max-width:767px){:root{--gut:16px}.nav .logo{gap:10px}.nav .logo img{height:22px}.nav .logo span{display:inline;font-size:13.5px;padding-left:10px}}
@media (max-width:379px){.nav .btn .ic{display:none}.nav .btn{padding:0 14px}}

/* header on scroll (owner comment, 1 Oct): once the page scrolls, the bar becomes a fully rounded pill in the centre,
   holding only the logo and Book a demo. The header keeps its height, so nothing below it jumps. */
.nav{transition:background-color .3s var(--e-out),box-shadow .3s var(--e-out)}
.nav .wrap{max-width:100%;transition:max-width .55s var(--e-expo),margin .45s var(--e-expo),padding .45s var(--e-expo),height .45s var(--e-expo),border-radius .5s var(--e-out),background-color .3s var(--e-out),box-shadow .35s var(--e-out)}
.nav.pill{background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;pointer-events:none}
.nav.pill .wrap{pointer-events:auto;max-width:540px;margin:12px auto 0;height:60px;padding:0 8px 0 22px;border-radius:999px;background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 0 0 1px rgba(17,17,17,.07),0 16px 36px -16px rgba(10,20,40,.38);grid-template-columns:auto auto;justify-content:space-between;column-gap:28px;row-gap:0}
.nav.pill .links{display:none}
.nav.pill .btn{height:44px}
.nav.pill .logo,.nav.pill .btn{animation:nav-in .45s var(--e-out)}
@keyframes nav-in{from{opacity:.4}to{opacity:1}}
@media (max-width:767px){.nav.pill .wrap{max-width:calc(100% - 24px);height:56px;padding:0 6px 0 16px;margin-top:10px}.nav.pill .btn{height:42px}}
@media (max-width:479px){.nav .btn .ic{display:none}.nav .btn{padding:0 14px}}
@media (max-width:479px){
  .nav .wrap{column-gap:10px}
  .nav .logo{gap:9px}.nav .logo img{height:20px}.nav .logo span{font-size:13px;padding-left:9px}
  .nav .btn{padding:0 12px;font-size:14px}
  .nav.pill .logo span{display:none}
}

/* breathing room (owner comment, 1 Oct): more space between sections, around headings and inside cards, on every page */
:root{--sec:clamp(136px,11vw,200px)}
section.sec{padding-bottom:var(--sec)}
.sec-head{gap:18px;margin-bottom:72px}
.t-bodyL,.t-body{line-height:1.62}
.crumb{margin:56px 0 40px}
.phero{padding-bottom:var(--sec);gap:72px}
.phero.wide{gap:64px}
.phero .copy{gap:28px}
.ctas{margin-top:16px}
.phero.wide .stage.hero-stage:not(.shot){padding:56px 48px 44px}
.goal{padding:72px 0;gap:80px}
.stats > div{padding:44px 32px 40px 0;gap:12px}
.stats > div + div{padding-left:32px}
.steps{gap:176px}
.step{gap:80px}
.step .txt{gap:20px}
.ba{gap:14px;margin-top:10px}
.stage,.stage.shot{padding:40px}
.two{gap:32px}
.opt{padding:44px;gap:20px}
.opt ul{gap:16px}
.fcol{padding:32px;gap:16px}
.fcol ul{gap:12px}
.comps{gap:24px}
.comp{padding:28px;gap:10px}
.close .wrap{padding-block:120px}
footer{padding:96px 0 56px}
@media (max-width:1099px){
  :root{--sec:120px}
  .sec-head{margin-bottom:56px}
  .phero{gap:48px}
  .goal{padding:56px 0;gap:16px}
  .steps{gap:128px}
  .step{gap:32px}
  .stage,.stage.shot{padding:28px}
  .opt{padding:36px}
  .close .wrap{padding-block:96px}
}
@media (max-width:767px){
  :root{--sec:96px}
  .sec-head{margin-bottom:40px;gap:14px}
  .crumb{margin:32px 0 24px}
  .phero,.phero.wide{gap:40px}
  .phero .copy{gap:20px}
  .phero.wide .stage.hero-stage:not(.shot){padding:56px 16px 20px}
  .goal{padding:44px 0}
  .stats > div{padding:28px 0 26px}
  .stats > div + div{padding-left:0}
  .steps{gap:96px}
  .step{gap:28px}
  .stage,.stage.shot{padding:20px}
  .opt{padding:28px}
  .fcol{padding:24px}
  .comps{gap:16px}
  .comp{padding:22px}
  .close .wrap{padding-block:72px}
  footer{padding:64px 0 40px}
}

/* how it connects to the rail (owner comment, 1 Oct): the facts arrive one at a time, the part works on each one, and the result
   goes out to whoever needs it. Packets travel along the lanes between the columns; motion.js runs the loop while it is on screen. */
.flow{grid-template-columns:minmax(0,1fr) 96px minmax(0,1fr) 96px minmax(0,1fr)}
.flow .fcol{position:relative;transition:box-shadow .5s var(--e-out)}
.flow.mx-play .fcol.mid{animation:none!important}
.flow .fcol ul{gap:4px}
.flow .fcol li{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:start;padding:10px 12px;margin:0 -12px;border-radius:12px;
  transition:background-color .4s var(--e-out),box-shadow .4s var(--e-out),opacity .4s var(--e-out)}
.flow .fcol li::before{display:none}
.flow .fs{position:relative;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:rgba(17,17,17,.06);transition:background-color .35s var(--e-out)}
.flow .fs::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--c);transition:background-color .3s var(--e-out)}
.flow .fcol.mid .fs{background:rgba(255,255,255,.1)}
.flow .fcol.mid .fs::before{background:#8CC8F2}
.flow li[data-fs=on]{background:#fff;box-shadow:0 1px 0 rgba(17,17,17,.04),0 12px 24px -16px rgba(10,20,40,.45)}
.flow li[data-fs=on] .fs::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 0 var(--c);animation:fl-ping 1.1s var(--e-out) infinite}
.flow .fcol.mid li[data-fs=work]{background:rgba(255,255,255,.09)}
.flow li[data-fs=work] .fs::before{width:14px;height:14px;background:none;border:2px solid rgba(255,255,255,.22);border-top-color:#8CC8F2;animation:mx-rot .7s linear infinite}
.flow li[data-fs=done] .fs{background:var(--done-t)}
.flow li[data-fs=done] .fs::before,.flow li[data-fs=on] .fs.ok::before{width:13px;height:13px;border-radius:0;background:var(--done);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.flow .fcol.mid li[data-fs=done] .fs{background:rgba(111,214,156,.16)}
.flow .fcol.mid li[data-fs=done] .fs::before{background:#6FD69C}
.flow.fl-run li[data-fs=""]{opacity:.55}
.flow.fl-reset .fcol ul{opacity:.35;transition:opacity .4s var(--e-out)}
.flow .fdone{display:flex;align-items:center;gap:8px;margin:auto 0 0;padding-top:14px;border-top:1px solid rgba(255,255,255,.12);font-size:14px;color:#6FD69C;opacity:0;transform:translateY(6px);transition:opacity .4s var(--e-out),transform .5s var(--e-expo)}
.flow .fdone i{width:7px;height:7px;border-radius:50%;background:#6FD69C;box-shadow:0 0 0 4px rgba(111,214,156,.18)}
.flow[data-fs=done] .fdone{opacity:1;transform:none}
.flow .farr{position:relative;display:block;color:var(--ink3)}
.flow .farr .lane{position:absolute;left:12px;right:16px;top:50%;height:2px;margin-top:-1px;background:repeating-linear-gradient(90deg,rgba(17,17,17,.22) 0 6px,transparent 6px 12px)}
.flow .farr.live .lane{animation:fl-dash .5s linear infinite}
.flow .farr .ic{position:absolute;right:2px;top:50%;width:18px;height:18px;margin-top:-9px}
.flow .farr .pk{position:absolute;left:12px;top:50%;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:var(--c);box-shadow:0 0 0 4px rgba(43,143,217,.16);animation:fl-pk .75s cubic-bezier(.45,0,.55,1) forwards}
@keyframes fl-pk{0%{left:12px;opacity:0}15%{opacity:1}85%{opacity:1}100%{left:calc(100% - 16px);opacity:0}}
@keyframes fl-pkv{0%{top:10px;opacity:0}15%{opacity:1}85%{opacity:1}100%{top:calc(100% - 12px);opacity:0}}
@keyframes fl-dash{to{background-position:12px 0}}
@keyframes fl-dashv{to{background-position:0 12px}}
@keyframes fl-ping{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--c) 45%,transparent)}100%{box-shadow:0 0 0 9px color-mix(in srgb,var(--c) 0%,transparent)}}
@keyframes mx-rot{to{transform:rotate(360deg)}}
@media (max-width:1099px){
  .flow{grid-template-columns:minmax(0,1fr)}
  .flow .farr{height:64px}
  .flow .farr .lane{left:50%;right:auto;top:10px;bottom:16px;width:2px;height:auto;margin:0 0 0 -1px;background:repeating-linear-gradient(180deg,rgba(17,17,17,.22) 0 6px,transparent 6px 12px)}
  .flow .farr.live .lane{animation-name:fl-dashv}
  .flow .farr .ic{right:auto;left:50%;top:auto;bottom:0;margin:0 0 0 -9px;transform:rotate(90deg)}
  .flow .farr .pk{left:50%;top:10px;animation-name:fl-pkv}
}
@media (prefers-reduced-motion:reduce){.flow .farr .pk{display:none}}

/* case studies (owner comment, 1 Oct): the same card as on the home page (illustration, product tag, title, Read now),
   given more weight here: one case study is a wide feature card, several sit in a row */
.cs-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:72px}
.cs-row>.cs-lab{grid-column:1/-1;margin:0 0 -4px}
.csc{border-radius:24px;box-shadow:inset 0 0 0 1px var(--hair);background:#fff;padding:12px 12px 28px;display:flex;flex-direction:column;transition:box-shadow .25s var(--e-out),transform .25s var(--e-out)}
.csc .cv{background:var(--panel);border-radius:16px;height:200px;display:grid;place-items:center}
.csc .cv img{height:140px;width:auto}
.csc .tx{padding:20px 12px 0;display:flex;flex-direction:column;gap:14px;flex:1}
.csc .tag{align-self:flex-start;background:var(--panel);border-radius:8px;padding:6px 12px;font:500 13px/1.4 var(--body);letter-spacing:.06em;text-transform:uppercase}
.csc .t-card{margin-bottom:14px}
.csc .cs-cta{margin-top:auto;justify-content:space-between;width:100%}
@media (hover:hover){.csc:hover{box-shadow:inset 0 0 0 1px rgba(17,17,17,.14),0 22px 40px -28px rgba(10,20,40,.4);transform:translateY(-2px)}}
.cs-row.one{grid-template-columns:minmax(0,1fr)}
.cs-row.one .csc{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:48px;align-items:center;padding:16px 48px 16px 16px;background:var(--wash)}
.cs-row.one .csc .cv{height:340px;background:#fff}
.cs-row.one .csc .cv img{height:220px}
.cs-row.one .csc .tx{padding:24px 0;gap:20px}
.cs-row.one .csc .tag{background:#fff}
.cs-row.one .csc .t-card{font-size:30px;line-height:1.2;letter-spacing:-.02em;margin-bottom:12px}
.cs-row.one .csc .cs-cta{margin-top:8px;width:auto;align-self:flex-start;gap:14px}
@media (max-width:1099px){.cs-row{grid-template-columns:repeat(2,minmax(0,1fr))}.cs-row.one .csc{grid-template-columns:minmax(0,1fr);gap:8px;padding:12px 12px 28px}.cs-row.one .csc .cv{height:260px}.cs-row.one .csc .tx{padding:20px 16px 0}.cs-row.one .csc .t-card{font-size:24px}}
@media (max-width:767px){.cs-row{grid-template-columns:minmax(0,1fr);gap:16px;margin-top:48px}.cs-row.one .csc .cv{height:200px}.cs-row.one .csc .cv img{height:140px}.cs-row.one .csc .t-card{font-size:21px}.cs-row.one .csc .cs-cta{width:100%;justify-content:space-between}}

/* page heads (owner comment, 1 Oct): the pill, title and description on the left, the buttons on the right, level with the description */
@media (min-width:900px){
  .phero.wide .copy{max-width:none;display:grid;grid-template-columns:minmax(0,860px) auto;justify-content:space-between;column-gap:64px;row-gap:24px;align-items:end}
  .phero.wide .copy>*{grid-column:1;justify-self:start}
  .phero.wide .copy>.ctas{grid-column:2;grid-row:3;justify-self:end;align-self:end;margin:0;flex-wrap:nowrap}
}
/* at least 64px between blocks, at every width (owner comment, 1 Oct); a step's text stays close to its own screen */
@media (max-width:1099px){.sec-head{margin-bottom:64px}.goal{padding:64px 0}.step{gap:48px}.cs-row{margin-top:64px}}
@media (max-width:767px){.sec-head{margin-bottom:64px}.goal{padding:64px 0}.step{gap:36px}.cs-row{margin-top:64px}}

/* smooth scrolling with Lenis (owner request, 1 Oct); the rules from lenis.css, inline */
html.lenis,html.lenis body{height:auto}
html.lenis{scroll-behavior:auto}
.lenis:not(.lenis-autoToggle).lenis-stopped{overflow:clip}
.lenis [data-lenis-prevent],.lenis [data-lenis-prevent-wheel],.lenis [data-lenis-prevent-touch]{overscroll-behavior:contain}
.lenis.lenis-smooth iframe{pointer-events:none}
/* how it connects: on wide screens each lane, its arrow and its packet sit level with the row being handled (motion.js sets --ly) */
@media (min-width:1100px){
  .flow .farr .lane,.flow .farr .ic,.flow .farr .pk{top:var(--ly,50%)}
  .flow.fl-run .farr .lane,.flow.fl-run .farr .ic,.flow.fl-glide .farr .lane,.flow.fl-glide .farr .ic{transition:top .5s var(--e-out)}
}

/* ---------- titles that explain (owner, 7 Oct 2026) ----------
   Each part page's h1 is now a sentence, not the part's name, so it is set a step smaller and on a narrower measure.
   In the goal block the goal sentence is the heading and "The goal" is its small label. */
.phero h1.t-display{font-size:clamp(28px,3.6vw,50px);line-height:1.08;letter-spacing:-.032em;max-width:17em;text-wrap:balance}
.goal .goal-l{margin:0;padding-top:.5em;font:600 15px/1.3 var(--body);color:var(--ink2)}
.goal h2.goal-say{font-size:clamp(23px,2.5vw,34px);line-height:1.2;font-weight:500;letter-spacing:-.022em;max-width:27em;text-wrap:balance}
