/* ROI calculator page. Hero with a live "idle time" donut, a form panel, a sticky orange result panel with
   count-up numbers, and the live formulas. transform / opacity / stroke only. */
.roi-hero { position: relative; overflow: hidden; isolation: isolate; margin-top: 88px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #ffe9d0 0%, #fff3e3 40%, #fffaf3 100%); }
.roi-hero-bg { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(to right, rgba(16,33,47,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(16,33,47,.05) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 90% at 78% 45%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 78% 45%, #000 15%, transparent 75%); }
.roi-hero::after { content: ""; position: absolute; z-index: -1; right: -8%; top: -20%; width: 680px; height: 680px; border-radius: 50%; background: radial-gradient(circle, rgba(247,134,30,.26), transparent 65%); filter: blur(60px); }
.roi-hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-block: 64px 72px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; border: 1px solid rgba(16,33,47,.1); background: rgba(255,255,255,.8); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #a65700; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.roi-hero h1 { margin: 22px 0 0; max-width: 700px; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.06; font-weight: 800; letter-spacing: -.035em; }
.sq { position: relative; display: inline-block; white-space: nowrap; color: var(--orange); }
.sq svg { position: absolute; left: 0; bottom: -12px; width: 100%; height: 14px; overflow: visible; }
.sq path { fill: none; stroke: var(--orange); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.in .sq path { animation: sqd 1.4s cubic-bezier(.65,0,.35,1) .7s forwards; }
@keyframes sqd { to { stroke-dashoffset: 0; } }
.roi-lead { margin: 20px 0 0; max-width: 540px; font-size: 18px; line-height: 1.6; color: var(--mute); }

.cur-toggle { position: relative; display: inline-flex; margin-top: 30px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 10px 24px -14px rgba(16,33,47,.4), 0 0 0 1px rgba(16,33,47,.08); }
.cur-toggle button { position: relative; z-index: 1; padding: 10px 22px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 700 14px Inter, sans-serif; color: var(--mute); transition: color .3s; }
.cur-toggle button[aria-pressed="true"] { color: #fff; }
.cur-pill { position: absolute; left: 0; top: 4px; bottom: 4px; border-radius: 999px; background: #0b2036; transition: transform .45s cubic-bezier(.34,1.3,.5,1), width .45s cubic-bezier(.34,1.3,.5,1); }

/* idle donut */
.idle { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin-left: auto; }
.idle svg { display: block; width: 100%; height: 100%; overflow: visible; }
.idle-bg { fill: #fff; stroke: rgba(16,33,47,.08); stroke-width: 40; }
.idle-run, .idle-idle { fill: none; stroke-width: 40; stroke-linecap: butt; transition: stroke-dasharray .8s cubic-bezier(.16,1,.3,1), stroke-dashoffset .8s cubic-bezier(.16,1,.3,1); }
.idle-run { stroke: var(--orange); }
.idle-idle { stroke: url(#hatch); }
.idle-orbit { transform-origin: 120px 120px; }
.in .idle-orbit { animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.idle-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 22%; }
.idle-c small { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.idle-c b { font-size: clamp(44px, 5.4vw, 66px); line-height: 1; font-weight: 800; letter-spacing: -.04em; color: #d1313a; font-variant-numeric: tabular-nums; }
.idle-c > span { margin-top: 6px; font-size: 13px; line-height: 1.35; font-weight: 600; color: #3a4a5a; }
.idle-k { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: 0 10px 22px -12px rgba(16,33,47,.5); font-size: 12px; font-weight: 800; }
.idle-k i { width: 10px; height: 10px; border-radius: 3px; }
.idle-k.run { left: -4%; bottom: 8%; } .idle-k.run i { background: var(--orange); }
.idle-k.idl { right: -2%; top: 8%; color: #d1313a; } .idle-k.idl i { background: repeating-linear-gradient(45deg, #e5484d 0 2px, #fff 2px 4px); }
.in .idle-k { animation: bob 5s ease-in-out infinite; } .in .idle-k.idl { animation-delay: -2.5s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* main grid */
.roi-main { padding: 72px 0 96px; background: #fdf6ec; }
.roi-grid { display: grid; grid-template-columns: 1fr 460px; gap: 48px; align-items: start; }

/* form panel */
.roi-form { padding: 36px 36px 28px; border-radius: 32px; background: #fff; box-shadow: 0 50px 90px -50px rgba(16,33,47,.4), 0 0 0 1px rgba(16,33,47,.04); }
.rf-head h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.rf-head p { margin: 6px 0 0; font-size: 14.5px; color: var(--mute); }
.rf-sec { margin: 30px 0 0; padding: 0; border: 0; min-width: 0; }
.rf-sec legend { padding: 0; margin-bottom: 14px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #c25e00; }
.rf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rf-grid.three { grid-template-columns: repeat(3, 1fr); }
.rf-sec > .rf, .rf-util + .rf { margin-top: 18px; max-width: calc(50% - 8px); }
.rf { display: grid; gap: 6px; align-content: start; min-width: 0; font-size: 13px; }
.rf em { font-style: normal; font-weight: 700; color: #2a3a49; }
.rf small { margin-top: -3px; font-size: 12px; line-height: 1.4; color: var(--mute); }
.rin { position: relative; display: block; }
.rin svg, .rin .cur { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #93a1af; pointer-events: none; transition: color .2s; font-size: 15px; font-weight: 700; width: auto; }
.rin svg { width: 18px; height: 18px; }
.rin input { width: 100%; font: 600 16px Inter, sans-serif; color: var(--ink); background: #f6f7f9; border: 1.5px solid #e9ecf0; border-radius: 13px; padding: 13px 14px 13px 42px; transition: border-color .2s, background-color .2s, box-shadow .2s; appearance: textfield; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.rin input::-webkit-outer-spin-button, .rin input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rin input:hover { background: #f1f3f6; }
.rin input:focus { outline: none; background: #fff; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(247,134,30,.16); }
.rin:focus-within svg, .rin:focus-within .cur { color: var(--orange); }
.rin.has-suf input { padding-right: 36px; }
.rin .suf { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 700; color: var(--mute); pointer-events: none; }
.rf-grid .rin input:not(:only-child) { }
.rin:not(:has(svg)):not(:has(.cur)) input { padding-left: 14px; }

/* utilisation slider */
.rf-util { margin-top: 22px; }
.rf-util-top { display: flex; align-items: baseline; justify-content: space-between; }
.rf-util-top em { font-style: normal; font-size: 13px; font-weight: 700; color: #2a3a49; }
.rf-util-top b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--orange); font-variant-numeric: tabular-nums; }
.rf-util small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--mute); }
.rsl { position: relative; height: 54px; margin-top: 10px; }
.rsl-track { position: absolute; left: 0; right: 0; top: 20px; height: 12px; border-radius: 12px; background: #eceff3; overflow: hidden; }
.rsl-fill, .rsl-after { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 12px; transition: width .35s cubic-bezier(.16,1,.3,1); }
.rsl-fill { background: linear-gradient(90deg, #f7861e, #ffb45c); z-index: 2; }
.rsl-after { background: repeating-linear-gradient(45deg, rgba(34,197,94,.55) 0 5px, rgba(34,197,94,.25) 5px 10px); z-index: 1; }
.rsl input { position: absolute; left: 0; right: 0; top: 8px; width: 100%; height: 36px; margin: 0; background: none; appearance: none; -webkit-appearance: none; z-index: 3; cursor: pointer; }
.rsl input::-webkit-slider-runnable-track { height: 36px; background: transparent; }
.rsl input::-moz-range-track { height: 36px; background: transparent; }
.rsl input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: 4px; border-radius: 50%; background: #fff; border: 5px solid var(--orange); box-shadow: 0 8px 16px -4px rgba(247,134,30,.7); transition: transform .2s; }
.rsl input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 5px solid var(--orange); box-shadow: 0 8px 16px -4px rgba(247,134,30,.7); }
.rsl input:active::-webkit-slider-thumb { transform: scale(1.15); }
.rsl input:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
.rsl-tag { position: absolute; right: 0; top: -6px; padding: 3px 10px; border-radius: 999px; background: #dcfce7; font-size: 11px; font-weight: 700; color: #15803d; }
.rsl-tag b { font-weight: 800; }

.rf-adv { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.rf-adv summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-size: 14px; font-weight: 800; }
.rf-adv summary::-webkit-details-marker { display: none; }
.rf-adv summary span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff3e3; color: #c25e00; font-size: 18px; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.rf-adv[open] summary span { transform: rotate(45deg); }
.rf-adv p { margin: 12px 0 14px; font-size: 13.5px; color: var(--mute); }

/* result panel */
.roi-res { position: sticky; top: 104px; padding: 30px 30px 24px; border-radius: 32px; color: #fff; background: linear-gradient(150deg, #f7861e 0%, #ee6f0b 100%); box-shadow: 0 50px 90px -40px rgba(238,111,11,.75); overflow: hidden; isolation: isolate; }
.roi-res::before { content: ""; position: absolute; z-index: -1; right: -90px; top: -110px; width: 320px; height: 320px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.35); }
.roi-res::after { content: ""; position: absolute; z-index: -1; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); }
.in.roi-res::before, .roi-res.in::before { animation: spin 40s linear infinite; }
.rs-top { display: flex; align-items: center; justify-content: space-between; }
.rs-label { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.9); }
.rs-live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rs-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.in .rs-live i { animation: lvlive2 1.8s infinite; }
@keyframes lvlive2 { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70%,100% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }
.rs-big { margin-top: 10px; }
.rs-big b { display: block; font-size: clamp(48px, 5.6vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 rgba(120,50,0,.18); }
.rs-sub { margin: 8px 0 0; font-size: 14.5px; color: rgba(255,255,255,.92); }

.rs-mach { margin-top: 22px; padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,.17); }
.rs-mach-t { display: flex; align-items: center; gap: 14px; }
.rs-mach-t b { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rs-mach-t span { font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.95); }
.rs-icons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mi { display: block; width: 28px; height: 28px; }
.mi svg { width: 100%; height: 100%; fill: rgba(255,255,255,.25); stroke: rgba(255,255,255,.75); stroke-width: 1.8; stroke-linecap: round; }
.mi.plus svg { fill: #fff; stroke: #fff; }
.mi.plus svg circle { fill: #ee6f0b; stroke: #ee6f0b; }
.mi-more { align-self: center; font-size: 12px; font-weight: 800; opacity: .85; }
.mi { animation: miin .5s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--i) * .045s); }
.mi.plus { animation: miin .5s cubic-bezier(.34,1.56,.64,1) both, miglow 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .045s), calc(var(--i) * .2s + 1s); }
@keyframes miin { from { opacity: 0; transform: scale(.3) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes miglow { 0%,100% { filter: none; } 50% { filter: drop-shadow(0 0 8px rgba(255,255,255,.95)); } }

.rs-rows { list-style: none; margin: 18px 0 0; padding: 0; }
.rr { position: relative; display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 16px 0 18px; }
.rr + .rr { border-top: 1px solid rgba(255,255,255,.28); }
.rr-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.2); }
.rr-ic svg { width: 20px; height: 20px; }
.rr-t strong { display: block; font-size: 15.5px; line-height: 1.25; }
.rr-t span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: rgba(255,255,255,.88); font-variant-numeric: tabular-nums; }
.rr-v { text-align: right; }
.rr-v b { display: block; font-size: 20px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rr-v small { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.85); }
.rr-bar { position: absolute; left: 54px; right: 0; bottom: 6px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.rr-bar u { display: block; height: 100%; border-radius: inherit; background: #fff; transform-origin: left; transform: scaleX(0); transition: transform .8s cubic-bezier(.16,1,.3,1); }

.rs-act { display: grid; gap: 10px; margin-top: 12px; }
.rs-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 20px; border-radius: 16px; background: #fff; color: #c25e00; font-size: 15.5px; font-weight: 800; box-shadow: 0 18px 30px -14px rgba(90,40,0,.6); transition: transform .2s, box-shadow .2s; }
.rs-btn:hover { transform: translateY(-2px); box-shadow: 0 24px 36px -14px rgba(90,40,0,.7); }
.rs-btn svg { transition: transform .25s; } .rs-btn:hover svg { transform: translateX(4px); }
.rs-btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.rs-btn.ghost:hover { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1.5px #fff; }
.rs-fine { margin: 16px 0 0; font-size: 12px; line-height: 1.55; color: rgba(255,255,255,.85); }

/* formulas */
.roi-how { padding: 88px 0 100px; background: #fff; }
.roi-how .phead h2 { font-size: clamp(30px, 3.6vw, 46px); }
.fx { list-style: none; margin: 44px 0 0; padding: 0; position: relative; display: grid; gap: 30px; max-width: 980px; }
.fx::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--orange), rgba(247,134,30,.2)); transform: scaleY(0); transform-origin: top; transition: transform 1.6s cubic-bezier(.65,0,.35,1) .4s; }
.fx.in::before { transform: scaleY(1); }
.fx li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 20px; align-items: start; }
.fx b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 15px; font-weight: 800; box-shadow: 0 10px 22px -8px rgba(247,134,30,.7); }
.fx strong { display: block; padding-top: 4px; font-size: 19px; letter-spacing: -.01em; }
.fx p { margin: 6px 0 0; max-width: 840px; font-size: 16px; line-height: 1.8; color: #3a4a5a; }
.fx em { font-style: normal; font-weight: 800; color: #c25e00; padding: 1px 7px; border-radius: 7px; background: #fff3e3; }
.fx p b { display: inline; width: auto; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; font-size: inherit; color: var(--ink); }

/* mobile sticky total */
.roi-bar { position: fixed; z-index: 44; left: 12px; right: 84px; bottom: 14px; display: none; align-items: baseline; gap: 8px; padding: 12px 16px; border-radius: 18px; background: #0b2036; color: #fff; box-shadow: 0 20px 36px -14px rgba(11,32,54,.7); transform: translateY(150%); transition: transform .5s cubic-bezier(.16,1,.3,1); }
.roi-bar.show { transform: none; }
.roi-bar span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9db0c3; }
.roi-bar b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #ffb45c; }
.roi-bar small { font-size: 11px; color: #9db0c3; }
.roi-bar a { margin-left: auto; font-size: 12.5px; font-weight: 800; color: #fff; text-decoration: underline; }

@media (max-width: 1100px) { .roi-grid { grid-template-columns: 1fr 400px; gap: 32px; } .roi-form { padding: 28px 24px; } }
@media (max-width: 900px) {
  .roi-hero-in { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 48px; }
  .idle { margin: 0 auto; width: min(100%, 300px); --rx: 0px !important; }
  .roi-grid { grid-template-columns: 1fr; }
  .roi-res { position: static; }
  .roi-main { padding: 40px 0 64px; }
  .roi-how { padding: 64px 0; }
  .roi-bar { display: flex; }
}
@media (max-width: 560px) {
  .rf-grid, .rf-grid.three { grid-template-columns: 1fr; }
  .rf-sec > .rf, .rf-util + .rf { max-width: none; }
  .roi-form { padding: 24px 18px 20px; border-radius: 26px; }
  .roi-res { padding: 24px 20px 20px; border-radius: 26px; }
  .rr { grid-template-columns: 36px 1fr auto; gap: 10px; }
  .rr-bar { left: 46px; }
  .fx li { gap: 14px; grid-template-columns: 38px 1fr; } .fx b { width: 38px; height: 38px; } .fx::before { left: 18px; }
  .fx p { font-size: 15px; }
  .idle-k { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .roi-hero *, .roi-main *, .roi-how *, .roi-hero *::before { animation: none !important; transition-duration: .01s !important; }
  .sq path { stroke-dashoffset: 0; } .fx::before { transform: scaleY(1); }
}

.rr-t span span { display: inline; }
.rsl input { border: 0; padding: 0; outline-offset: 4px; }
.roi-res { contain: paint; } .roi-res::before, .roi-res::after { max-width: none; }

/* mobile sticky total: single line, brand orange */
.roi-bar { background: linear-gradient(135deg, #f7861e, #ee6f0b); box-shadow: 0 20px 36px -14px rgba(238,111,11,.75); white-space: nowrap; }
.roi-bar span, .roi-bar small { color: rgba(255,255,255,.9); }
.roi-bar b { color: #fff; font-size: 21px; }
@media (max-width: 420px) { .roi-bar span { display: none; } .roi-bar { padding: 12px 16px; } }
