/* Cash For Cars Solution — quote flow and offer acceptance */
.lane-page { background: var(--paper); }
.lane-page .masthead-in { min-height: 70px; }
.lane-head-phone { margin-left: auto; }
.at-offer .lane-head-phone { display: none; }
.lane { padding: 40px 0 88px; min-height: 62vh; }
.lane-stage { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- question frame ---------- */
.q-frame { max-width: 640px; margin: 0 auto; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 8px; padding: 30px 40px 36px; box-shadow: 6px 6px 0 var(--paper-deep); }
.in-fwd { animation: lane-in-fwd .22s ease both; }
.in-back { animation: lane-in-back .22s ease both; }
@keyframes lane-in-fwd { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes lane-in-back { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.q-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 10px; }
.q-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px 0 0; background: none; border: 0; font: 700 16px var(--body); color: var(--pine); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(29,67,52,.35); }
.q-back::before { content: "‹"; font-size: 22px; line-height: 1; text-decoration: none; }
.q-back:hover { color: var(--ink); }
.q-car { font-size: 14px; font-weight: 700; color: var(--ink-soft); text-align: right; }
.q-meter { height: 4px; background: var(--paper-deep); border-radius: 4px; margin-bottom: 24px; overflow: hidden; }
.q-meter span { display: block; height: 100%; background: var(--pine); border-radius: 4px; transition: width .25s ease; }
.q-title { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; margin-bottom: 8px; outline: none; }
.q-help { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 22px; }
.q-alert { background: #fbe9e4; border-left: 4px solid var(--verm); color: #6a1d0e; padding: 12px 14px; border-radius: 4px; font-weight: 600; font-size: 15.5px; margin-bottom: 18px; }
.q-note { display: flex; gap: 10px; align-items: flex-start; background: #e8eee8; border-radius: 6px; padding: 12px 14px; font-size: 15.5px; color: var(--ink); margin: 14px 0 0; }
.q-note svg { width: 20px; height: 20px; flex: none; color: var(--pine); margin-top: 1px; }
.q-form .lane-field { margin-bottom: 14px; }
.lane-field.narrow { max-width: 280px; }
.q-actions { margin-top: 22px; display: flex; justify-content: flex-end; }
.q-actions:empty { display: none; }
.q-actions .go-btn { min-width: 180px; }
.next-btn { min-width: 150px; }
.link-btn { background: none; border: 0; padding: 4px 0; min-height: 32px; font: 700 15.5px var(--body); color: var(--pine); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.link-btn.inline { display: inline; min-height: 0; padding: 0; font-size: inherit; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.label-row label { margin-bottom: 6px; }

/* ---------- vehicle mode ---------- */
.mode-switch { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 6px; padding: 3px; margin-bottom: 20px; background: #fff; }
.mode-switch button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 4px; background: transparent; font: 700 15px var(--body); color: var(--ink-soft); cursor: pointer; }
.mode-switch button[aria-checked="true"] { background: var(--pine); color: #fff; }
.vin-input { letter-spacing: .12em; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; text-transform: uppercase; }
.vin-count { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-soft); text-align: right; }
.vin-match { display: flex; gap: 12px; align-items: center; background: #e8eee8; border: 1.5px solid var(--pine); border-radius: 6px; padding: 12px 14px; margin-top: 4px; }
.vin-match[hidden] { display: none; }
.vin-match svg { width: 24px; height: 24px; color: var(--pine); flex: none; }
.vin-match span { display: block; font-size: 14px; color: var(--ink-soft); }

/* ---------- tap answers ---------- */
.pick-list { display: grid; gap: 10px; }
.pick { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 58px; padding: 14px 16px; text-align: left;
  background: #fff; border: 1.5px solid #8e968f; border-radius: 6px; font: 600 17px/1.3 var(--body); color: var(--ink); cursor: pointer; transition: border-color .12s, background .12s; }
.pick:hover { border-color: var(--ink); background: #fdfcf8; }
.pick svg { width: 20px; height: 20px; flex: none; color: var(--ink-soft); }
.pick.on { border: 2px solid var(--pine); background: #e8eee8; padding: 13.5px 15.5px; }
.pick.on svg { color: var(--pine); width: 24px; height: 24px; }
.pick.off { cursor: not-allowed; border-style: dashed; color: #747a75; background: transparent; }
.pick.off em { font-style: normal; font-size: 13.5px; font-weight: 700; color: #626862; }
.tick { display: flex; gap: 12px; align-items: center; min-height: 44px; font-weight: 600; cursor: pointer; }
.tick input { width: 22px; height: 22px; accent-color: var(--pine); flex: none; }

/* ---------- corner picker ---------- */
.corners { border: 1.5px dashed var(--rule); border-radius: 8px; padding: 16px; margin: 18px 0 0; }
.corners legend { font-weight: 800; font-family: var(--display); font-size: 18px; padding: 0 6px; }
.corners legend span { font: 500 14px var(--body); color: var(--ink-soft); }
.corner-grid { display: grid; grid-template-columns: 1fr 74px 1fr; grid-template-rows: auto 1fr 1fr auto; gap: 8px 12px; align-items: stretch; }
.corner-cap { grid-column: 1 / -1; text-align: center; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.corner-car { grid-column: 2; grid-row: 2 / 4; width: 74px; height: 100%; max-height: 150px; color: var(--ink); align-self: center; }
.corner { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border: 1.5px solid #8e968f; border-radius: 6px; background: #fff; font-weight: 600; cursor: pointer; }
.corner input { width: 20px; height: 20px; accent-color: var(--pine); flex: none; }
.corner.on { border: 2px solid var(--pine); background: #e8eee8; }
.corner-nw { grid-column: 1; grid-row: 2; } .corner-ne { grid-column: 3; grid-row: 2; }
.corner-sw { grid-column: 1; grid-row: 3; } .corner-se { grid-column: 3; grid-row: 3; }

/* ---------- loading ---------- */
.pricing { text-align: center; padding: 10px 0; }
.pricing-spin { width: 64px; height: 64px; margin: 6px auto 16px; color: var(--verm); animation: lane-spin 1.1s linear infinite; }
@keyframes lane-spin { to { transform: rotate(360deg); } }
.tally { list-style: none; padding: 0; margin: 18px auto 0; display: inline-grid; gap: 10px; text-align: left; }
.tally li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--ink-soft); }
.tally li::before { content: ""; width: 18px; height: 18px; border: 2px solid var(--rule); border-radius: 50%; flex: none; }
.tally li.done { color: var(--ink); }
.tally li.done::before { border-color: var(--pine); background: var(--pine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.pricing-slow { margin-top: 18px; color: var(--ink-soft); }
.spin { display: inline-block; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; margin-right: 10px; vertical-align: -3px; animation: lane-spin .8s linear infinite; }
.spin.big { width: 40px; height: 40px; border-width: 3px; color: var(--pine); margin: 0 auto 16px; display: block; }

/* ---------- end / side screens ---------- */
.end { text-align: center; padding: 6px 0; }
.end-title { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; margin: 0 0 12px; outline: none; }
.end p { color: var(--ink-soft); font-size: 17px; }
.end-acts { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 22px 0 8px; }
.end-small { font-size: 15px !important; }
.end-mark { width: 72px; height: 72px; margin: 0 auto 14px; color: var(--pine); }
.end-sum { display: grid; gap: 0; text-align: left; margin: 22px auto; max-width: 440px; border: 1.5px solid var(--ink); border-radius: 6px; background: #fff; }
.end-sum div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 16px; border-bottom: 1px dashed var(--rule); }
.end-sum div:last-child { border-bottom: 0; }
.end-sum dt { color: var(--ink-soft); font-weight: 600; }
.end-sum dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- offer / accept ---------- */
.deal { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; max-width: 1060px; margin: 0 auto; }
.deal-main { min-width: 0; }
.deal-title { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 10px; outline: none; }
.deal-kick { font: 700 15px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--verm-text); }
.deal-amt { font-size: clamp(54px, 8vw, 84px); font-weight: 800; color: var(--ink); line-height: .95; letter-spacing: -0.03em; }
.deal-for { font: 600 20px/1.3 var(--display); color: var(--pine); }
.deal-sub { font-size: 17px; color: var(--ink-soft); margin-bottom: 22px; }
.deal-sec { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 8px; padding: 22px 24px 10px; margin-bottom: 18px; }
.deal-sec h2 { font-size: 21px; font-weight: 800; margin-bottom: 14px; }
.deal-sec .lane-field { margin-bottom: 14px; }
.deal-sec .opt { font: 600 13px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-left: 6px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.f-tip { font-size: 14.5px; color: var(--ink-soft); margin: -4px 0 14px; }
.lane-field .label-aside { float: right; margin-top: -32px; }
.who { display: flex; gap: 12px; align-items: flex-start; padding: 2px 0 14px; }
.who svg { width: 24px; height: 24px; color: var(--pine); flex: none; margin-top: 2px; }
.who div { flex: 1; min-width: 0; }
.who strong { display: block; font-size: 17px; }
.who span { display: block; color: var(--ink-soft); font-size: 15px; overflow-wrap: anywhere; }
.who em { display: block; font-style: normal; font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }
.deal-final { padding: 6px 0 0; }
.consent { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 16px; }
.deal-final .consent:last-child { margin: 14px 0 0; }
.after-note { font-size: 15px; color: var(--ink-soft); margin: 10px 0 0; text-align: center; }
.go-accept { min-height: 64px; font-size: 21px; }
.op-err:empty { display: none; }
.op-err { background: #fbe9e4; border-left: 4px solid var(--verm); color: #6a1d0e; padding: 12px 14px; border-radius: 4px; font-weight: 600; margin-bottom: 14px; }
.sum-err { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; background: #fbe9e4; border: 1.5px solid var(--verm); color: #6a1d0e; padding: 10px 14px; border-radius: 6px; font-weight: 600; margin-bottom: 14px; }
.sum-err[hidden] { display: none; }
.sum-err .link-btn { color: #6a1d0e; }

.deal-rail { position: sticky; top: 24px; }
.rail-card { background: var(--pine); color: #e8eee8; border-radius: 8px; padding: 26px 24px; box-shadow: 6px 6px 0 var(--ink); }
.rail-kick { font: 700 13px var(--body); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 2px; color: #f3b8a8; }
.rail-amt { font: 800 46px/1 var(--display); color: #fff; margin: 0 0 6px; letter-spacing: -0.02em; }
.rail-car { margin: 0 0 14px; font-weight: 600; }
.rail-speed { background: rgba(255,255,255,.1); border-radius: 5px; padding: 8px 10px; font-weight: 700; font-size: 15px; color: #fff; }
.rail-speed[hidden] { display: none; }
.rail-h { font-size: 19px; color: #fff; margin: 18px 0 10px; padding-top: 16px; border-top: 1px dashed rgba(255,255,255,.3); }
.rail-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }
.rail-steps li::marker { font-weight: 800; color: #f3b8a8; }
.rail-card .link-btn { color: #fff; }

/* ---------- pickup ---------- */
.pick-wait { color: var(--ink-soft); font-weight: 600; margin: 0 0 18px; }
.slot-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 14px; margin-bottom: 8px; text-align: left; background: #fff; border: 1.5px solid #8e968f; border-radius: 6px; font: 500 16px/1.3 var(--body); color: var(--ink); cursor: pointer; }
.slot-row .dot { width: 18px; height: 18px; border: 2px solid var(--ink-soft); border-radius: 50%; flex: none; }
.slot-row.on { border: 2px solid var(--pine); background: #e8eee8; }
.slot-row.on .dot { border-color: var(--pine); background: radial-gradient(circle, var(--pine) 45%, transparent 50%); }
.day-toggle { margin: 2px 0 10px; }
.day-strip-wrap { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.day-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 2px 2px 6px; flex: 1; }
.day-pill { scroll-snap-align: start; flex: 0 0 calc((100% - 48px) / 7); min-width: 62px; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1.5px solid #8e968f; border-radius: 6px; background: #fff; font: 600 13px var(--body); color: var(--ink-soft); cursor: pointer; }
.day-pill strong { font-size: 15px; color: var(--ink); }
.day-pill.wkend { background: #f0efe7; }
.day-pill.on { border: 2px solid var(--pine); background: #e8eee8; }
.strip-nav { width: 36px; height: 44px; border: 1.5px solid var(--ink); border-radius: 6px; background: #fff; font-size: 22px; cursor: pointer; flex: none; }
.win-box { min-height: 72px; }
.win-h { font-weight: 700; margin: 0 0 8px; }
.win-set { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; margin: 8px 0 14px; }
.win-set svg { width: 22px; height: 22px; color: var(--pine); }

/* ---------- dialogs ---------- */
.dlg-open { overflow: hidden; }
.lane-scrim { position: fixed; inset: 0; z-index: 100; background: rgba(23,34,29,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lane-dialog { position: relative; width: 100%; max-width: 540px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 8px; padding: 28px 28px 22px; box-shadow: 8px 8px 0 var(--pine); animation: lane-pop .18s ease both; }
@keyframes lane-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.lane-dialog h2 { font-size: 25px; font-weight: 800; margin: 0 36px 12px 0; }
.lane-dialog h3 { font: 800 16px var(--display); margin: 0 0 6px; }
.dlg-body p { color: var(--ink-soft); }
.dlg-x { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--ink); cursor: pointer; border-radius: 6px; }
.dlg-acts { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; }
.re-price { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px; margin: 6px 0 10px; border: 1.5px dashed var(--rule); border-radius: 8px; background: #fff; }
.re-kick { font: 700 13px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--pine); }
.re-amt { font: 800 48px/1 var(--display); color: var(--ink); }
.re-car { font-weight: 600; color: var(--ink-soft); }
.re-was { font-size: 14.5px; color: #7a807b; margin-top: 6px; }
.re-held { font-size: 15px; }
.vin-sample { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1.5px dashed var(--rule); border-radius: 6px; padding: 12px 14px; }
.vin-sample code { font: 700 19px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .1em; color: var(--ink); }
.vin-sample span { font-size: 14px; }
.vin-where { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.vin-where ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 15px; display: grid; gap: 4px; }

@media (max-width: 960px) {
  .deal { grid-template-columns: 1fr; gap: 20px; }
  .deal-rail { position: static; order: 2; }
}
@media (max-width: 767px) {
  .lane { padding: 14px 0 60px; }
  .lane-stage { padding: 0 16px; }
  .q-frame { border: 0; box-shadow: none; background: transparent; padding: 0; }
  .q-title { font-size: 25px; }
  .q-actions { justify-content: stretch; }
  .q-actions .go-btn, .q-actions .ring-btn { width: 100%; }
  .lane-field.narrow { max-width: none; }
  .deal-title { margin-top: 0; }
  .deal-amt { font-size: 54px; }
  .deal-for { font-size: 18px; }
  .deal-sub { margin-bottom: 16px; font-size: 16px; }
  .deal-sec { padding: 18px 16px 6px; }
  .f-grid { grid-template-columns: 1fr; }
  .corner-grid { grid-template-columns: 1fr 52px 1fr; gap: 8px; }
  .corner-car { width: 52px; }
  .corner { font-size: 14.5px; padding: 8px 10px; min-height: 60px; }
  .day-pill { flex: 0 0 64px; }
  .strip-nav { display: none; }
  .lane-scrim { align-items: flex-end; padding: 0; }
  .lane-dialog { max-width: none; border-radius: 14px 14px 0 0; border-bottom: 0; box-shadow: none; padding: 24px 18px 22px; max-height: 88vh; }
  .vin-where { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .in-fwd, .in-back { animation: lane-fade .15s ease both !important; }
  @keyframes lane-fade { from { opacity: 0; } to { opacity: 1; } }
}
