/* Revenue Check flow. Uses tokens from site.css */
.check-page { min-height: 100vh; display: flex; flex-direction: column; }
.check-wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 22px; }
main.check-wrap { flex: 1; padding-top: 40px; padding-bottom: 80px; }

.check-head { border-bottom: 1px solid var(--line-dark); padding: 18px 0 16px; position: sticky; top: 0; background: var(--asphalt); z-index: 10; }
.check-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.check-head .logo { font-size: 1.6rem; }
.step-label { margin: 0; font-weight: 600; font-size: .98rem; color: var(--steel-light); }

/* progress: a call waveform that fills as you go */
.wave { display: flex; align-items: center; gap: 4px; height: 30px; }
.wave i { flex: 1; min-width: 3px; border-radius: 2px; background: #33383e; transition: background-color .25s; }
.wave i.on { background: var(--hivis); }

.screen h1, .screen h2 { font-size: clamp(2.3rem, 6vw, 3.6rem); font-weight: 800; margin-bottom: .4em; }
.screen h1:focus, .screen h2:focus { outline: none; }
.lede { font-size: 1.2rem; color: #d9dbd6; }
.q-label { font-weight: 600; font-size: 1.15rem; margin: 28px 0 12px; }
.q-kicker { margin: 0 0 8px; font-weight: 600; }
.fine { font-size: .98rem; margin-top: 18px; }

.options { display: grid; gap: 12px; margin: 24px 0 16px; }
.options-grid { grid-template-columns: 1fr 1fr; margin-top: 10px; }
.options-3 { grid-template-columns: repeat(3, 1fr); }
.opt {
  text-align: left; font: 500 1.15rem/1.35 var(--font-body); color: var(--paper);
  background: var(--asphalt-2); border: 2px solid var(--line-dark); border-radius: 10px;
  padding: 18px 20px; min-height: 64px; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.opt:hover { border-color: #6b7178; }
.opt[aria-pressed="true"] { border-color: var(--hivis); background: #2c2d25; }

.back {
  background: none; border: 0; color: var(--steel-light); font: 500 1.05rem var(--font-body);
  padding: 10px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px;
}
.back:hover { color: var(--paper); }
.back-inline { margin-bottom: 36px; }

.field { margin: 0 0 30px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: 1.15rem; margin-bottom: 10px; padding: 0; }
.field input[type="number"], .gfield input {
  width: 100%; font: 700 1.6rem var(--font-display); color: var(--paper);
  background: var(--asphalt-2); border: 2px solid var(--line-dark); border-radius: 10px; padding: 12px 16px;
}
.field input[type="number"]:focus, .gfield input:focus { border-color: var(--hivis); outline: none; }
.money { position: relative; }
.money span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font: 700 1.6rem var(--font-display); color: var(--steel-light); }
.money input { padding-left: 36px !important; }
.hint { font-size: .98rem; color: var(--steel-light); margin: 8px 0 0; }
.slider-row { display: flex; align-items: center; gap: 18px; }
.slider-row input[type="range"] { flex: 1; accent-color: var(--hivis); height: 28px; }
.slider-row output { font: 800 1.9rem var(--font-display); color: var(--hivis); min-width: 3.2ch; text-align: right; }

.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; }
.nav-row .btn { min-width: 200px; }
.error { color: #ff8a80; font-weight: 600; margin: 0 0 12px; }

/* ---------- results ---------- */
.res-kicker { font-weight: 600; margin: 0 0 10px; }
.results .res-head { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; }
.res-number { display: block; font-size: clamp(4rem, 14vw, 7.5rem); line-height: .95; color: var(--paper); margin: 8px 0 4px; }
.res-jobs { font-size: 1.45rem; font-weight: 600; color: var(--missed); margin: 0 0 6px; }

.now { background: var(--asphalt-2); border: 1px solid var(--line-dark); border-radius: 14px; padding: 22px 24px; margin: 24px 0 12px; }
.now h3 { font-size: 1.45rem; margin-bottom: 14px; }
.now-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.now-list li { position: relative; padding-left: 24px; font-size: 1.05rem; line-height: 1.45; }
.now-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 11px; border-radius: 50%; background: var(--missed); }
.now-list li.ok::before { background: var(--booked); }
.now-list strong { color: var(--paper); font-weight: 600; }
.now-total { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line-dark); font-weight: 600; font-size: 1.15rem; }

.gate-wrap { position: relative; margin-bottom: 40px; }
.detail { transition: filter .4s; }
.detail.locked { filter: blur(7px); pointer-events: none; user-select: none; max-height: 420px; overflow: hidden; }
.detail h3 { font-size: 1.5rem; margin-bottom: 14px; }

.leaks { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 18px; }
.leak-top { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; margin-bottom: 6px; }
.leak-top span:last-child { font-family: var(--font-display); font-size: 1.35rem; }
.leak-bar { height: 12px; background: #33383e; border-radius: 6px; overflow: hidden; }
.leak-bar i { display: block; height: 100%; background: var(--missed); border-radius: 6px; }
.leak.is-biggest .leak-top span:first-child::after { content: "Biggest leak"; margin-left: 10px; color: var(--missed); font-size: .9rem; }
.leak-note { font-size: .95rem; color: var(--steel-light); margin: 6px 0 0; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.panel { background: var(--asphalt-2); border: 1px solid var(--line-dark); border-radius: 12px; padding: 22px; }
.panel p { font-size: 1.02rem; margin-bottom: 0; }
.panel .rating { font: 800 2.4rem/1 var(--font-display); margin: 0 0 10px !important; }
.panel .rating.high { color: var(--missed); }
.panel .rating.medium { color: var(--hivis); }
.panel .rating.low { color: var(--booked); }
.fixes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fixes li { padding-left: 26px; position: relative; font-size: 1.02rem; }
.fixes li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--booked); }
.fixes li.is-focus { font-weight: 600; }

.guide-dl { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; border: 2px solid var(--hivis); border-radius: 12px; padding: 22px; }
.guide-dl p { margin: 0; font-size: 1rem; }
.guide-dl h3 { margin-bottom: 6px; }

.gate {
  position: relative; margin: -396px auto 0;
  width: min(560px, 100%); background: var(--paper); color: var(--ink);
  border-radius: 14px; padding: 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.gate h3 { font-size: 1.9rem; margin-bottom: 6px; }
.gate p { font-size: 1.02rem; }
.gate .fine { font-size: .9rem; color: var(--steel); margin: 12px 0 0; }
.gate-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.gfield label { display: block; font-weight: 600; font-size: .98rem; margin-bottom: 6px; }
.gfield input { font: 500 1.1rem var(--font-body); color: var(--ink); background: #fff; border-color: #c9cbc5; padding: 12px 14px; }
.gfield input:focus { border-color: var(--ink); }
.gfield input[aria-invalid="true"] { border-color: var(--missed); }
.gate .btn { width: 100%; }
.gate .error { color: #b3261e; }
.gate :focus-visible { outline-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.book { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--asphalt-2); border: 1px solid var(--line-dark); border-radius: 14px; padding: 28px; margin-bottom: 28px; }
.book h3 { font-size: 1.8rem; margin-bottom: 8px; }
.book p { font-size: 1.05rem; margin-bottom: 8px; }
.book-guarantee { color: var(--steel-light); font-size: .98rem !important; }

.how-calc summary { cursor: pointer; font-weight: 600; color: var(--steel-light); padding: 8px 0; }
.how-calc div { font-size: .98rem; color: #cfd2cd; }
.how-calc p { margin: 10px 0; }

.check-foot { padding: 24px 0 32px; border-top: 1px solid var(--line-dark); font-size: .95rem; }
.check-foot p { margin: 0; }

@media (max-width: 640px) {
  main.check-wrap { padding-top: 28px; }
  .options-grid, .options-3 { grid-template-columns: 1fr; }
  .detail-grid, .gate-fields { grid-template-columns: 1fr; }
  .guide-dl, .book { grid-template-columns: 1fr; }
  .nav-row .btn { min-width: 0; flex: 1; width: auto; }
}
