/* ROI calculator page styles — /roi */
/* Owns: all .roi-* component styles. Does NOT modify global theme.css variables. */

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.roi-page {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  font-family: 'IBM Plex Mono', monospace;
}

/* ── Navigation ─────────────────────────────────────────────────────────────── */
.roi-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  background: rgba(8, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.roi-nav-brand {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.05em;
  text-decoration: none;
}
.roi-nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.roi-nav-link {
  font-size: 0.78rem;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}
.roi-nav-link:hover { color: var(--fg); }
.roi-nav-cta {
  font-size: 0.78rem;
  color: #fff;
  background: var(--accent);
  padding: 0.4rem 0.9rem;
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: opacity 0.15s;
}
.roi-nav-cta:hover { opacity: 0.85; }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.roi-hero {
  padding: 5.5rem 2rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.roi-hero-inner { max-width: 700px; }
.roi-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.roi-h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.roi-lead {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 620px;
}
.roi-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.roi-badge {
  font-size: 0.68rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
}

/* ── Main two-column layout ─────────────────────────────────────────────────── */
.roi-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem 8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 780px) {
  .roi-main { grid-template-columns: 1fr; }
}

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.roi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.roi-card-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.roi-card-sub {
  font-size: 0.72rem;
  color: var(--fg-dim);
  margin: -0.75rem 0 1rem;
  line-height: 1.5;
}

/* ── Sliders ────────────────────────────────────────────────────────────────── */
.roi-field {
  margin-bottom: 1.4rem;
}
.roi-field:last-child { margin-bottom: 0; }
.roi-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
  cursor: default;
}
.roi-val-display {
  font-size: 0.85rem;
  color: var(--fg);
  font-weight: 500;
  min-width: 2.5rem;
  text-align: right;
}
.roi-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  outline: none;
  cursor: pointer;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid rgba(8,12,16,0.8);
}
.roi-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid rgba(8,12,16,0.8);
}
.roi-range-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--fg-dim);
  margin-top: 0.3rem;
}

/* ── Project mix checkboxes ─────────────────────────────────────────────────── */
.roi-mix-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.roi-mix-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.15s, background 0.15s;
}
.roi-mix-item:has(.roi-mix-cb:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.roi-mix-cb {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.roi-mix-label {
  font-size: 0.78rem;
  color: var(--fg-muted);
  flex: 1;
}
.roi-mix-speed {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
}

/* ── Share box ──────────────────────────────────────────────────────────────── */
.roi-share-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}
.roi-share-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.7rem;
}
.roi-share-row {
  display: flex;
  gap: 0.6rem;
}
.roi-share-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.45rem 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--fg-muted);
  min-width: 0;
}
.roi-share-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  padding: 0.45rem 0.9rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--fg);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.roi-share-btn:hover { background: rgba(255,255,255,0.1); }
.roi-share-hint {
  font-size: 0.65rem;
  color: var(--fg-dim);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* ── Result card ────────────────────────────────────────────────────────────── */
.roi-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 2rem 1.75rem 1.5rem;
  margin-bottom: 1rem;
}
.roi-result-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.roi-result-big {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 700;
  color: #22c55e; /* green — savings */
  line-height: 1;
  margin-bottom: 0.25rem;
}
.roi-result-sub {
  font-size: 0.72rem;
  color: var(--fg-dim);
  margin-bottom: 1.5rem;
}
.roi-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.roi-metric {
  background: var(--bg-card);
  padding: 1rem 0.75rem;
  text-align: center;
}
.roi-metric-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.2rem;
  line-height: 1;
}
.roi-metric-label {
  font-size: 0.62rem;
  color: var(--fg-dim);
  line-height: 1.3;
}

/* ── Bar chart ──────────────────────────────────────────────────────────────── */
.roi-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.roi-chart-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
}
.roi-chart {
  display: flex;
  align-items: flex-end;
  gap: 2.5rem;
  padding: 0 1rem;
  height: 220px;
}
.roi-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.roi-bar-wrap {
  flex: 1;
  display: flex;
  align-items: flex-end;
  width: 100%;
  justify-content: center;
}
.roi-bar {
  width: 56px;
  border-radius: 3px 3px 0 0;
  transition: height 0.35s ease;
}
.roi-bar-without {
  background: rgba(232, 93, 4, 0.55);
  border: 1px solid rgba(232, 93, 4, 0.8);
}
.roi-bar-with {
  background: rgba(34, 197, 94, 0.4);
  border: 1px solid rgba(34, 197, 94, 0.7);
}
.roi-bar-name {
  font-size: 0.65rem;
  color: var(--fg-dim);
  margin-top: 0.6rem;
  text-align: center;
  line-height: 1.3;
}
.roi-bar-cost {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ── Methodology ────────────────────────────────────────────────────────────── */
.roi-method {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.roi-method-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
  cursor: pointer;
  list-style: none;
  transition: color 0.15s;
}
.roi-method-toggle:hover { color: var(--fg); }
.roi-method-toggle::-webkit-details-marker { display: none; }
.roi-method-arrow { font-size: 0.65rem; transition: transform 0.2s; }
details[open] .roi-method-arrow { transform: rotate(180deg); }
.roi-method-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}
.roi-method-p {
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin: 0.9rem 0 0.75rem;
}
.roi-method-spacer { margin-top: 1.25rem; }
.roi-method-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
  color: var(--fg-muted);
}
.roi-method-table th {
  text-align: left;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0.75rem 0.4rem 0;
}
.roi-method-table td {
  padding: 0.45rem 0.75rem 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: top;
}
.roi-method-link {
  color: var(--accent);
  text-decoration: none;
}
.roi-method-link:hover { text-decoration: underline; }

/* ── Lead capture card ──────────────────────────────────────────────────────── */
.roi-lead-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.roi-lead-card--highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(232,93,4,0.15);
}
.roi-lead-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.roi-lead-sub {
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.roi-lead-row {
  display: flex;
  gap: 0.6rem;
}
.roi-lead-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  padding: 0.55rem 0.9rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--fg);
  min-width: 0;
  transition: border-color 0.15s;
}
.roi-lead-input:focus {
  outline: none;
  border-color: var(--accent);
}
.roi-lead-btn {
  background: var(--accent);
  border: none;
  border-radius: 3px;
  padding: 0.55rem 1.2rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.roi-lead-btn:hover:not(:disabled) { opacity: 0.85; }
.roi-lead-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.roi-lead-success {
  font-size: 0.78rem;
  color: #22c55e;
  padding: 0.5rem 0;
}
.roi-lead-error {
  font-size: 0.75rem;
  color: #f87171;
  padding: 0.5rem 0;
  line-height: 1.5;
}
.roi-lead-error a { color: var(--accent); }

/* ── Sticky CTA bar ─────────────────────────────────────────────────────────── */
.roi-sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: rgba(13, 17, 23, 0.97);
  border-top: 1px solid var(--border-strong);
  padding: 1rem 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  backdrop-filter: blur(12px);
}
.roi-sticky-bar--visible {
  transform: translateY(0);
}
.roi-sticky-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.roi-sticky-text {
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.roi-sticky-text strong {
  color: #22c55e;
  font-weight: 600;
}
.roi-sticky-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.roi-sticky-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1.25rem;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.roi-sticky-cta:hover { opacity: 0.85; }
.roi-sticky-link {
  font-size: 0.78rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.roi-sticky-link:hover { color: var(--fg); }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.roi-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  background: var(--bg);
}
.roi-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.roi-footer-brand {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.05em;
}
.roi-footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.roi-footer-links a {
  font-size: 0.72rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.roi-footer-links a:hover { color: var(--fg); }
.roi-footer-note {
  font-size: 0.65rem;
  color: var(--fg-dim);
  line-height: 1.6;
  max-width: 600px;
}

/* ── Plan selector ──────────────────────────────────────────────────────────── */
.roi-plan-card { padding-bottom: 1.25rem; }
.roi-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.roi-plan-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}
.roi-plan-item--active {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.roi-plan-rb {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.roi-plan-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg);
}
.roi-plan-price {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
}
.roi-plan-note {
  font-size: 0.6rem;
  color: var(--fg-dim);
  line-height: 1.3;
}

/* ── Field hint ─────────────────────────────────────────────────────────────── */
.roi-field-hint {
  font-size: 0.62rem;
  color: var(--fg-dim);
  line-height: 1.4;
  margin-top: 0.35rem;
}

/* ── Headline card ──────────────────────────────────────────────────────────── */
.roi-headline-card {
  background: linear-gradient(135deg, rgba(232,93,4,0.08), rgba(34,197,94,0.06));
  border: 1px solid rgba(232,93,4,0.25);
  border-radius: 6px;
  padding: 1.1rem 1.5rem;
  margin-bottom: 1rem;
}
.roi-headline-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  color: var(--fg-muted);
  line-height: 1.4;
}
.roi-headline-text strong {
  color: #22c55e;
}

/* ── CTA card ───────────────────────────────────────────────────────────────── */
.roi-cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}
.roi-cta-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.4rem;
}
.roi-cta-sub {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.roi-cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.roi-cta-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.roi-cta-primary:hover { opacity: 0.85; }
.roi-cta-secondary {
  background: transparent;
  color: var(--fg-muted);
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.82rem;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.roi-cta-secondary:hover { border-color: var(--fg-muted); color: var(--fg); }

/* ── Demo link (top of result block) ────────────────────────────────────────── */
.roi-demo-link {
  margin-bottom: 0.75rem;
  text-align: right;
}
.roi-demo-link-a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent, #E85D04);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}
.roi-demo-link-a:hover { opacity: 0.8; }

/* ── Mobile responsive ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .roi-nav-links { gap: 0.75rem; }
  .roi-nav-link { display: none; }
  .roi-nav-link:last-of-type { display: block; }
  .roi-sticky-text { font-size: 0.72rem; }
  .roi-metrics-grid { grid-template-columns: 1fr 1fr; }
  .roi-chart { gap: 1.5rem; padding: 0; }
  .roi-plan-grid { grid-template-columns: 1fr 1fr 1fr; }
  .roi-cta-row { flex-direction: column; align-items: stretch; }
  .roi-cta-primary, .roi-cta-secondary { text-align: center; }
}
