/* ============================================================================
   ROI CALCULATOR — loaded only by calculator-roi.php (after theme.css)
   ============================================================================ */
.roi-templates { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-bottom: var(--space-6); }
.roi-templates-label { font-family: var(--font-mono); font-size: .8rem; color: var(--text-3); }
.roi-templates .chip[aria-pressed="true"] { background: #0A0A0A; color: #fff; border-color: #0A0A0A; }
.roi-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.roi-side { position: sticky; top: calc(var(--header-height) + 16px); display: flex; flex-direction: column; gap: var(--space-4); }
.roi-form { padding: clamp(22px, 3vw, 36px); }
.roi-fs { border: 0; padding: 0; margin: 0 0 var(--space-6); min-width: 0; }
.roi-fs legend { font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.7); padding: 0; margin-bottom: var(--space-3); }
.roi-fs .form-optional { font-weight: 400; color: rgba(255,255,255,.5); }
.roi-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.roi-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.roi-row .form-group, .roi-fs .form-group { margin-bottom: var(--space-3); }
.roi-form label { color: #fff; font-size: .86rem; font-weight: 600; }
.roi-form .form-hint { color: rgba(255,255,255,.58); font-family: var(--font-mono); font-size: .72rem; line-height: 1.5; }
.roi-form select option { color: #000; }
.roi-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.1); margin-bottom: var(--space-3); }
.roi-seg label { margin: 0; cursor: pointer; }
.roi-seg input { position: absolute; opacity: 0; pointer-events: none; }
.roi-seg span { display: grid; place-items: center; min-height: 40px; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; text-align: center; color: rgba(255,255,255,.8); transition: background-color var(--dur-fast), color var(--dur-fast); }
.roi-seg input:checked + span { background: #fff; color: #000; }
.roi-seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.roi-seg--sm span { min-height: 34px; font-size: .78rem; font-weight: 500; }
.roi-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-5); }
.roi-bench { margin-top: var(--space-4); min-height: 1.5em; }

/* gated results */
.roi-gated { position: relative; border-radius: var(--r-tile); }
.roi-gated-body { transition: filter .4s var(--ease-out), opacity .4s var(--ease-out); }
.roi-gated[data-locked="true"] .roi-gated-body { filter: blur(9px) saturate(.8); opacity: .75; user-select: none; pointer-events: none; }
.roi-lock { position: absolute; inset: 0; z-index: 3; display: none; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); text-align: center; padding: var(--space-5); }
.roi-gated[data-locked="true"] > .roi-lock { display: flex; }
.roi-lock i { font-size: 1.6rem; color: var(--text-1); }
.roi-lock p { font-weight: 600; color: var(--text-1); margin: 0; max-width: 26ch; }

.roi-verdict { padding: var(--space-5); border-radius: var(--r-tile); background: #0A0A0A; color: #fff; border-left: 6px solid var(--mz-green); margin-bottom: var(--space-4); }
.roi-verdict[data-tone="ok"] { border-left-color: var(--mz-yellow); }
.roi-verdict[data-tone="warn"] { border-left-color: var(--mz-coral); }
.roi-verdict[data-tone="bad"] { border-left-color: #E2586C; }
.roi-verdict-title { color: #fff; font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; margin: 0 0 6px; }
.roi-verdict-text { color: rgba(255,255,255,.82); font-family: var(--font-mono); font-size: .8rem; line-height: 1.7; margin: 0; }
.roi-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-4); }
.roi-kpi { display: flex; flex-direction: column; gap: 2px; padding: var(--space-4); border-radius: 18px; background: #0A0A0A; color: #fff; border: 1px solid rgba(255,255,255,.14); }
.roi-kpi-v { font-size: clamp(1.15rem, 1rem + .6vw, 1.55rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; }
.roi-kpi[data-tone="pos"] .roi-kpi-v { color: #A6E3A1; }
.roi-kpi[data-tone="neg"] .roi-kpi-v { color: #FF9AA2; }
.roi-kpi-l { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.85); margin-top: 6px; }
.roi-kpi-s { font-family: var(--font-mono); font-size: .68rem; color: rgba(255,255,255,.55); }
.roi-list { display: block; margin: 0; padding: 0 var(--space-2); }
.roi-list div { display: flex; justify-content: space-between; gap: var(--space-4); padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .86rem; }
.roi-list dt { color: var(--text-3); font-family: var(--font-mono); font-size: .76rem; }
.roi-list dd { margin: 0; font-weight: 600; color: var(--text-1); text-align: right; overflow-wrap: anywhere; }
.roi-share { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.roi-share .form-status { flex: 1 1 100%; margin: var(--space-2) 0 0; }

.roi-detail { margin-top: clamp(40px, 6vw, 80px); }
.roi-block { margin-bottom: clamp(36px, 5vw, 64px); }
.roi-block h2 { font-size: var(--step-3); margin-bottom: var(--space-2); }
.roi-note { font-family: var(--font-mono); font-size: .8rem; color: var(--text-3); max-width: 70ch; margin-bottom: var(--space-4); }
.roi-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; font-size: .86rem; }
.roi-table th, .roi-table td { padding: 10px 14px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--border); }
.roi-table thead th { background: #0A0A0A; color: #fff; font-weight: 600; font-size: .78rem; }
.roi-table thead th:first-child { border-top-left-radius: 14px; }
.roi-table thead th:last-child { border-top-right-radius: 14px; }
.roi-table tbody th { text-align: left; font-weight: 500; color: var(--text-2); background: transparent; font-family: var(--font-mono); font-size: .76rem; }
.roi-table td { color: var(--text-1); font-variant-numeric: tabular-nums; }
.roi-table .is-now { background: var(--surface-2); }
.roi-table thead .is-now { background: #3B3B3B; }
.roi-table .pos { color: #1B7F4B; font-weight: 600; }
.roi-table .neg { color: #B8222F; font-weight: 600; }
.roi-table .row-net td, .roi-table .row-net th { border-top: 2px solid var(--border-strong); font-weight: 600; }
.roi-table tr.is-best th, .roi-table tr.is-best td { background: rgba(48,160,96,.12); }
.roi-grid td { text-align: center; font-weight: 600; color: var(--text-1); }
.roi-grid td.is-now { outline: 3px solid #0A0A0A; outline-offset: -3px; }
.roi-break-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.roi-break-grid > div { display: flex; flex-direction: column; gap: 4px; padding: var(--space-5); border-radius: 18px; background: #0A0A0A; color: #fff; }
.roi-break-v { font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; }
.roi-break-l { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.9); }
.roi-break-t { font-family: var(--font-mono); font-size: .72rem; line-height: 1.55; color: rgba(255,255,255,.6); }
.roi-guide { max-width: 760px; margin-inline: auto; }
.roi-guide h2 { font-size: var(--step-3); }
.roi-guide h3 { margin-top: var(--space-6); }
.roi-guide p, .roi-guide li { color: var(--text-2); }
.roi-guide ul { padding-left: 1.2em; list-style: disc; }
.roi-sources { font-family: var(--font-mono); font-size: .76rem; color: var(--text-3) !important; }

/* email gate */
.roi-dialog { margin: auto; width: min(480px, calc(100vw - 24px)); padding: clamp(24px, 4vw, 38px); border: 1px solid rgba(255,255,255,.18); border-radius: 26px; background: #0A0A0A; color: #fff; overflow: visible; }
.roi-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.roi-dialog[open] { animation: dialog-in .35s var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.roi-dialog .eyebrow, .roi-dialog h2 { color: #fff; }
.roi-dialog h2 { font-size: 1.7rem; margin-bottom: var(--space-3); }
.roi-dialog-text { font-family: var(--font-mono); font-size: .8rem; color: rgba(255,255,255,.72); margin-bottom: var(--space-5); }
.roi-dialog label { color: #fff; font-size: .86rem; font-weight: 600; }
.roi-dialog input[type="email"] { width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); color: #fff; border-radius: 14px; }
.roi-dialog-close { position: absolute; top: 12px; right: 12px; margin: 0; }
.roi-dialog-close button { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 1.3rem; line-height: 1; }
.roi-skip { display: block; width: 100%; margin-top: var(--space-3); padding: 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); color: #fff; background: transparent; font-weight: 600; }
.roi-skip:hover { background: #fff; color: #000; }
.roi-dialog-fine { font-family: var(--font-mono); font-size: .7rem; line-height: 1.6; color: rgba(255,255,255,.55); margin: var(--space-4) 0 0; }
.roi-dialog-fine a { color: #fff; text-decoration: underline; }

@media (max-width: 1000px) { .roi-layout { grid-template-columns: 1fr; } .roi-side { position: static; } .roi-break-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .roi-row, .roi-row--3, .roi-break-grid { grid-template-columns: 1fr; } .roi-seg { grid-auto-flow: row; border-radius: 22px; } }
