/*
 * The ROI band on the pricing page (T-196, audit T-185; on the home page until 3 Oct 2026). Its own file;
 * it borrows the site's tokens (--cream, the serif) and the page's dark ground. Phone first: the sliders come first and a summary bar sticks to the bottom of the
 * screen while they are moved; from 821px the sliders and the outputs sit in two columns.
 */
#roi .roi-head{ max-width:62ch; }
#roi .roi-eyebrow{ margin:0 0 1.1em; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:rgba(238,240,208,.7); }
#roi .roi-head h2{ margin:0 0 .5em; }

.roi-grid{ display:grid; grid-template-columns:1fr; gap:28px; margin-top:clamp(28px,3vw,48px); align-items:start; }
.roi-col{ min-width:0; }
.roi-col-h{ margin:0 0 18px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.5); }

/* ---------- The sliders: label and value on one line, the track under them ---------- */
.roi-in{ display:grid; gap:14px; margin:0; padding:0; border:0; }
.roi-field{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 14px; align-items:baseline; padding:10px 0 2px; border-top:1px solid rgba(255,255,255,.08); }
.roi-field:first-child{ border-top:0; padding-top:0; }
.roi-field label{ font-size:15px; line-height:1.4; color:#fff; }
.roi-field output{ font-family:var(--serif); font-size:24px; line-height:1; color:var(--cream); font-variant-numeric:tabular-nums; white-space:nowrap; }
.roi-tag{ display:inline-block; margin-left:.5em; padding:2px 8px; border-radius:999px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--cream); background:rgba(238,240,208,.12); box-shadow:inset 0 0 0 1px rgba(238,240,208,.25); vertical-align:middle; }
.roi-field input[type="range"]{ grid-column:1 / -1; width:100%; height:32px; margin:0; accent-color:var(--cream); cursor:pointer; background:transparent; }
.roi-field input[type="range"]:focus-visible{ outline:2px solid var(--cream); outline-offset:4px; border-radius:6px; }
.roi-hint{ margin:14px 0 0; font-size:13px; line-height:1.55; color:rgba(255,255,255,.5); max-width:52ch; }

/* ---------- The outputs: a definition list in the aria-live region ---------- */
.roi-example{ margin:0 0 14px; font-size:14px; line-height:1.55; color:rgba(255,255,255,.66); max-width:46ch; }
.roi-results{ margin:0; display:grid; }
.roi-results > div{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:12px 0; border-top:1px solid rgba(255,255,255,.08); }
.roi-results dt{ font-size:15px; color:rgba(255,255,255,.72); }
.roi-results dd{ margin:0; font-family:var(--serif); font-size:clamp(24px,2vw,32px); line-height:1; color:#fff; font-variant-numeric:tabular-nums; white-space:nowrap; text-align:right; }
.roi-results .roi-net{ margin-top:6px; padding:18px 0 16px; border-top:1px solid rgba(238,240,208,.45); border-bottom:1px solid rgba(238,240,208,.45); }
.roi-results .roi-net dt{ color:#fff; font-weight:500; }
.roi-results .roi-net dd{ font-size:clamp(38px,3.4vw,56px); color:var(--cream); }
.roi-notes{ margin:14px 0 0; font-size:13.5px; line-height:1.55; color:#f3c98b; max-width:52ch; }
.roi-noscript{ margin:14px 0 0; font-size:13.5px; line-height:1.55; color:rgba(255,255,255,.5); }

/* ---------- The summary bar: on a phone it floats at the bottom while the sliders are moved ---------- */
.roi-bar{ position:sticky; bottom:14px; z-index:3; display:flex; justify-content:center; align-items:baseline; gap:.45em; margin:0; padding:12px 18px; border-radius:999px; background:rgba(20,20,16,.9); color:rgba(255,255,255,.72); font-size:14px; box-shadow:inset 0 0 0 1px rgba(238,240,208,.25), 0 14px 40px rgba(0,0,0,.5); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); white-space:nowrap; }
.roi-bar b{ font-family:var(--serif); font-weight:400; font-size:20px; color:var(--cream); font-variant-numeric:tabular-nums; }

/* ---------- The formula, one click away (open by default on a phone, see roi-band.js) ---------- */
.roi-how{ margin-top:clamp(28px,3vw,44px); border-top:1px solid rgba(255,255,255,.08); }
.roi-how summary{ cursor:pointer; list-style:none; display:flex; align-items:center; gap:10px; padding:18px 0; font-size:15px; font-weight:500; color:#fff; }
.roi-how summary::-webkit-details-marker{ display:none; }
.roi-how summary::before{ content:""; width:8px; height:8px; border-right:1.5px solid var(--cream); border-bottom:1.5px solid var(--cream); transform:rotate(-45deg); transition:transform .2s ease; flex:none; }
.roi-how[open] summary::before{ transform:rotate(45deg); }
.roi-how summary:focus-visible{ outline:2px solid var(--cream); outline-offset:4px; border-radius:6px; }
.roi-how-body{ padding:0 0 10px; display:grid; gap:18px; }
.roi-formula{ margin:0; padding:14px 18px; border-radius:12px; background:rgba(255,255,255,.04); box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); list-style:none; display:grid; gap:2px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12.5px; line-height:1.6; color:rgba(255,255,255,.72); }
.roi-formula li{ padding:5px 0; border-top:1px solid rgba(255,255,255,.06); overflow-wrap:anywhere; }
.roi-formula li:first-child{ border-top:0; }
.roi-formula b{ font-weight:500; color:#fff; }
.roi-how p{ margin:0; font-size:14.5px; line-height:1.65; color:rgba(255,255,255,.66); max-width:70ch; }
.roi-how code{ font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.92em; color:rgba(255,255,255,.85); }

@media (min-width:821px){
  .roi-grid{ grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:clamp(36px,5vw,96px); }
  .roi-bar{ display:none; }
  .roi-how-body{ grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:clamp(24px,3vw,48px); align-items:start; }
}
@media (max-width:600px){
  .roi-field label{ font-size:14px; }
  .roi-field output{ font-size:21px; }
  .roi-results dt{ font-size:14px; }
  .roi-bar{ font-size:13px; padding:11px 16px; }
}
@media (prefers-reduced-motion:reduce){ .roi-how summary::before{ transition:none; } }
