/* Digital signage ROI calculator. Complements styles.css and maram-tools-kit.css. */
.roi-hero-visual { display: flex; flex-direction: column; gap: 16px; }
.roi-mock { position: relative; z-index: 1; padding: 22px; border-radius: 20px; background: rgba(255,255,255,.97); box-shadow: 0 24px 60px rgba(0,0,0,.25); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.roi-mock-k { padding: 14px; border-radius: 14px; background: linear-gradient(135deg, var(--ink), var(--deep)); }
.roi-mock-k span { display: block; color: rgba(255,255,255,.7); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.roi-mock-k b { color: #fff; font-size: 1.5rem; letter-spacing: -.03em; }
.roi-mock-k.is-g { background: #f0fdf4; } .roi-mock-k.is-g span { color: #15803d; } .roi-mock-k.is-g b { color: #15803d; }
.roi-mock-chart { grid-column: 1 / -1; width: 100%; height: auto; background: var(--soft); border-radius: 14px; }
.roi-mock-legend { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 750; color: var(--muted); }
.roi-mock-legend i { width: 14px; height: 5px; border-radius: 3px; display: inline-block; } .roi-mock-legend .o { background: #f97316; } .roi-mock-legend .b { background: #0a66c2; margin-left: 10px; }

.roi-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 26px; align-items: start; }
.roi-results { position: sticky; top: 140px; }
.roi-example-note { margin: 4px 0 4px; font-size: .88rem; padding: 10px 14px; border-radius: 12px; background: #fff7ed; color: #9a3412; }
.roi-example-note strong { color: inherit; }
.roi-field label { min-height: 2.6em; display: flex; align-items: flex-end; line-height: 1.3; }
.roi-input { position: relative; display: flex; align-items: center; }
.roi-input input { width: 100%; border: 1px solid var(--border); border-radius: 12px; background: var(--soft); padding: 12px 14px; font-weight: 750; color: var(--ink); }
.roi-input input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(10,102,194,.12); }
.roi-input.has-pre input { padding-left: 30px; }
.roi-input.has-post input { padding-right: 62px; }
.roi-unit { position: absolute; left: 13px; color: var(--muted); font-weight: 800; pointer-events: none; font-size: .92rem; }
.roi-unit-r { left: auto; right: 12px; font-size: .78rem; }
.roi-hint { margin-top: 10px; font-size: .86rem; font-weight: 650; }
.roi-hint b { color: var(--ink); }
.roi-screens { font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.roi-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.roi-kpis .mt-kpi { min-width: 0; }
.roi-kpis .mt-kpi strong { font-size: clamp(1.25rem, 2.2vw, 1.7rem); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mt-kpi.is-neg strong { color: #fca5a5; }
.roi-chart-wrap { margin-top: 18px; padding: 12px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.roi-chart svg { width: 100%; height: auto; display: block; }
.roi-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 8px 6px 2px; font-size: .8rem; font-weight: 750; color: #334155; }
.roi-legend i, .roi-table th i { display: inline-block; width: 14px; height: 5px; border-radius: 3px; margin-right: 7px; vertical-align: middle; }
.roi-detail { margin-top: 28px; }
.roi-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.roi-table th, .roi-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: .94rem; }
.roi-table thead th { font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 850; background: var(--soft); }
.roi-table td { font-weight: 750; color: #334155; font-variant-numeric: tabular-nums; }
.roi-table tbody th { color: var(--ink); font-weight: 850; }
.roi-table tr.is-hl { background: #f0f7ff; } .roi-table tr.is-hl td { color: var(--ink); font-weight: 850; }
.roi-table tr:last-child th, .roi-table tr:last-child td { border-bottom: 0; }
.roi-two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 24px; }
.roi-h3 { font-size: 1.1rem; margin-bottom: 14px; }
.roi-bars { display: grid; gap: 14px; }
.roi-bar-row { display: grid; grid-template-columns: 130px 1fr 120px; gap: 12px; align-items: center; font-size: .86rem; font-weight: 750; color: #334155; }
.roi-bar-row em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.roi-bar-track { position: relative; height: 26px; border-radius: 8px; background: var(--soft); overflow: hidden; }
.roi-bar-track b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; z-index: 2; }
.roi-bar-track b.is-y3 { opacity: .3; z-index: 1; }
.roi-bars-key { margin-top: 10px; font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.roi-bars-key b { display: inline-block; width: 14px; height: 10px; border-radius: 3px; background: #0a66c2; } .roi-bars-key b.is-y3 { opacity: .3; margin-left: 10px; }
.roi-breakdown { display: grid; gap: 8px; }
.roi-breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--soft); font-size: .9rem; }
.roi-breakdown span { color: #334155; font-weight: 650; } .roi-breakdown b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 1040px) { .roi-layout { grid-template-columns: 1fr; } .roi-results { position: static; } }
@media (max-width: 720px) {
  .roi-two { grid-template-columns: 1fr; }
  .roi-table { min-width: 0; }
  .roi-table, .roi-table tbody, .roi-table tr, .roi-table th, .roi-table td { display: block; width: 100%; }
  .roi-table thead { display: none; }
  .roi-table tbody th { padding: 14px 16px 6px; border-bottom: 0; }
  .roi-table td { display: flex; justify-content: space-between; padding: 4px 16px; border-bottom: 0; }
  .roi-table td::before { content: attr(data-label); color: var(--muted); font-weight: 700; font-size: .84rem; }
  .roi-table tr { border-bottom: 1px solid var(--border); padding-bottom: 10px; }
  .roi-bar-row { grid-template-columns: 1fr; gap: 6px; } .roi-bar-row em { text-align: left; }
  .roi-field label { min-height: 0; }
  .roi-kpis .mt-kpi { padding: 14px; }
  .roi-kpis .mt-kpi strong { font-size: 1.25rem; }
}
