/* CALCULATORS page (saffron mood). Prefixes: cx- cw- hw- */
.cxp{background:var(--paper);color:var(--ink);font-family:'Inter',system-ui,sans-serif;overflow-x:clip}
.cxp *{box-sizing:border-box}
.cx-in{width:min(1240px,100% - 48px);margin-inline:auto}
.cxp h1,.cxp h2,.cxp h3{font-family:'Inter Tight','Inter',sans-serif;margin:0;letter-spacing:-.02em;color:var(--ink)}
.cxp em{font-style:normal;color:var(--emer)}
.cx-rv{opacity:0;transform:translateY(26px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1)}
.cx-rv.in{opacity:1;transform:none}

/* hero */
.cx-hero{position:relative;padding:150px 0 70px;background:linear-gradient(180deg,#fff3e2 0,var(--paper) 100%);overflow:hidden}
.cx-hbg i{position:absolute;border-radius:50%;filter:blur(70px);opacity:.55}
.cx-hbg .o1{width:420px;height:420px;background:#ffd3a1;right:-80px;top:-60px}
.cx-hbg .o2{width:340px;height:340px;background:#ffe8a8;left:-90px;bottom:-120px}
.cx-hbg .o3{width:260px;height:260px;background:#ffc2a0;right:30%;bottom:-140px;opacity:.4}
.cx-hbg b{position:absolute;font:600 7rem/1 'Inter Tight',sans-serif;color:rgba(238,106,18,.09);animation:cxF 9s ease-in-out infinite}
.cx-hbg .g1{left:6%;top:30%}.cx-hbg .g2{right:44%;top:14%;font-size:5rem;animation-delay:-3s}.cx-hbg .g3{right:6%;bottom:8%;font-size:9rem;animation-delay:-6s}
@keyframes cxF{50%{transform:translateY(-18px) rotate(4deg)}}
.cx-hgrid{position:relative;display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center}
.cx-h1{font-size:clamp(2.5rem,6vw,5rem);line-height:1.02;font-weight:600;margin:10px 0 18px!important}
.cx-h1 .w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.08em}
.cx-h1 .w>span{display:inline-block;transform:translateY(110%);animation:cxW .9s cubic-bezier(.2,.8,.2,1) forwards;animation-delay:calc(var(--i,0)*90ms + 150ms)}
@keyframes cxW{to{transform:none}}
.cx-hsub{font-size:1.1rem;line-height:1.65;color:var(--ink-2);max-width:560px;margin:0 0 24px}
.cx-quick{display:flex;flex-wrap:wrap;gap:10px}
.cx-quick a{padding:10px 16px;border-radius:999px;background:#fff;border:1px solid var(--lineL);color:var(--ink);font-weight:500;font-size:.92rem;text-decoration:none;transition:.25s}
.cx-quick a:hover{background:var(--emer);color:#fff;border-color:var(--emer);transform:translateY(-2px)}
.cx-lc{background:#fff;border-radius:26px;padding:26px;box-shadow:0 30px 70px rgba(238,106,18,.18),0 2px 0 rgba(255,255,255,.8) inset;border:1px solid rgba(238,106,18,.16);position:relative;overflow:hidden;transform:rotate(1.5deg)}
.cx-lt{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:18px;flex-wrap:wrap}
.cx-lt span{font-weight:600;color:var(--ink)}.cx-lt em{font-size:.85rem;color:var(--ink-3)}
.cx-lrow{display:flex;gap:22px;align-items:center}
.cx-ld{width:120px;height:120px;flex:none;transform:rotate(-90deg)}
.cx-ld circle{fill:none;stroke-width:14}.cx-ld .t{stroke:var(--emer)}.cx-ld .a{stroke:var(--ink);transition:stroke-dasharray .8s}
.cx-lrow small{display:block;color:var(--ink-3);font-size:.78rem}.cx-lrow small.i{margin-top:10px}
.cx-lrow b{font:600 2.2rem/1.1 'Inter Tight',sans-serif;color:var(--emer);display:block}
.cx-lrow strong{font:600 1.15rem 'Inter Tight',sans-serif}
.cx-lbar{height:4px;background:var(--paper-3);border-radius:4px;margin-top:22px;overflow:hidden}
.cx-lbar i{display:block;height:100%;background:var(--emer);transform-origin:left;transform:scaleX(0)}

/* hub */
.cx-hub{padding:30px 0 90px}
.cx-grid{display:grid;grid-template-columns:330px 1fr;gap:26px;align-items:start}
.cx-list{background:#fff;border:1px solid var(--lineL);border-radius:24px;padding:22px 16px;position:sticky;top:96px;box-shadow:0 18px 44px rgba(43,22,8,.06)}
.cx-lh{font-size:1.35rem;font-weight:600;padding:0 10px 10px}
.cx-lg{margin:14px 10px 6px;font-size:.72rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--emer)}
.cx-row{width:100%;display:flex;align-items:center;gap:12px;padding:12px 12px;border:0;background:transparent;border-radius:14px;cursor:pointer;color:var(--ink);font:500 .95rem 'Inter',sans-serif;text-align:left;transition:background .2s,color .2s}
.cx-row span{flex:1}.cx-row .ic{width:22px;height:22px;color:var(--emer);flex:none}.cx-row .ar{width:16px;height:16px;color:var(--ink-3);transition:transform .25s}
.cx-row:hover{background:var(--paper-2)}.cx-row:hover .ar{transform:translateX(4px)}
.cx-row.on{background:var(--emer);color:#fff;box-shadow:0 10px 22px rgba(238,106,18,.3)}.cx-row.on .ic,.cx-row.on .ar{color:#fff}
.cx-row:focus-visible,.cx-chip:focus-visible,.dchip:focus-visible,.cx-b1:focus-visible,.cx-b2:focus-visible{outline:3px solid var(--emer-2);outline-offset:2px}
.cx-card{display:grid;grid-template-columns:1.15fr .85fr;background:#fff;border:1px solid var(--lineL);border-radius:28px;box-shadow:0 26px 60px rgba(43,22,8,.08);overflow:hidden}
.cx-cl{padding:34px 34px 30px}
.cx-ct{font-size:1.7rem;font-weight:600;margin-bottom:16px!important}
.cx-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:6px}
.cx-chip{display:inline-flex;align-items:center;gap:7px;padding:9px 15px;border-radius:999px;border:1.5px solid var(--lineL);background:#fff;color:var(--ink);font:500 .9rem 'Inter',sans-serif;cursor:pointer;transition:.2s}
.cx-chip .ic{width:17px;height:17px;color:var(--emer)}
.cx-chip:hover{border-color:var(--emer)}.cx-chip.on{background:var(--ink);border-color:var(--ink);color:#fff}.cx-chip.on .ic{color:var(--gold)}
.cx-hint{margin:8px 0 6px;font-size:.88rem;color:var(--ink-3);line-height:1.5;min-height:1.3em}
.cx-fields{display:flex;flex-direction:column;gap:24px;margin-top:18px}
.fd-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.fd-top>label{font-weight:500;font-size:.95rem;color:var(--ink-2)}
.num{display:inline-flex;align-items:center;gap:4px;border:1.5px solid var(--lineL);background:var(--paper);border-radius:12px;padding:7px 12px;transition:.2s}
.num:focus-within{border-color:var(--emer);box-shadow:0 0 0 4px rgba(238,106,18,.16);background:#fff}
.num input{border:0;background:transparent;outline:0;font:600 1.05rem 'Inter Tight',sans-serif;color:var(--ink);width:112px;text-align:right;min-width:0}
.num .u{font-weight:600;color:var(--ink-3);font-size:.9rem}
.fd-ten{display:flex;gap:8px}.fd-ten .num input{width:44px}
.fd-top .num input{width:clamp(70px,16vw,128px)}
.wd{display:block;margin-top:6px;color:var(--emer);font-weight:600;font-size:.85rem;min-height:1.2em}
.rg{position:relative;padding-bottom:22px}
.rg input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:6px;outline:0;margin:10px 0 0;cursor:pointer;background:linear-gradient(90deg,var(--emer) var(--p,0%),var(--paper-3) var(--p,0%))}
.rg input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:24px;border-radius:50%;background:#fff;border:6px solid var(--emer);box-shadow:0 4px 12px rgba(238,106,18,.4);cursor:grab}
.rg input[type=range]::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:#fff;border:6px solid var(--emer);box-shadow:0 4px 12px rgba(238,106,18,.4)}
.rg input[type=range]:focus-visible{box-shadow:0 0 0 4px rgba(238,106,18,.25)}
.tk{position:absolute;left:12px;right:12px;bottom:0;height:16px}
.tk span{position:absolute;transform:translateX(-50%);font-size:.72rem;color:var(--ink-3);white-space:nowrap}
.tk span:first-child{transform:translateX(-30%)}.tk span:last-child{transform:translateX(-80%)}
.fd-t .rg{padding-bottom:6px}
.fd-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.dchip{padding:7px 14px;border-radius:999px;border:1.5px solid var(--lineL);background:#fff;color:var(--ink-2);font:500 .85rem 'Inter',sans-serif;cursor:pointer;transition:.2s}
.dchip:hover{border-color:var(--emer)}.dchip.on{background:var(--emer);color:#fff;border-color:var(--emer)}

/* result */
.cx-res{background:linear-gradient(155deg,#ff9a4d 0%,#ee6a12 55%,#d9540a 100%);color:#fff;padding:34px 30px;display:flex;flex-direction:column;position:relative;overflow:hidden}
.cx-res::before{content:"";position:absolute;width:320px;height:320px;border-radius:50%;background:rgba(255,255,255,.14);right:-120px;top:-110px}
.cx-res>*{position:relative}
.cx-rtop span{display:inline-block;background:rgba(255,255,255,.2);padding:7px 14px;border-radius:999px;font-weight:600;font-size:.88rem}
.cx-rcap{margin-top:26px;font-size:.95rem;opacity:.95;font-weight:500}
.cx-rbig{font:600 clamp(2.4rem,4.4vw,3.6rem)/1.05 'Inter Tight',sans-serif;margin-top:6px;letter-spacing:-.03em;word-break:break-word}
.cx-rlines{margin:22px 0 0;display:flex;flex-direction:column;gap:11px}
.cx-rlines div{display:flex;justify-content:space-between;gap:14px;font-size:.93rem;padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.28)}
.cx-rlines dt{opacity:.92}.cx-rlines dd{margin:0;font-weight:600;text-align:right}
.cx-rnote{font-size:.78rem;line-height:1.5;opacity:.92;margin:16px 0 20px}
.cx-rbtn{margin-top:auto;display:flex;gap:10px;flex-wrap:wrap}
.cx-b1,.cx-b2{flex:1;min-width:120px;text-align:center;padding:14px 18px;border-radius:14px;font:600 .95rem 'Inter',sans-serif;cursor:pointer;text-decoration:none;transition:.2s}
.cx-b1{background:transparent;border:2px solid #fff;color:#fff}.cx-b1:hover{background:rgba(255,255,255,.18)}
.cx-b2{background:#fff;border:2px solid #fff;color:#c2540a}.cx-b2:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(0,0,0,.2)}
.cx-card.pulse .cx-res::before{animation:cxP .6s ease}
@keyframes cxP{from{transform:scale(.7);opacity:.2}to{transform:none}}

/* insights */
.cx-ins{display:grid;grid-template-columns:.8fr 1.2fr;gap:22px;margin-top:26px}
.cx-ins.one{grid-template-columns:1fr}
.cx-box{background:#fff;border:1px solid var(--lineL);border-radius:24px;padding:26px;box-shadow:0 14px 36px rgba(43,22,8,.05)}
.cx-box h3{font-size:1.15rem;font-weight:600;margin-bottom:16px!important}
.cx-bk{display:flex;gap:22px;align-items:center;flex-wrap:wrap}
.cx-ins.one .cx-bk{justify-content:center;gap:40px}
.cx-donut{width:170px;height:170px;transform:rotate(-90deg);flex:none}
.cx-donut circle{fill:none;stroke-width:16}.cx-donut .t{stroke:var(--paper-2)}.cx-donut .s{transition:stroke-dasharray .6s,stroke-dashoffset .6s}
.cx-leg{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;flex:1;min-width:190px}
.cx-leg li{display:grid;grid-template-columns:14px 1fr auto;gap:4px 10px;align-items:center;font-size:.9rem;color:var(--ink-2)}
.cx-leg s{width:12px;height:12px;border-radius:4px}.cx-leg b{color:var(--ink);font-weight:600;grid-column:2/3;grid-row:2}
.cx-leg em{color:var(--ink-3);font-size:.82rem;grid-row:1;grid-column:3}
.cx-chart{position:relative}
.cx-chart svg{width:100%;height:auto;display:block;touch-action:pan-y}
.cx-chart .gl line{stroke:var(--paper-3);stroke-width:1}.cx-chart text{font-size:11px;fill:var(--ink-3);font-family:'Inter',sans-serif}
.cx-chart .ar{fill:rgba(238,106,18,.16)}.cx-chart .ln{fill:none;stroke:var(--emer);stroke-width:3;stroke-linejoin:round}.cx-chart .ln2{fill:none;stroke:var(--ink);stroke-width:2.5;stroke-dasharray:5 4}
.cx-chart .cur{stroke:var(--ink-3);stroke-dasharray:3 3;opacity:0}.cx-chart .dot{fill:#fff;stroke:var(--emer);stroke-width:3;opacity:0}
.cx-chart .bi{fill:var(--emer);transform-box:fill-box;transform-origin:bottom;animation:cxB .7s both cubic-bezier(.2,.8,.2,1);animation-delay:var(--d)}
.cx-chart .bg{fill:#16a34a;transform-box:fill-box;transform-origin:bottom;animation:cxB .7s both cubic-bezier(.2,.8,.2,1);animation-delay:var(--d)}
@keyframes cxB{from{transform:scaleY(0)}to{transform:none}}
.tip{position:absolute;transform:translate(-50%,-100%);background:var(--ink);color:#fff;padding:9px 12px;border-radius:12px;font-size:.78rem;pointer-events:none;opacity:0;transition:opacity .15s;min-width:150px;box-shadow:0 10px 24px rgba(0,0,0,.25);z-index:3}
.tip.on{opacity:1}.tip b{display:block;margin-bottom:4px;color:var(--gold)}.tip span{display:flex;justify-content:space-between;gap:12px}.tip i{font-style:normal;font-weight:600}
.cx-chart .lg{display:flex;gap:18px;flex-wrap:wrap;margin:10px 0 0;font-size:.82rem;color:var(--ink-2)}.cx-chart .lg span{display:flex;align-items:center;gap:7px}.cx-chart .lg s{width:12px;height:12px;border-radius:4px}

/* table */
.cx-tw{margin-top:22px;background:#fff;border:1px solid var(--lineL);border-radius:24px;padding:24px;box-shadow:0 14px 36px rgba(43,22,8,.05)}
.cx-tw[hidden]{display:none}
.cx-th{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}.cx-th h3{font-size:1.15rem}
.cx-csv{padding:10px 16px;border-radius:12px;border:1.5px solid var(--emer);background:#fff;color:#c2540a;font:600 .88rem 'Inter',sans-serif;cursor:pointer}.cx-csv:hover{background:var(--emer);color:#fff}
.cx-tscroll{max-height:460px;overflow:auto;border-radius:14px;border:1px solid var(--lineL)}
.cx-tbl{width:100%;border-collapse:collapse;font-size:.9rem;min-width:620px}
.cx-tbl th{position:sticky;top:0;background:var(--paper-2);text-align:right;padding:12px 14px;font-weight:600;color:var(--ink);z-index:1}.cx-tbl th:first-child,.cx-tbl td:first-child{text-align:left}
.cx-tbl td{padding:11px 14px;text-align:right;border-top:1px solid var(--paper-3);color:var(--ink-2)}
.cx-tbl tr.yr{cursor:pointer;background:#fff}.cx-tbl tr.yr:hover{background:var(--paper)}.cx-tbl tr.yr td:first-child{font-weight:600;color:var(--ink)}
.chev{display:inline-block;width:8px;height:8px;border-right:2px solid var(--emer);border-bottom:2px solid var(--emer);transform:rotate(-45deg);margin-right:10px;transition:transform .2s}
.yr.open .chev{transform:rotate(45deg)}.cx-tbl tr.mo td{background:var(--paper);font-size:.85rem}
.cx-disc{margin:22px 4px 0;font-size:.82rem;line-height:1.6;color:var(--ink-3);max-width:900px}

/* cost of waiting */
.cw{background:linear-gradient(180deg,var(--paper) 0,#fff1df 100%);padding:90px 0}
.cw-stage{width:min(1100px,100% - 48px);margin-inline:auto;display:flex;flex-direction:column;gap:26px}
.cw.is-s{padding:0}.cw.is-s .cw-stage{position:sticky;top:0;height:100vh;justify-content:center;padding-top:70px}
.cw-h{font-size:clamp(2rem,4.6vw,3.6rem);font-weight:600;line-height:1.05;max-width:760px}.cw-sub{color:var(--ink-2);font-size:1.05rem;margin:12px 0 0;max-width:620px}
.cw-chart{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(14px,4vw,48px);align-items:end;height:min(46vh,360px);min-height:260px}
.cw-col{display:flex;flex-direction:column;justify-content:flex-end;height:100%;text-align:center;position:relative}
.cw-v{font:600 clamp(1.1rem,2.4vw,1.8rem) 'Inter Tight',sans-serif;color:var(--ink);margin-bottom:8px}
.cw-bar{height:calc(100% - 80px);display:flex;align-items:flex-end}
.cw-bar{position:relative}.cw-bar::before{content:"";width:100%;height:var(--h,0%);background:#16a34a;border-radius:16px 16px 6px 6px;position:absolute;bottom:0;left:0}
.cw-bar .a{position:absolute;left:0;bottom:0;width:100%;height:calc(var(--h,0%)*var(--hi,0));background:var(--emer);border-radius:16px 16px 6px 6px;z-index:1}
.cw-bar .b{display:none}
.cw-col b{margin-top:12px;font-weight:600;color:var(--ink)}.cw-col small{color:var(--ink-3);font-size:.8rem;min-height:1.2em}
.cw-leg{display:flex;gap:20px;font-size:.85rem;color:var(--ink-2);margin:0;flex-wrap:wrap}.cw-leg span{display:flex;gap:8px;align-items:center}.cw-leg s{width:12px;height:12px;border-radius:4px}.cw-leg .a{background:var(--emer)}.cw-leg .b{background:#16a34a}
.cw-out{font-size:1.05rem;color:var(--ink);margin:0;font-weight:500}.cw-out small{display:block;color:var(--ink-3);font-weight:400;margin-top:6px;font-size:.78rem}

/* how */
.hw{padding:90px 0;background:#fff}
.hw-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:56px;align-items:start}
.hw-hd{position:sticky;top:110px}.hw-hd h2{font-size:clamp(2rem,4vw,3.1rem);font-weight:600;line-height:1.05;margin:8px 0 14px!important}.hw-hd p{color:var(--ink-2);line-height:1.65}
.hw-list{display:flex;flex-direction:column;gap:12px}
.hw-i{border:1px solid var(--lineL);border-radius:18px;background:var(--paper);overflow:hidden}
.hw-i summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:14px;align-items:center;padding:18px 20px;font-weight:600;color:var(--ink)}
.hw-i summary::-webkit-details-marker{display:none}
.hw-i summary i{width:12px;height:12px;border-right:2px solid var(--emer);border-bottom:2px solid var(--emer);transform:rotate(45deg);transition:transform .25s;flex:none}
.hw-i[open] summary i{transform:rotate(-135deg)}.hw-i[open]{background:#fff;box-shadow:0 12px 30px rgba(43,22,8,.07)}
.hw-i>div{padding:0 20px 20px}
.hw-i code{display:block;background:var(--ink);color:#ffe9d2;padding:14px 16px;border-radius:12px;font:500 .92rem/1.6 'Inter',monospace;overflow-x:auto;margin-bottom:12px}
.hw-i p{margin:0;color:var(--ink-2);line-height:1.65;font-size:.93rem}

/* finale (pill copied locally; story.css is not loaded) */
.cxp .fin{background:#1d0f05}
.cxp .fin-canvas,.cxp .fin-glow{filter:hue-rotate(245deg)}
.cxp .fin-h{color:#fff}.cxp .fin-sub{color:rgba(255,255,255,.88)}
.cxp .pill{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.96);border:2px solid transparent;border-radius:999px;padding:6px 6px 6px 22px;max-width:480px;width:100%;margin:0 auto}
.cxp .pill input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:500 1rem 'Inter',sans-serif;color:#2b1608;padding:10px 0}
.cxp .pill .btn{white-space:nowrap}
.cxp .fin-links{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.cxp .fin .btn-ghost{color:#fff;border:1.5px solid rgba(255,255,255,.55);background:transparent;padding:12px 22px;border-radius:999px;text-decoration:none;font-weight:500}
.cxp .fin .btn-ghost:hover{background:#fff;color:#2b1608}

/* responsive */
@media (max-width:1100px){.cx-grid{grid-template-columns:1fr}.cx-list{position:static}.cx-lrows{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:4px 10px}.cx-lg{grid-column:1/-1}}
@media (max-width:991px){.cx-hgrid{grid-template-columns:1fr}.cx-live{max-width:420px}.cx-hero{padding-top:120px}.cx-card{grid-template-columns:1fr}.cx-ins{grid-template-columns:1fr}.hw-grid{grid-template-columns:1fr;gap:28px}.hw-hd{position:static}.cx-hbg b{display:none}}
@media (max-width:560px){.cx-in{width:calc(100% - 28px)}.cx-cl{padding:24px 18px}.cx-res{padding:26px 20px}.cx-lrows{grid-template-columns:1fr}.cx-lc{transform:none}.cx-box,.cx-tw{padding:18px}.cx-donut{width:140px;height:140px}.cx-lrow{gap:14px}.cx-ld{width:96px;height:96px}.cx-lrow b{font-size:1.7rem}.cw{padding:60px 0}.cw-chart{height:260px}.hw{padding:60px 0}.cxp .pill{flex-direction:column;border-radius:22px;padding:12px}.cxp .pill input{text-align:center;width:100%}.cxp .pill .btn{width:100%}}
@media (prefers-reduced-motion:reduce){.cx-rv{opacity:1;transform:none;transition:none}.cx-h1 .w>span{animation:none;transform:none}.cx-hbg b,.cx-chart .bi,.cx-chart .bg{animation:none}}