/* Revenue estimator section. All classes prefixed revenue-. */
.revenue { background: var(--bg); }
.revenue-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.revenue-controls { background: var(--butter); padding: 40px; display: grid; gap: 34px; min-width: 0; }
.revenue-field { min-width: 0; border: 0; }
.revenue-field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.revenue-field-top label, .revenue-label { font-weight: 600; line-height: 1.3; }
.revenue-label { margin-bottom: 12px; }
.revenue-field-top output { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.revenue-scale { display: flex; justify-content: space-between; font-size: .8rem; color: #3B3D44; margin-top: 4px; }

.revenue input[type="range"] { --revenue-fill: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; display: block; }
.revenue input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(to right, var(--ink) var(--revenue-fill), rgba(17,17,17,.2) var(--revenue-fill)); }
.revenue input[type="range"]::-moz-range-track { height: 6px; background: rgba(17,17,17,.2); }
.revenue input[type="range"]::-moz-range-progress { height: 6px; background: var(--ink); }
.revenue input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--orange); border: 3px solid var(--ink); }
.revenue input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--orange); border: 3px solid var(--ink); }
.revenue input[type="range"]:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.revenue-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.revenue-seg-btn { font: 600 .95rem/1.25 var(--sans); padding: 14px 12px; min-height: 56px; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; border-radius: 0; text-align: center; transition: background .2s, color .2s; overflow-wrap: anywhere; }
.revenue-seg-btn:hover { background: #FFF6D6; }
.revenue-seg-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }

.revenue-output { background: var(--soft); border: 1px solid var(--ink); padding: 40px; min-width: 0; }
.revenue-tag { display: inline-block; font-size: .75rem; font-weight: 700; background: var(--orange); color: #fff; padding: 4px 10px; margin-bottom: 14px; }
.revenue-kicker { color: var(--muted); font-size: .95rem; }
.revenue-big { line-height: 1; margin: 6px 0 14px; }
.revenue-big b { font-size: clamp(2.8rem, 7vw, 4.6rem); font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.revenue-big span { font-size: 1.15rem; color: var(--muted); }
.revenue-missing { font-weight: 600; color: #B23A06; margin-bottom: 28px; }
.revenue-missing.is-full { color: var(--muted); font-weight: 400; }

.revenue-funnel { list-style: none; display: grid; gap: 18px; }
.revenue-row-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: .95rem; }
.revenue-row-head b { font-weight: 600; font-variant-numeric: tabular-nums; }
.revenue-track { height: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.revenue-bar { height: 100%; width: 100%; transform-origin: left center; }
.revenue-bar-1 { background: var(--peri); }
.revenue-bar-2 { background: var(--lilac); }
.revenue-bar-3 { background: #BFD9A8; }
.revenue-bar-4 { background: var(--orange); }
.revenue-legend { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .82rem; color: var(--muted); }
.revenue-legend i { width: 14px; height: 10px; background: #fff; border: 1px solid var(--line); flex: none; }
.revenue-note { margin: 24px 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.revenue-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 960px) {
  .revenue-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .revenue-controls, .revenue-output { padding: 24px; }
  .revenue-controls { gap: 28px; }
  .revenue-output .btn { width: 100%; }
}
