/* "What's my home worth?" (only built when the valuationTool switch is on). The site is always light. Loads after site.css. */
.vt-eyebrow { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.vt-hint { font-size: 14px; color: var(--muted); }
.vt-link { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; color: var(--accent); font-weight: 600; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; }
.vt-link:hover { color: var(--text); text-decoration: underline; }
#vt button.btn { font-family: inherit; cursor: pointer; }
#vt button.btn-primary, #vt button.btn-clay { border: 0; }
#vt button:disabled { opacity: .6; cursor: default; }
#vt button.btn-outline { background: transparent; } /* a <button> otherwise paints the browser's grey */
.vt-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.vt-actions .btn { min-height: 48px; }
.vt-problem { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 12px 14px; font-weight: 500; }

/* Landing */
.vt-hero { position: relative; overflow: hidden; background: radial-gradient(ellipse 90% 70% at 85% 20%, #1B5560 0%, #0E3B45 60%, #0A2E37 100%); color: var(--bg); padding: 32px 0 36px; }
/* Decoration only (hidden from screen readers): map contours, a street grid, the dotted route with homes along it. Inline SVG, no images. */
.vt-deco { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vt-deco-wide { display: none; }
.vt-hero-grid { position: relative; display: grid; gap: 22px; }
.vt-start-wrap { position: relative; min-width: 0; }
.vt-sample { display: none; }
html:not(.js) .vt-sample { display: none; }
.vt-hero-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vt-hero .vt-eyebrow { align-self: flex-start; color: var(--text); background: #8AD3CE; padding: 5px 10px; border-radius: 999px; font-size: 13px; }
.vt-hero h1 { font-size: 38px; line-height: 1.08; font-weight: 700; }
.vt-lead { font-size: 17px; line-height: 1.45; }
.vt-hero .vt-lead { color: #D7E4E2; max-width: 30ch; }
.vt-steps-inline { display: none; }
.vt-card { background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vt-hero .vt-card { border: 0; border-radius: 14px; }
.vt-hero .vt-start { position: relative; z-index: 1; box-shadow: 0 0 0 6px rgba(138, 211, 206, .14), 0 20px 40px rgba(0, 0, 0, .3); }
.vt-card h2 { font-size: 22px; }
.vt-field { display: flex; flex-direction: column; gap: 6px; }
.vt-field label { font-weight: 600; }
.vt-field input, .vt-field select { height: 52px; width: 100%; border: 1.5px solid var(--edge); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 18px; color: var(--text); background: #fff; }
.vt-field input[aria-invalid], .vt-field select[aria-invalid] { border-color: var(--warn-ink); border-width: 2.5px; }
.vt-error { color: var(--warn-ink); font-weight: 600; font-size: 15px; }
.vt-error::before { content: "Problem: "; }
.vt-note { font-size: 14px; color: var(--muted); }
html:not(.js) .vt-card.vt-start { display: none; }
.vt-nojs { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 12px 14px; }

.vt-how { padding-top: 32px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 22px; }
.vt-how h2 { font-size: 24px; }
.vt-how ol { display: flex; flex-direction: column; gap: 18px; }
.vt-how li { display: flex; gap: 14px; align-items: flex-start; }
.vt-num { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.vt-how li:last-child .vt-num { background: var(--clay); color: var(--clay-ink); }
.vt-how li span:last-child { display: flex; flex-direction: column; gap: 4px; }
.vt-how li strong { font-size: 17px; }
.vt-how li span span { color: var(--muted); line-height: 1.45; }
.vt-privacy { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px; font-size: 15px; color: var(--muted); line-height: 1.45; }

/* The steps after the landing */
.vt-view { max-width: 680px; min-height: min(70vh, 560px); padding-top: 24px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 18px; }
.vt-view h1 { font-size: 28px; line-height: 1.15; font-weight: 700; }
.vt-view h1:focus { outline: none; }
.vt-view h1:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
@keyframes vt-spin { to { transform: rotate(360deg); } }
.vt-spin { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--accent-soft); border-top-color: var(--accent); animation: vt-spin .9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .vt-spin { display: none; } }
.vt-where { font-size: 14px; color: var(--muted); }
.vt-address { font-size: 18px; font-weight: 600; line-height: 1.35; }
.vt-home { background: var(--accent-soft); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.vt-list { display: flex; flex-direction: column; gap: 8px; }
.vt-row { width: 100%; min-height: 48px; text-align: left; padding: 10px 14px; border: 1.5px solid var(--edge); border-radius: 10px; background: #fff; font: inherit; color: var(--text); cursor: pointer; }
.vt-row:hover { background: var(--tint); }

.vt-epc { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; align-items: center; }
.vt-epc span { height: 22px; border-radius: 4px; }
.vt-epc .vt-epc-off { opacity: .35; }
.vt-epc .vt-epc-on { height: 32px; box-shadow: 0 0 0 2px var(--text); font-weight: 700; font-size: 19px; display: flex; align-items: center; justify-content: center; } /* large bold letter: 3:1 is enough, and each band's letter colour is picked to pass it */

.vt-result { background: var(--text); color: var(--bg); border-radius: 18px; padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; }
.vt-result .vt-eyebrow { color: #8AD3CE; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 400; }
.vt-result h1 { font-size: clamp(30px, 9.5vw, 40px); line-height: 1; }
.vt-result h1.vt-range { white-space: nowrap; } /* a range in the millions stays on one line at 360px; "Around £…" may wrap */
.vt-result:not(.vt-plain) h1:focus-visible { outline-color: #8AD3CE; }
.vt-result.vt-plain { background: #fff; color: var(--text); border: 1px solid var(--border); }
.vt-result.vt-plain h1 { font-size: 28px; line-height: 1.15; }
.vt-bar-wrap { position: relative; display: flex; flex-direction: column; gap: 6px; padding-top: 10px; }
.vt-bar-wrap.vt-has-tag { padding-top: 46px; }
.vt-bar { position: relative; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #2A5F69 0%, #8AD3CE 50%, #2A5F69 100%); }
/* The marker slides from the low end and settles on "most likely"; the tag fades in after. Reduced motion: both simply placed. */
@keyframes vt-slide { from { left: 0 } }
@keyframes vt-pop { 0%, 70% { opacity: 0; translate: calc(var(--at) * -1) 6px; } 100% { opacity: 1; translate: calc(var(--at) * -1) 0; } }
.vt-marker { position: absolute; top: -7px; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 4px var(--text); animation: vt-slide 1.4s cubic-bezier(.2, .9, .25, 1.15) .3s both; }
.vt-tag { position: absolute; top: 0; opacity: 1; translate: calc(var(--at) * -1) 0; white-space: nowrap; font-size: 13px; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: var(--clay); color: var(--clay-ink); animation: vt-pop 1.9s ease-out .3s both; }
@media (prefers-reduced-motion: reduce) { .vt-marker, .vt-tag { animation: none; } }
.vt-bar-ends { display: flex; justify-content: space-between; font-size: 13px; color: #B5C7C9; }
.vt-pill { align-self: flex-start; font-size: 13px; padding: 5px 10px; border-radius: 999px; background: #1B5560; color: #E1EEEC; }
.vt-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vt-tile { background: var(--bg); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vt-tile strong { font-size: 18px; }
.vt-tile-label { font-size: 13px; color: var(--muted); }
.vt-band { width: 30px; height: 28px; border-radius: 4px; font-weight: 700; font-size: 19px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.vt-cant { display: flex; flex-direction: column; gap: 10px; }
.vt-cant li { display: flex; gap: 10px; line-height: 1.45; }
.vt-cant li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--graphic); }
.vt-card.vt-form { background: var(--accent-soft); border: 0; }
.vt-consent { display: flex; gap: 12px; align-items: flex-start; }
.vt-consent input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--accent); }
.vt-consent label { font-weight: 400; line-height: 1.45; cursor: pointer; }
.vt-fine { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* Locked "Your full report" card (soft gate): what is inside, then a blurred stand-in made of plain shapes. */
.vt-card.vt-locked { padding: 0; gap: 0; overflow: hidden; }
.vt-locked-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 18px 8px; }
.vt-lock-tag { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--clay-soft); color: var(--text); }
.vt-inside { display: flex; flex-direction: column; gap: 6px; padding: 0 18px 12px; font-size: 15px; }
.vt-inside li { display: flex; gap: 8px; }
.vt-inside li::before { content: ""; flex: none; width: 6px; height: 11px; margin: 2px 6px 0 3px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
.vt-locked .vt-hint { padding: 0 18px 12px; }
.vt-blur { position: relative; padding: 4px 18px 18px; overflow: hidden; max-height: 220px; }
.vt-blur-body { display: flex; flex-direction: column; gap: 12px; filter: blur(6px); user-select: none; }
.vt-blur-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: var(--bg); }
.vt-blur-row span { height: 14px; border-radius: 7px; background: #B5C7C9; }
.vt-blur-row .vt-bar-a { width: 46%; }
.vt-blur-row .vt-bar-b { width: 22%; background: var(--graphic); }
.vt-blur-chart { width: 100%; height: auto; }
.vt-blur-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 60%, rgba(255, 255, 255, .9) 100%); }
.vt-padlock { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--text); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px rgba(224, 164, 88, .35); }

/* "Unlock your full report": the form sits on the dark panel, so its text, hints, errors and focus ring are set again for dark. */
.vt-card.vt-unlock { background: var(--text); color: var(--bg); }
.vt-unlock > p { color: #D7E4E2; line-height: 1.45; }
.vt-unlock .vt-hint, .vt-unlock .vt-fine { color: #B5C7C9; }
.vt-unlock .vt-consent input { accent-color: #8AD3CE; }
.vt-unlock .vt-error { background: var(--warn-bg); padding: 6px 10px; border-radius: 8px; }
.vt-unlock-btn { gap: 8px; }
.vt-unlock-btn::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--vt-lock) center / contain no-repeat; mask: var(--vt-lock) center / contain no-repeat; --vt-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 7.5-2'/%3E%3C/svg%3E"); }
.vt-credits { font-size: 12px; line-height: 1.5; color: var(--muted); }

.vt-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 34px; display: flex; align-items: center; justify-content: center; }
.vt-view .vt-lead { color: var(--muted); line-height: 1.5; }
.vt-timeline { display: flex; flex-direction: column; }
.vt-timeline li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0 0 22px 32px; }
.vt-timeline li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--clay); }
.vt-timeline li:last-child::before { background: #fff; box-shadow: 0 0 0 2px var(--edge); }
.vt-timeline li::after { content: ""; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 2px; background: var(--border); }
.vt-timeline li:last-child::after { display: none; }
.vt-timeline span { color: var(--muted); line-height: 1.45; }

:is(.vt-field input, .vt-field select, .vt-consent input, .vt-row, .vt-link):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.vt-unlock :is(input, select, button):focus-visible { outline: 3px solid #8AD3CE; outline-offset: 2px; }

@media (min-width: 900px) {
  .vt-hero { padding: 56px 0; background: radial-gradient(ellipse 70% 80% at 78% 55%, #1B5560 0%, #0E3B45 55%, #0A2E37 100%); }
  .vt-deco-wide { display: block; }
  .vt-deco-narrow { display: none; }
  .vt-hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
  .vt-hero h1 { font-size: 64px; line-height: 1.02; }
  .vt-hero .vt-lead { font-size: 20px; }
  .vt-steps-inline { display: flex; flex-wrap: wrap; gap: 10px; counter-reset: step; font-size: 15px; }
  .vt-steps-inline li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(244, 241, 234, .08); color: var(--bg); }
  .vt-steps-inline li::before { counter-increment: step; content: counter(step); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--clay); color: var(--clay-ink); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
  .vt-hero .vt-card { padding: 28px; border-radius: 20px; gap: 14px; }
  .vt-hero .vt-start { box-shadow: 0 0 0 8px rgba(138, 211, 206, .12), 0 30px 70px rgba(0, 0, 0, .35); }
  .vt-sample { display: flex; flex-direction: column; gap: 2px; position: absolute; top: -44px; right: -10px; z-index: 2; transform: rotate(4deg); background: var(--bg); color: var(--text); border-radius: 14px; padding: 12px 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
  .vt-sample span { font-size: 12px; color: var(--muted); }
  .vt-sample strong { font-family: var(--font-display); font-size: 22px; }
  .vt-hero .vt-field input { height: 56px; font-size: 19px; border-radius: 12px; }
  .vt-how ol { flex-direction: row; }
  .vt-how li { flex: 1; }
  .vt-view h1 { font-size: 34px; }
  .vt-result h1 { font-size: 52px; }
}
.vt-view form { display: flex; flex-direction: column; gap: 16px; }
.vt-view form .btn { align-self: flex-start; }
@media (max-width: 599px) {
  .vt-actions .btn, .vt-view form .btn { width: 100%; align-self: stretch; }
}
/* At desktop the 220px cap leaves only a sliver of the blurred chart; the blurred list carries the idea on its own there */
@media (min-width: 600px) { .vt-blur-chart { display: none; } }
