/* Concept B: Quick quiz. One question per screen with big tap answers,
   then the address, then the visitor's home fills the screen. */

.b-shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; background: #fff; }
.b-main { display: flex; flex-direction: column; width: 100%; max-width: 600px; margin: 0 auto; padding: 16px 20px 18px; }
.b-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.b-progress-wrap { margin-top: 22px; }
.b-progress-top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.b-progress-top .back-btn[hidden] + .b-progress-label { margin-left: 0; }
.b-progress-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: auto; }
.b-progress { height: 8px; border-radius: 99px; background: #e9eef5; overflow: hidden; margin-top: 6px; }
.b-progress > span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); border-radius: inherit; transition: width .4s ease; }

.b-stage { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; padding: clamp(24px, 9vh, 96px) 0 26px; }
.b-view { display: flex; flex-direction: column; gap: 14px; }
.b-kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.b-view h1 { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.b-sub { font-size: 15px; color: var(--muted); }
.b-answers { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.b-answer { min-height: 64px; font-size: 17px; padding: 16px 18px; border-radius: 10px; }
.b-form { display: flex; flex-direction: column; margin-top: 4px; }
.b-submit { margin-top: 14px; }
.b-trust { justify-content: center; padding: 6px 0 14px; }
.b-footer { border-top: 1px solid var(--line); padding-top: 14px; }

body[data-screen="exit"] .b-progress-wrap { visibility: hidden; }

.b-aside { display: none; }

@media (min-width: 900px) {
  .b-shell { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .b-main { padding: 36px 48px 24px; max-width: 640px; }
  .b-view h1 { font-size: 34px; }
  .b-answer { font-size: 18px; min-height: 68px; }
  .b-trust { justify-content: flex-start; }
  .b-stage { justify-content: center; padding-top: 26px; }
  .b-aside { display: block; position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 20px 20px 20px 0; }
  .b-aside-art { position: relative; width: 100%; height: 100%; border-radius: 22px; overflow: hidden; background: #cfe3f6; }
  .b-aside-caption {
    position: absolute; left: 40px; right: 40px; bottom: 44px; display: flex; flex-direction: column; gap: 6px;
    color: #fff; padding: 18px 20px; border-radius: var(--radius);
    background: rgba(15, 23, 42, .48); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .b-aside-kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #cfe3ff; }
  .b-aside-line { font-size: 18px; font-weight: 600; line-height: 1.35; }
}

/* ---------- reveal ---------- */
.b-reveal { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: var(--ink); }
.b-reveal-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #5d636a; }
.b-house { opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 1.4s ease; }
body[data-revealed] .b-house { opacity: 1; transform: none; }
.b-reveal-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 24, 46, .45) 0%, rgba(10, 24, 46, 0) 26%, rgba(10, 24, 46, 0) 55%, rgba(10, 24, 46, .35) 100%); }
.b-reveal-header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 16px 20px; }
.b-illus { position: absolute; z-index: 2; right: 12px; bottom: auto; top: 64px; }
.b-sheet { position: relative; z-index: 2; margin-top: auto; padding: 0 0 0; }
.b-sheet-inner {
  background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 50px rgba(2, 32, 71, .18);
  padding: 22px 20px 26px; display: flex; flex-direction: column; gap: 12px;
  animation: b-sheet-up .55s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes b-sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.b-found-pill { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--green); background: #e9f7ee; padding: 5px 12px 5px 8px; border-radius: 99px; }
.b-found-pill svg { width: 16px; height: 16px; }
.b-sheet-inner h1 { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.b-reveal-city { font-size: 16px; color: var(--muted); margin-top: -6px; }
.b-sheet-inner .btn--ghost { align-self: center; }

@media (min-width: 768px) {
  .b-reveal-header { padding: 24px 40px; }
  .b-illus { right: 40px; top: 84px; }
  .b-sheet { margin: auto auto 32px; width: min(520px, calc(100% - 64px)); }
  .b-sheet-inner { border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); }
}
@media (min-width: 1024px) {
  .b-sheet { margin: auto 40px 40px auto; width: min(460px, calc(100% - 80px)); }
  .b-sheet-inner h1 { font-size: 32px; }
}

body[data-screen="handoff"] .b-illus { display: none; }
