/* ============================================================
   Valuation calculator — page-specific styles
   ============================================================ */

.val-intro { padding: clamp(48px, 7vw, 84px) 0 30px; }
.val-intro h1 { margin-bottom: 16px; }
.val-intro .lead { max-width: 70ch; }

.val-section { padding: 40px 0 90px; }

.val-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 30px; align-items: start; }

/* ---- Input panel ---- */
.val-panel {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px;
}
.val-block { margin: 26px 0; padding-top: 24px; border-top: 1px solid var(--line); }
.val-block:first-of-type { border-top: 0; padding-top: 0; }
.val-block-title {
  font-family: var(--f-head); font-weight: 700; font-size: 1.08rem; color: #fff; margin-bottom: 16px;
}
.val-block-sub { font-family: var(--f-body); font-weight: 400; font-size: .82rem; color: var(--ink-mute); display: block; margin-top: 2px; }

/* money input with $ prefix */
.money-input { position: relative; }
.money-input::before {
  content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-weight: 600; pointer-events: none;
}
.money-input input { padding-left: 28px; }
.pct-input { position: relative; }
.pct-input::after {
  content: "%"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-weight: 600; pointer-events: none;
}

/* ---- Results panel ---- */
.val-results {
  position: sticky; top: 92px;
  background: linear-gradient(165deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); min-height: 320px;
}
.val-results-empty { text-align: center; padding: 40px 10px; }
.val-results-empty .ico {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 18px;
  background: rgba(245,191,34,.1); color: var(--gold); font-size: 1.6rem;
}
.val-results-empty h3 { color: #fff; }
.val-results-empty p { font-size: .92rem; }

.result-headline { text-align: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.result-headline .label { font-family: var(--f-sub); text-transform: uppercase; letter-spacing: 2px; font-size: .72rem; color: var(--ink-mute); }
.result-headline .value {
  font-family: var(--f-head); font-weight: 700; font-size: clamp(2.1rem, 5vw, 2.9rem); line-height: 1.1; margin: 8px 0 4px;
  background: var(--gold-grad-2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.result-headline .range { font-family: var(--f-sub); color: var(--ink-soft); font-size: .95rem; }
.result-headline .range b { color: #fff; }

.result-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; font-size: .95rem; }
.result-row + .result-row { border-top: 1px dashed rgba(255,255,255,.06); }
.result-row .k { color: var(--ink-soft); }
.result-row .v { font-family: var(--f-sub); font-weight: 600; color: #fff; }

.result-sub { font-family: var(--f-head); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); margin: 22px 0 6px; }

/* adjustment chips */
.adj-list { list-style: none; padding: 0; margin: 6px 0 0; }
.adj-list li {
  display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--ink-soft);
  padding: 7px 0; border-top: 1px dashed rgba(255,255,255,.06);
}
.adj-list li:first-child { border-top: 0; }
.adj-tag {
  font-family: var(--f-sub); font-weight: 600; font-size: .72rem; padding: 2px 8px; border-radius: 20px; white-space: nowrap; margin-top: 1px;
}
.adj-up { background: rgba(76,175,80,.14); color: #9fe0a3; }
.adj-down { background: rgba(244,67,54,.12); color: #f0a49c; }
.adj-flat { background: rgba(170,203,239,.12); color: var(--blue-soft); }

.result-note { font-size: .78rem; color: var(--ink-mute); margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }

.result-cta { margin-top: 20px; }

/* method bar (visualize range) */
.range-bar { height: 8px; border-radius: 6px; background: var(--bg); position: relative; margin: 16px 0 6px; overflow: hidden; }
.range-bar .fill { position: absolute; top: 0; bottom: 0; background: var(--gold-grad-2); border-radius: 6px; }
.range-scale { display: flex; justify-content: space-between; font-size: .74rem; color: var(--ink-mute); font-family: var(--f-sub); }

@media (max-width: 940px) {
  .val-grid { grid-template-columns: 1fr; }
  .val-results { position: static; }
}

@media (max-width: 620px) {
  .val-intro { padding: 40px 0 20px; }
  .val-section { padding: 28px 0 64px; }
  .val-panel, .val-results { padding: 22px 18px; }
  .val-block { margin: 20px 0; padding-top: 18px; }
  .result-headline .value { font-size: 2rem; }
}
