/* Styles for this kit. SellHouseFast default tokens: Kumbh Sans, blue #0070ff (hover #005fe6),
   page #f5f8fd, white panels, ink #17202e, muted #5b6b7c, line #e6ecf3, 14px radius. */

:root {
  --blue: #0070ff;
  --blue-hover: #005fe6;
  --blue-soft: #e8f1ff;
  --bg: #f5f8fd;
  --panel: #fff;
  --panel-alt: #f6f9fe;
  --ink: #17202e;
  --muted: #5b6b7c;
  --line: #e6ecf3;
  --line-strong: rgba(23, 32, 46, .16);
  --green: #15803d;
  --amber: #b45309;
  --red: #b42318;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-ctl: 8px;
  --shadow: 0 10px 30px rgba(2, 32, 71, .06);
  --font: 'Kumbh Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1:focus, h2:focus, h1:focus-visible, h2:focus-visible { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -120px; z-index: 100; background: #fff; color: var(--blue);
  padding: 10px 14px; border-radius: var(--radius-ctl); box-shadow: var(--shadow); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- demo banner ---------- */
.demo-banner {
  display: flex; flex-wrap: wrap; gap: 2px 8px; justify-content: center;
  padding: 8px 14px; font-size: 13px; line-height: 1.35; text-align: center;
  background: #fff7e6; color: #7a3d06; border-bottom: 1px solid #f3d7a8;
}
.demo-banner strong { color: var(--amber); }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--line);
}
/* Neutral placeholder for your own logo. Replace the span with your logo image. */
.logo-slot {
  display: inline-flex; align-items: center; justify-content: center; width: 130px; height: 34px; flex: none;
  border: 2px dashed #b9c6d8; border-radius: 8px; background: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6b7a8c;
}
.step-count { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---------- main card ---------- */
.main { flex: 1; width: 100%; max-width: 540px; margin: 0 auto; padding: 20px 16px 28px; display: flex; flex-direction: column; gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 18px 18px; display: flex; flex-direction: column; gap: 16px;
}
.view { display: flex; flex-direction: column; gap: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 5px 12px;
}
.title { font-size: clamp(24px, 6.4vw, 30px); line-height: 1.18; font-weight: 800; letter-spacing: -.015em; }
.sub { font-size: 16px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 50px; padding: 12px 18px;
  border-radius: var(--radius-ctl); border: 1px solid transparent;
  font-size: 16px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); color: #fff; }
.btn--big { min-height: 56px; font-size: 18px; font-weight: 800; }
.btn--secondary { background: var(--panel-alt); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { background: #eef3fb; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--muted); border: 0; width: auto; min-height: 40px; padding: 8px 4px; text-decoration: underline; font-weight: 500; font-size: 15px; }
.btn--ghost:hover { color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }

.link-btn {
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; border: 0; background: none; cursor: pointer;
  color: var(--muted); font-size: 14px; font-weight: 600; padding: 6px 2px; min-height: 40px; text-decoration: none;
}
.link-btn:hover { color: var(--ink); }
.link-btn svg { width: 18px; height: 18px; }

/* Tap-to-answer choices */
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px;
  padding: 14px 16px; text-align: left; cursor: pointer;
  background: var(--panel-alt); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-ctl);
  font-size: 16px; font-weight: 600; line-height: 1.3;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.choice:hover { border-color: var(--blue); background: #fff; }
.choice:active { transform: scale(.99); }
.choice[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.choice-dot {
  flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(23, 32, 46, .3); background: #fff;
  display: grid; place-items: center;
}
.choice[aria-pressed="true"] .choice-dot { border-color: #fff; }
.choice[aria-pressed="true"] .choice-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }

/* ---------- address field + suggestions ---------- */
.field-label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.combo { position: relative; }
.combo-input-wrap { position: relative; }
.combo-pin { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #94a3b8; pointer-events: none; }
.text-input {
  width: 100%; min-height: 52px; padding: 10px 12px 10px 38px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-ctl); background: #fff;
  font-size: 16px; color: var(--ink);
}
.text-input::placeholder { color: #8a97a8; }
.text-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 112, 255, .2); }
.text-input[aria-invalid="true"] { border-color: var(--red); }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  list-style: none; padding: 6px; margin: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 18px 40px rgba(2, 32, 71, .16);
  max-height: 280px; overflow-y: auto;
}
.combo-head { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8a97a8; padding: 6px 10px 4px; }
.combo-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 8px; cursor: pointer; color: var(--ink); font-size: 15px; line-height: 1.3; }
.combo-opt svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #8a97a8; }
.combo-opt small { display: block; color: var(--muted); font-size: 13px; }
.combo-opt[aria-selected="true"], .combo-opt:hover { background: var(--blue-soft); }
.field-hint { font-size: 13px; color: var(--muted); }
.field-hint button { border: 0; background: none; padding: 0; color: var(--blue); text-decoration: underline; cursor: pointer; font-size: 13px; font-weight: 600; text-align: left; }
.field-error { font-size: 14px; color: var(--red); font-weight: 600; }

/* Coverage result line */
.coverage { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--green); }
.coverage svg { width: 18px; height: 18px; flex: none; }
.coverage[data-state="checking"] { color: var(--muted); }

/* ---------- house picture ---------- */
.house-frame { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: #cfe3f6; aspect-ratio: 16 / 10; }
.house-frame--small { aspect-ratio: 16 / 7; }
.house-scene { position: absolute; inset: 0; overflow: hidden; background: #cfe3f6; }
.house-scene svg { width: 100%; height: 100%; max-width: none; }
.house-scene .house-sample { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 58%; }
.house-scene .house-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; animation: shf-in .5s ease both; }
.illus-tag {
  position: absolute; right: 8px; bottom: 8px; z-index: 3; font-size: 10px; font-weight: 600; letter-spacing: .04em;
  color: #fff; background: rgba(15, 23, 42, .5); padding: 3px 8px; border-radius: 99px;
}
.address-line { font-size: 18px; font-weight: 700; line-height: 1.35; }
.address-line small { display: block; font-size: 15px; font-weight: 500; color: var(--muted); }

/* ---------- bot-check slots ---------- */
.turnstile-slot { min-height: 65px; font-size: 14px; color: var(--red); }
.confirm-note { font-size: 14px; font-weight: 600; color: var(--amber); background: #fff7e6; border-radius: 8px; padding: 8px 10px; }

.trust { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* Small exit link at the bottom of the card */
.card-foot { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.card-foot a { color: var(--muted); font-weight: 600; }
.card-foot a:hover { color: var(--ink); }

/* ---------- legal footer ---------- */
.legal { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; line-height: 1.45; color: var(--muted); padding: 0 4px; }
.legal-who strong { color: var(--ink); font-weight: 700; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.legal-links a { color: inherit; font-weight: 600; }

/* ---------- hand-off ---------- */
.handoff { display: flex; flex-direction: column; gap: 16px; }
.handoff-status { display: flex; flex-direction: column; gap: 10px; }
.handoff-top { display: flex; align-items: center; gap: 12px; }
.handoff-icon { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.handoff-spinner { border: 4px solid var(--blue-soft); border-top-color: var(--blue); animation: shf-spin .8s linear infinite; }
.handoff-check { background: var(--green); color: #fff; }
.handoff-check svg { width: 24px; height: 24px; }
.handoff h2 { font-size: clamp(21px, 5vw, 26px); line-height: 1.2; font-weight: 800; }
.handoff-addr { font-size: 15px; color: var(--muted); }
.handoff-addr strong { color: var(--ink); font-weight: 600; }
.progress { height: 6px; border-radius: 99px; background: var(--blue-soft); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: inherit; }
.handoff[data-state="going"] .progress > span { animation: shf-fill 1.3s ease-out forwards; }
.handoff[data-state="ready"] .progress > span { width: 100%; background: var(--green); }
.handoff-ready { font-size: 15px; }

.partner-panel { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-alt); }
.partner-panel summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; font-size: 14px; font-weight: 700;
}
.partner-panel summary::-webkit-details-marker { display: none; }
.partner-panel summary svg { width: 16px; height: 16px; transition: transform .2s ease; flex: none; }
.partner-panel[open] summary svg { transform: rotate(180deg); }
.partner-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.url-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--ink);
  overflow-wrap: anywhere; word-break: break-all;
}
.url-box .p-key { color: var(--blue); font-weight: 700; }
.param-list { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.param-list dt { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--blue); font-weight: 700; }
.param-list dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.event-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.event-head { width: 100%; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.event-list code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--ink); }
.exit-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }

/* ---------- exit page ---------- */
.exit-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.exit-icon svg { width: 26px; height: 26px; }
.x-body { color: var(--muted); font-size: 16px; }
.alt-path { border: 2px dashed #c3d3ea; border-radius: var(--radius-sm); background: var(--panel-alt); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.alt-path strong { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.alt-path span { font-size: 15px; }
.x-back { width: auto; }

/* ---------- motion ---------- */
@keyframes shf-spin { to { transform: rotate(360deg); } }
@keyframes shf-fill { from { width: 4%; } to { width: 100%; } }
@keyframes shf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.view-enter { animation: shf-in .3s ease both; }

@media (min-width: 768px) {
  .top { padding: 16px 28px; }
  .main { padding-top: 40px; }
  .card { padding: 30px 30px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
