.roi-lab, .robot-faq { padding: 80px 0; color: #161816; }
.roi-lab *, .robot-faq * { box-sizing: border-box; }
.roi-lab__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 44px; margin-bottom: 36px; }
.roi-lab h2, .robot-faq h2 { font: 800 clamp(34px, 3.5vw, 56px)/1.04 RobotoFlex, sans-serif; text-transform: uppercase; letter-spacing: -.025em; }
.roi-lab__heading > p { max-width: 470px; font-size: 17px; line-height: 1.55; color: #626662; }
.roi-lab__panel { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.6fr); background: #fff; border: 1px solid #e5e7e5; border-radius: 14px; overflow: hidden; }
.roi-settings { padding: 32px; background: #fafbfa; border-right: 1px solid #e5e7e5; }
.roi-settings h3 { font: 600 23px/1.25 Onest, sans-serif; margin: 0 0 32px; letter-spacing: -.03em; }
.roi-field { margin: 0 0 30px; padding: 0; border: 0; min-width: 0; }
.roi-field > label, .roi-field > legend { display: block; padding: 0; margin-bottom: 13px; font-size: 14px; line-height: 1.45; font-weight: 500; }
.roi-number { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #dce0dc; border-radius: 7px; padding: 9px 14px; }
.roi-number:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.roi-number input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; font: 600 26px/1.4 Onest, sans-serif; font-variant-numeric: tabular-nums; color: #242824; }
.roi-number > span { color: #777; font-size: 18px; }
.roi-slider { --fill: 32%; display: block; width: 100%; height: 6px; margin: 22px 0 14px; padding: 0; appearance: none; -webkit-appearance: none; border-radius: 5px; background: linear-gradient(to right, var(--brand) var(--fill), #e1e5e1 var(--fill)); cursor: pointer; touch-action: pan-y; }
.roi-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border: 3px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 2px 5px #0001; }
.roi-slider::-moz-range-thumb { width: 15px; height: 15px; border: 3px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.roi-slider:focus-visible { outline: 2px solid var(--brand); outline-offset: 8px; }
.roi-limits { display: flex; justify-content: space-between; color: #777; font-size: 11px; }
.roi-segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 5px; background: #eef0ee; border-radius: 8px; }
.roi-segments label { position: relative; cursor: pointer; }
.roi-segments input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.roi-segments span { display: flex; justify-content: center; align-items: center; min-height: 42px; font-size: 15px; border-radius: 5px; color: #626662; transition: background .2s, color .2s; }
.roi-segments input:checked + span { color: #101810; background: var(--brand); font-weight: 600; }
.roi-segments input:focus-visible + span { outline: 2px solid #242824; outline-offset: 1px; }
.roi-field__hint { margin-top: 11px; color: #777; font-size: 11px; line-height: 1.55; }
.roi-field__capacity { margin-top: 13px; color: #161816; font-size: 14px; line-height: 1.55; }
.roi-field__capacity strong { color: var(--brand); font-weight: 600; }
.roi-reset { padding: 6px 0; border: 0; background: none; font: 400 12px/1.5 Onest, sans-serif; text-decoration: underline; text-underline-offset: 4px; color: #626662; cursor: pointer; }
.roi-outcome { padding: 32px; min-width: 0; }
.roi-numbers { display: grid; grid-template-columns: 1.4fr 1fr; gap: 25px; padding-bottom: 27px; margin-bottom: 28px; border-bottom: 1px solid #e5e7e5; }
.roi-primary { padding-right: 20px; border-right: 1px solid #e5e7e5; }
.roi-numbers p { font-size: 13px; color: #606660; line-height: 1.4; margin-bottom: 10px; }
.roi-numbers strong { display: block; font: 600 clamp(27px, 2.8vw, 44px)/1.12 Onest, sans-serif; letter-spacing: -.045em; color: var(--brand); white-space: nowrap; font-variant-numeric: tabular-nums; }
.roi-numbers strong small { font-size: 19px; letter-spacing: -.03em; }
.roi-payback strong, .roi-primary.is-negative strong { color: #242824; }
.roi-numbers > div > span { display: block; margin-top: 10px; font-size: 11px; color: #777; line-height: 1.5; }
.roi-chart__heading { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.roi-chart h3 { font: 600 20px/1.4 Onest, sans-serif; letter-spacing: -.025em; }
#roi-chart-period { font-size: 12px; color: #626662; white-space: nowrap; }
.roi-chart__help { margin-top: 7px; font-size: 12px; color: #777; line-height: 1.5; }
.roi-chart__legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; margin: 20px 0 16px; font-size: 12px; color: #626662; }
.roi-chart__legend span { display: inline-flex; gap: 8px; align-items: center; }
.roi-chart__legend i { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--brand); }
.roi-chart__legend span:last-child i { border-top: 2px dashed #777; }
#roi-chart { display: block; width: 100%; height: 310px; cursor: crosshair; touch-action: pan-y; overflow: visible; }
#roi-chart-grid path { fill: none; stroke: #eceeec; stroke-width: 1; }
#roi-chart-area { fill: var(--brand-soft); }
#roi-chart-labor { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; }
#roi-chart-robot { fill: none; stroke: #777; stroke-width: 2; stroke-dasharray: 6 5; }
#roi-chart-cursor { stroke: #bbb; stroke-width: 1; stroke-dasharray: 3 4; }
#roi-chart-dot { fill: var(--brand); stroke: #fff; stroke-width: 2; }
#roi-chart-budget-dot { fill: #777; stroke: #fff; stroke-width: 2; }
#roi-chart-cross path { stroke: var(--brand); stroke-width: 1; stroke-dasharray: 3 4; }
#roi-chart-cross circle { fill: #fff; stroke: var(--brand); stroke-width: 2; }
#roi-chart text { fill: #777; font: 11px Onest, sans-serif; }
.roi-chart__insight { margin: 12px 0 18px; padding-left: 13px; border-left: 3px solid var(--brand); font-size: 11px; line-height: 1.6; color: #666; }
.roi-chart__scrub { display: flex; align-items: center; gap: 18px; font-size: 13px; color: #444; }
.roi-chart__scrub > span { flex-shrink: 0; width: 72px; }
.roi-chart__scrub b { font-weight: 600; }
.roi-chart__scrub .roi-slider { margin: 16px 0; height: 4px; }
.roi-chart__values { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; padding-top: 19px; margin-top: 12px; border-top: 1px solid #e5e7e5; font-size: 11px; line-height: 1.5; color: #777; }
.roi-chart__values strong { display: block; margin-top: 5px; font-size: clamp(13px,1.25vw,18px); letter-spacing: -.03em; color: #242824; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
#roi-month-difference { color: var(--brand); }
#roi-month-difference.is-negative { color: #242824; }
.roi-lab__footer { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 32px; border-top: 1px solid #e5e7e5; padding: 24px 32px; }
.roi-lab__footer p { max-width: 580px; font-size: 12px; color: #777; line-height: 1.6; }
.roi-cta { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: space-between; gap: 35px; border: 0; border-radius: 6px; padding: 17px 24px; color: #fff; background: var(--brand); font: 500 14px/1.5 Onest, sans-serif; cursor: pointer; transition: box-shadow .2s; }
.roi-cta:hover { box-shadow: 0 0 0 4px var(--brand-soft); }
.roi-assumptions { margin-top: 20px; max-width: 890px; font-size: 12px; line-height: 1.7; color: #777; }
.roi-assumptions summary { width: fit-content; font-weight: 500; color: #444; cursor: pointer; }
.roi-assumptions p { margin-top: 12px; }
.roi-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.roi-request-summary { margin: 15px 0; padding: 15px; border-radius: 5px; background: var(--brand-soft); color: #444; font-size: 13px; line-height: 1.65; }
dialog textarea[name="question"] { width: 100%; min-height: 100px; margin-bottom: 12px; resize: vertical; border: 1px solid #ddd; border-radius: 5px; padding: 14px; font: 400 15px/1.5 Onest, sans-serif; }
/* FAQ: preparation steps alongside practical questions. */
.robot-arm-scene { display: block; height: 100%; width: 100%; overflow: visible; }
.robot-faq { padding: 72px 0 80px; }
.robot-faq__layout { display: grid; grid-template-columns: .9fr 1.2fr; align-items: start; gap: 26px 64px; }
.robot-faq__guide h2 { font-size: clamp(38px, 3.7vw, 56px); line-height: 1.06; }
.robot-faq__intro { max-width: 370px; margin-top: 20px; color: #626662; font-size: 15px; line-height: 1.65; }
.faq-start { max-width: 510px; margin-top: 26px; padding: 26px; border: 1px solid #dfe4df; border-radius: 12px; background: #fff; }
.faq-start h3 { margin: 0; font: 600 22px/1.3 Onest, sans-serif; letter-spacing: -.025em; }
.faq-start__steps { list-style: none; margin: 24px 0; padding: 0; }
.faq-start__steps li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; position: relative; padding-bottom: 22px; }
.faq-start__steps li:last-child { padding-bottom: 0; }
.faq-start__steps li:not(:last-child)::before { content: ''; position: absolute; top: 36px; bottom: 6px; left: 14px; width: 1px; background: #dfe4df; }
.faq-start__number { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--brand); border-radius: 50%; color: #161b16; font: 500 14px/1 Onest, sans-serif; background: var(--brand-soft); }
.faq-start h4 { margin: 2px 0 5px; font: 500 16px/1.5 Onest, sans-serif; }
.faq-start__steps p { margin: 0; color: #626662; font-size: 13px; line-height: 1.65; }
.faq-start__action { display: flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 18px; border-radius: 5px; background: var(--brand); color: #081008; text-align: center; font: 500 14px/1.5 Onest, sans-serif; text-decoration: none; transition: box-shadow .2s; }
.faq-start__action:hover { box-shadow: inset 0 0 0 2px #101810; }
.robot-faq__contact { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 23px; border-top: 1px solid #dfe3df; }
.robot-faq__contact h3 { font: 600 19px/1.4 Onest, sans-serif; margin-bottom: 5px; }
.robot-faq__contact p { font-size: 13px; line-height: 1.65; color: #666; }
.robot-faq__contact a { display: inline-flex; gap: 25px; align-items: center; min-height: 44px; color: #252925; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; flex-shrink: 0; }
.robot-faq__questions { display: flex; flex-direction: column; gap: 10px; }
.robot-faq__item { border: 1px solid #e5e7e5; border-radius: 8px; background: #fff; transition: background .25s, border-color .25s; }
.robot-faq__item[open] { border-color: var(--brand-line); background: var(--brand-soft); }
.robot-faq__question { position: relative; display: flex; align-items: center; list-style: none; padding: 21px 58px 21px 24px; cursor: pointer; font: 500 18px/1.4 Onest, sans-serif; letter-spacing: -.025em; }
.robot-faq__question::-webkit-details-marker { display: none; }
.robot-faq__question::before, .robot-faq__question::after { content: ''; position: absolute; right: 28px; top: 50%; width: 14px; height: 1.5px; background: var(--brand); transition: transform .25s; }
.robot-faq__question::after { transform: rotate(90deg); }
.robot-faq__item[open] .robot-faq__question::after { transform: rotate(0); }
.robot-faq__answer { padding: 0 48px 23px 24px; font-size: 15px; line-height: 1.75; color: #555; }
.robot-faq__answer p + p { margin-top: 14px; }
.robot-faq__answer ul { padding-left: 20px; list-style: disc; }
.robot-faq__item[open] .robot-faq__answer { animation: faq-answer-in .3s ease-out; }
@keyframes faq-answer-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.robot-faq button:focus-visible, .robot-faq a:focus-visible, .robot-faq summary:focus-visible, .roi-lab button:focus-visible, .roi-assumptions summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }

@media (max-width: 1100px) {
  .roi-settings { padding: 26px; }
  .roi-outcome { padding: 24px; }
  .roi-lab__heading { align-items: flex-start; }
  .roi-lab__heading > p { max-width: 390px; font-size: 15px; }
  .roi-numbers { gap: 17px; }
  .roi-numbers strong { font-size: 30px; }
  .robot-faq__layout { gap: 40px; }
  .robot-faq__question { font-size: 18px; }
}
@media (max-width: 850px) {
  .roi-lab__panel { grid-template-columns: 1fr; }
  .roi-settings { border-right: 0; border-bottom: 1px solid #e5e7e5; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .roi-settings h3, .roi-reset { grid-column: 1 / -1; margin: 0; text-align: left; }
  .roi-field { margin-bottom: 0; }
  .roi-chart__values strong { font-size: 18px; }
}
@media (max-width: 760px) {
  .roi-lab, .robot-faq { padding: 55px 0; }
  .roi-lab__heading { display: block; margin-bottom: 27px; }
  .roi-lab__heading > p { margin-top: 20px; font-size: 15px; }
  .roi-lab__heading > p br { display: none; }
  .roi-settings { padding: 24px; }
  .roi-settings h3 { font-size: 21px; }
  .roi-number input { font-size: 24px; }
  .roi-outcome { padding: 22px 18px; }
  .roi-numbers { gap: 14px; padding-bottom: 23px; margin-bottom: 23px; grid-template-columns: 1.35fr 1fr; }
  .roi-numbers strong { font-size: clamp(23px, 6.3vw, 36px); }
  .roi-numbers strong small { font-size: 14px; }
  .roi-numbers p { font-size: 11px; }
  .roi-primary { padding-right: 12px; }
  .roi-numbers > div > span { font-size: 10px; }
  .roi-lab__footer { flex-direction: column; align-items: stretch; gap: 18px; padding: 24px; }
  .roi-lab__footer p { font-size: 11px; }
  .roi-cta { font-size: 13px; padding: 15px 18px; }
  .roi-assumptions { font-size: 11px; }
  .robot-faq__layout { grid-template-columns: 1fr; gap: 26px; }
  .robot-faq__guide h2 { font-size: 40px; }
  .robot-faq__intro { margin-top: 15px; font-size: 14px; }
  .faq-start { max-width: none; margin-top: 22px; padding: 22px; }
  .faq-start h3 { font-size: 21px; }
  .robot-faq__contact { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 22px; }
  .robot-faq__contact h3 { font-size: 17px; }
  .robot-faq__contact p { font-size: 12px; }
  .robot-faq__question { font-size: 17px; padding: 23px 49px 23px 20px; }
  .robot-faq__question::before, .robot-faq__question::after { right: 21px; width: 12px; }
  .robot-faq__answer { padding: 0 24px 23px 20px; font-size: 14px; }
}
@media (max-width: 520px) {
  .roi-settings { display: block; }
  .roi-settings h3, .roi-field { margin-bottom: 24px; }
  .roi-chart h3 { font-size: 18px; }
  .roi-chart__legend { font-size: 11px; margin: 18px 0 12px; }
  #roi-chart { height: 250px; }
  .roi-chart__values { grid-template-columns: 1fr 1fr; gap: 15px; }
  .roi-chart__values > :last-child { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid #eee; }
  .roi-chart__values strong { font-size: 16px; }
  .roi-chart__values > :nth-child(2) { text-align: right; }
  .roi-chart__values > :last-child strong { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .roi-lab *, .robot-faq * { animation: none !important; transition: none !important; }
}
