:root {
  --navy: #1A2B56;
  --navy-deep: #121f3f;
  --blue: #3B82F6;
  --blue-bright: #60A5FA;
  --teal: #14B8A6;
  --teal-soft: #D1FAF5;
  --coral: #F97316;
  --coral-soft: #FFEDD5;
  --gold: #EAB308;
  --gold-soft: #FEF3C7;
  --purple: #8B5CF6;
  --sky: #E8F2FF;
  --mist: #F3F6FB;
  --cream: #F7F4EE;
  --paper: #FFFFFF;
  --ink: #1A2B56;
  --muted: #5B6B86;
  --line: rgba(26, 43, 86, 0.12);
  --ok: #059669;
  --shadow: 0 18px 40px rgba(26, 43, 86, 0.12);
  --radius: 22px;
  --font-display: "Nunito", "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
  --font-bubble: "Fredoka", "Nunito", "Segoe UI", sans-serif;
  --shell-pad: 14px;
}

* { box-sizing: border-box; }
html {
  font-size: 16px !important;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}
body {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background:
    radial-gradient(720px 420px at 8% 0%, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(640px 380px at 100% 10%, rgba(234, 179, 8, 0.1), transparent 55%),
    linear-gradient(180deg, #FBF9F5 0%, var(--cream) 45%, #F1EDE4 100%);
}

button, input, select, textarea { font: inherit; }
a { color: var(--blue); }

.app-shell {
  width: min(1120px, calc(100% - 24px));
  height: 100svh;
  max-height: 100dvh;
  margin: 0 auto;
  padding: var(--shell-pad) 0 max(var(--shell-pad), env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.brand {
  text-decoration: none;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.brand-logo {
  display: block;
  height: clamp(36px, 7vw, 48px);
  width: auto;
  max-width: min(220px, 58vw);
  object-fit: contain;
  object-position: left center;
}
.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.03em;
  color: var(--navy);
}
.brand-wordmark span {
  color: var(--blue);
}

.call-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(26, 43, 86, 0.14);
  box-shadow: 0 6px 16px rgba(26, 43, 86, 0.06);
}
.call-chip span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.65;
}
.call-chip strong {
  font-size: 0.9rem;
  font-weight: 800;
}

.stage {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.error-banner {
  padding: 10px 14px;
  border-radius: 12px;
  background: #fdecec;
  color: #9b1c1c;
  font-size: 0.9rem;
  font-weight: 600;
}
.error-banner[hidden] { display: none !important; }

.screen {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(26, 43, 86, 0.08);
  border-radius: calc(var(--radius) + 6px);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.screen[hidden] { display: none !important; }
.screen::before { display: none; }

.screen-body {
  min-height: 0;
  flex: 1;
  padding: 16px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.screen-welcome .screen-body,
#screen-phone .screen-body {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.screen-foot {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 16px 12px;
  border-top: 1px solid rgba(26, 43, 86, 0.06);
  background: #FBFCFE;
}

.foot-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.screen h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  max-width: 18ch;
}
.screen h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.hint {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* —— Welcome —— */
.screen-welcome .screen-body.welcome-body { padding-bottom: 10px; }
.welcome-grid {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(0, 1.4fr);
  gap: 14px 18px;
  align-items: stretch;
}
.welcome-mascot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 0;
}
.mascot-media-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px 16px;
  width: 100%;
  min-height: 0;
}
.speech-bubble {
  position: relative;
  margin: 0;
  padding: 12px 14px;
  max-width: 18ch;
  background: #fff;
  border: 2px solid rgba(26, 43, 86, 0.1);
  border-radius: 18px;
  font-family: var(--font-bubble);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  line-height: 1.28;
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(26, 43, 86, 0.08);
}
.speech-bubble::after {
  content: "";
  position: absolute;
  left: 28%;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 2px solid rgba(26, 43, 86, 0.1);
  border-bottom: 2px solid rgba(26, 43, 86, 0.1);
  transform: rotate(45deg);
}
.riskley-mascot {
  width: min(58%, 300px);
  max-width: 300px;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(26, 43, 86, 0.12));
}
.welcome-main {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.welcome-directions {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--mist);
  border: 1px solid rgba(26, 43, 86, 0.08);
  overflow: auto;
}
.welcome-directions-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: center;
}
.welcome-directions-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 800;
  color: var(--navy);
}
.welcome-pitch {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.welcome-pitch li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}
.welcome-pitch-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.welcome-pitch-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal);
}
.welcome-pitch li:nth-child(2) .welcome-pitch-title { color: var(--blue); }
.welcome-pitch li:nth-child(3) .welcome-pitch-title { color: var(--coral); }
.welcome-pitch-text {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}
.welcome-pitch-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #2dd4bf, #14b8a6);
}
.welcome-pitch li:nth-child(2) .welcome-pitch-icon {
  background: linear-gradient(145deg, #60a5fa, #3b82f6);
}
.welcome-pitch li:nth-child(3) .welcome-pitch-icon {
  background: linear-gradient(145deg, #fb923c, #f97316);
}
.welcome-pitch-icon svg { width: 16px; height: 16px; }

.welcome-media {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}
.welcome-media-note {
  margin: 0;
  max-width: 12ch;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.welcome-media-note strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.15;
}
.welcome-media-note span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.3;
}

.phone-shell {
  position: relative;
  width: min(100%, 140px);
  margin: 0;
  flex: 0 0 auto;
}
.phone-shell-glow {
  position: absolute;
  inset: 8% 4%;
  border-radius: 40px;
  background: radial-gradient(circle at 50% 40%, rgba(59, 130, 246, 0.25), transparent 70%);
  filter: blur(16px);
  z-index: 0;
  pointer-events: none;
}
.phone-bezel {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 9 / 19;
  padding: 7px;
  border-radius: 26px;
  background: linear-gradient(160deg, #2a3348 0%, #121826 100%);
  box-shadow: 0 16px 32px rgba(26, 43, 86, 0.2);
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 10px;
  border-radius: 999px;
  background: #05080f;
  z-index: 3;
}
.phone-screen {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #07111d;
}
.welcome-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-home-bar {
  width: 34%;
  height: 3px;
  margin: 6px auto 2px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
}

.screen-welcome.is-demo-compact .phone-shell {
  height: auto !important;
  width: min(140px, 28vw) !important;
  max-width: 140px !important;
  max-height: none !important;
  aspect-ratio: 9 / 19;
}
.screen-welcome.is-demo-compact .phone-bezel {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 19;
  padding: 5px;
  border-radius: 20px;
}
.screen-welcome.is-demo-compact .phone-notch { top: 7px; height: 6px; }
.screen-welcome.is-demo-compact .phone-home-bar { height: 2px; margin: 3px auto 1px; }
.screen-welcome.is-demo-compact .phone-shell-glow { opacity: 0; }

.address-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(165deg, #E8F2FF 0%, #DCEBFF 55%, #D1FAF5 130%);
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow: 0 8px 20px rgba(26, 43, 86, 0.06);
  margin-top: auto;
  width: 100%;
}
.address-panel.is-verified {
  border-color: rgba(5, 150, 105, 0.45);
  background: linear-gradient(165deg, #ECFDF5 0%, #D1FAE5 100%);
}
.address-step {
  margin: 0;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.address-question {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 800;
  color: var(--navy);
}
.address-field {
  position: relative;
  display: block;
  min-width: 0;
}
.address-panel input[type="text"] {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(26, 43, 86, 0.14);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  outline: none;
}
.address-panel.is-verified input[type="text"] {
  padding-right: 7.25rem;
}
.address-panel input[type="text"]:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.address-verified {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.12);
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 800;
  pointer-events: none;
}
.address-verified[hidden] { display: none !important; }
.address-verified svg { width: 18px; height: 18px; color: var(--ok); }

.pac-container {
  z-index: 10050 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(26, 43, 86, 0.12) !important;
  box-shadow: 0 12px 28px rgba(26, 43, 86, 0.16) !important;
  font-family: var(--font-body);
  margin-top: 4px;
}
.pac-item {
  padding: 10px 12px !important;
  font-size: 0.92rem !important;
  line-height: 1.3 !important;
  cursor: pointer;
}
.pac-item-query {
  font-size: 0.95rem !important;
}

/* —— Builder —— */
#screen-builder .screen-body {
  overflow: hidden;
  min-height: 0;
  flex: 1 1 0%;
  gap: 10px;
}
.builder-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.builder-intro-copy { flex: 1 1 200px; min-width: 0; }
.builder-intro-copy h2 { margin-top: 2px; }

.btn-bundle {
  appearance: none;
  border: 1px solid rgba(234, 179, 8, 0.45);
  border-radius: 16px;
  padding: 8px 12px 8px 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  color: #854d0e;
  background: linear-gradient(135deg, #FFFBEB, #FEF08A);
  box-shadow: 0 8px 18px rgba(234, 179, 8, 0.18);
  flex: 0 1 auto;
  max-width: 100%;
}
.btn-bundle-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(234, 179, 8, 0.22);
  color: #a16207;
}
.btn-bundle-icon svg { width: 18px; height: 18px; }
.btn-bundle-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.15;
}
.btn-bundle-cue {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}
.btn-bundle-text strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
}
.btn-bundle-text small {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.75;
}
.btn-bundle.is-active {
  border-color: rgba(5, 150, 105, 0.4);
  color: #065f46;
  background: linear-gradient(135deg, #ECFDF5, #A7F3D0);
}

.builder-layout {
  min-height: 0;
  flex: 1 1 0%;
  display: grid;
  grid-template-columns: 0.9fr 1.15fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}

.product-pool,
.proposal-tray {
  min-height: 0;
  border-radius: 18px;
  padding: 12px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}
.product-pool {
  border: 1px solid rgba(26, 43, 86, 0.1);
  background: linear-gradient(180deg, #fff, #F8FAFC);
}
.proposal-tray {
  border: 2px dashed rgba(59, 130, 246, 0.55);
  background: linear-gradient(165deg, #EEF5FF, #E0EDFF);
  color: var(--navy);
  position: relative;
}
.product-pool h3,
.proposal-tray h3 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}
.product-pool > .hint,
.proposal-tray > .hint {
  margin: 0 0 8px;
  color: var(--muted);
}
.proposal-scroll {
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.proposal-scroll .float-grid {
  flex: 1 1 auto;
  min-height: 0;
}
.float-grid {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  padding: 2px 2px 8px 0;
}
.product-pool .float-grid {
  flex-direction: column;
  flex-wrap: nowrap;
}
.proposal-tray .float-grid {
  flex-direction: column;
  flex-wrap: nowrap;
}

.empty-proposal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 20px;
  text-align: center;
  color: rgba(26, 43, 86, 0.35);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  pointer-events: none;
  z-index: 1;
}
.empty-proposal[hidden] { display: none !important; }

.product-chip {
  width: 100%;
  min-width: 0;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  border: 1px solid rgba(26, 43, 86, 0.1);
  background: #fff;
  box-shadow: 0 6px 14px rgba(26, 43, 86, 0.06);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-chip:hover { transform: translateY(-1px); }
.product-chip.dragging { opacity: 0.55; cursor: grabbing; }

.chip-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
}
.chip-icon svg { width: 17px; height: 17px; }
.chip-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.product-chip .tag,
.product-chip p {
  display: none;
}
.product-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
}

.product-chip.product-home .chip-icon { background: #3B82F6; }
.product-chip.product-auto .chip-icon { background: #F97316; }
.product-chip.product-umbrella .chip-icon { background: #8B5CF6; }
.product-chip.product-renters .chip-icon { background: #06B6D4; }
.product-chip.product-flood .chip-icon { background: #0EA5E9; }
.product-chip.product-motorcycle .chip-icon { background: #EF4444; }
.product-chip.product-rv .chip-icon { background: #84CC16; }
.product-chip.product-boat .chip-icon { background: #14B8A6; }
.product-chip.product-life .chip-icon { background: #EC4899; }
.product-chip.product-valuables .chip-icon { background: #EAB308; }
.product-chip.product-other .chip-icon,
.product-chip.tier-ancillary .chip-icon { background: #64748B; }

.proposal-tray .product-chip.is-proposal {
  width: 100%;
  border-radius: 999px;
  padding: 10px 14px 10px 10px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(26, 43, 86, 0.1);
  cursor: default;
  touch-action: manipulation;
}
.proposal-tray .product-chip.is-proposal .chip-icon {
  width: 40px;
  height: 40px;
}
.proposal-tray .product-chip.is-proposal .chip-icon svg {
  width: 20px;
  height: 20px;
}
.proposal-tray .product-chip.is-proposal strong {
  font-size: 1.02rem;
}
.proposal-tray .product-chip .btn-link {
  flex: 0 0 auto;
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--coral);
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

.product-chip-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  margin: 0;
  pointer-events: none;
  opacity: 0.94;
  box-shadow: 0 16px 36px rgba(26, 43, 86, 0.22);
  will-change: transform;
}
body.is-chip-dragging {
  cursor: grabbing;
  user-select: none;
}
body.is-chip-dragging .float-grid { touch-action: none; }

.proposal-tray.drag-over {
  border-color: var(--blue);
  background: linear-gradient(165deg, #DBEAFE, #BFDBFE);
  box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.25);
}
.proposal-tray.has-bundle {
  border-color: rgba(234, 179, 8, 0.65);
  background: linear-gradient(165deg, #EEF5FF, #FEF9C3);
}

/* Shared rich footer: process note + powered-by + actions */
.screen-foot-rich {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.foot-process {
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(26, 43, 86, 0.04);
  border: 1px solid rgba(26, 43, 86, 0.08);
}
.foot-process strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 2px;
}
.foot-process p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
}
.foot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.powered-by {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  opacity: 0.85;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 11rem;
}
.powered-by:hover {
  opacity: 1;
  color: var(--navy);
}
.powered-by-label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}
.powered-by-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.powered-by img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 2px;
}
.powered-by strong {
  font-weight: 700;
  color: inherit;
  white-space: nowrap;
}
.screen-foot-rich .foot-actions {
  margin-left: auto;
}
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0 0;
  border: 0;
  background: transparent;
}
.modal-foot .foot-actions {
  margin-left: auto;
}
.status-powered {
  align-items: center;
  margin: 12px 0 0;
}

.builder-agent {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px 0;
}
.agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(26, 43, 86, 0.16);
  background: var(--navy);
  flex: 0 0 auto;
}
.builder-agent-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.builder-agent-copy strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
}
.builder-agent-copy span {
  font-size: 0.84rem;
  color: var(--muted);
}

/* —— Phone —— */
.phone-layout {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  align-items: stretch;
}
.phone-hero {
  position: relative;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(155deg, #F97316, #EAB308);
  color: #fff;
  min-height: 180px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.phone-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}
.phone-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 0%, rgba(18, 31, 63, 0.28) 42%, rgba(18, 31, 63, 0.72) 78%, rgba(18, 31, 63, 0.88) 100%),
    linear-gradient(215deg, transparent 0%, transparent 28%, rgba(26, 43, 86, 0.35) 58%, rgba(26, 43, 86, 0.78) 100%);
  pointer-events: none;
}
.phone-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phone-hero-copy .kicker { color: #fff; opacity: 0.9; }
.phone-hero h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}
.phone-hero-copy p:last-child {
  margin: 0;
  opacity: 0.92;
  font-size: 0.9rem;
}
.phone-form {
  display: grid;
  gap: 10px;
  align-content: start;
  align-self: stretch;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--navy);
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.agreement.is-invalid {
  border: 1px solid #dc2626;
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.form-inline-error {
  margin: 0 0 4px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.agreement {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 12px;
  background: var(--mist);
  border: 1px solid var(--line);
  font-size: 0.82rem;
}
.agreement input { margin-top: 2px; }

/* —— Property —— */
.property-layout {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}
.property-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sky);
  font-weight: 700;
  color: var(--navy);
}
.loading-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
}
.loading-pill[hidden] { display: none !important; }
.property-grid {
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}
.fact-card {
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fact-card label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
}
.fact-card input {
  border: 0;
  outline: none;
  font-weight: 700;
  color: var(--navy);
  background: transparent;
  padding: 0;
}
.property-note {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--mist);
  color: var(--muted);
  font-size: 0.85rem;
}

/* —— Status —— */
.status-body {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 18px;
}
.status-hero {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 12px;
}
.status-seal {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #34d399, #059669);
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.25);
}
.status-badge {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}
.status-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
}
.status-lede {
  margin: 0;
  color: var(--muted);
}
.screen-out-of-area .screen-body {
  justify-content: center;
}
.out-of-area-body {
  align-items: center;
}
.out-of-area-card {
  width: min(100%, 420px);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.out-of-area-dog {
  width: min(72vw, 260px);
  height: auto;
  display: block;
  margin: 0 auto 4px;
  filter: drop-shadow(0 12px 24px rgba(26, 43, 86, 0.12));
}
.out-of-area-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
}
.out-of-area-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.out-of-area-lede {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.45;
  max-width: 34ch;
}
.out-of-area-address {
  margin: 0;
  padding: 8px 12px;
  width: 100%;
  border-radius: 12px;
  background: var(--sky);
  border: 1px solid rgba(26, 43, 86, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  word-break: break-word;
}
.out-of-area-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 36ch;
}
.out-of-area-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  width: 100%;
}
.status-stage-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 14px;
  border-radius: 16px;
  background: var(--sky);
  border: 1px solid rgba(59, 130, 246, 0.18);
}
.status-stage-card.is-ready {
  background: linear-gradient(165deg, #ECFDF5, #D1FAE5);
  border-color: rgba(5, 150, 105, 0.28);
}
.status-stage-card.is-ready .status-stage-label {
  color: #059669;
}
.status-agent-photo {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(26, 43, 86, 0.14);
  background: var(--navy);
}
.status-stage-copy {
  min-width: 0;
  flex: 1 1 auto;
}
.status-stage-label {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
}
.status-stage-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.status-stage-detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.status-stage-tel {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.status-stage-tel:hover {
  color: var(--navy);
}
.status-typing,
.status-mascot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 4px 0 0;
}
.status-typing-video,
.status-mascot-img {
  width: min(100%, 240px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  background: #111;
  border: 1px solid rgba(26, 43, 86, 0.1);
  box-shadow: 0 12px 28px rgba(26, 43, 86, 0.12);
}
.status-typing-caption,
.status-mascot-caption {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}
.status-meta {
  display: grid;
  gap: 8px;
  text-align: left;
}
.status-meta span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-meta strong {
  font-size: 0.95rem;
  color: var(--navy);
}
.status-call { justify-self: center; }
.status-footnote {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* —— Buttons —— */
.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(180deg, #2A3F78, var(--navy));
  color: #fff;
  box-shadow: 0 8px 18px rgba(26, 43, 86, 0.22);
}
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid rgba(26, 43, 86, 0.16);
}
.btn-coral {
  background: linear-gradient(180deg, #fb923c, var(--coral));
  color: #fff;
}
.btn-teal {
  background: linear-gradient(180deg, #2dd4bf, var(--teal));
  color: #fff;
}
.btn-start {
  background: linear-gradient(135deg, #3B82F6, #1A2B56);
  color: #fff;
  padding-right: 12px;
}
.btn-start-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.18);
}
.btn-start-icon svg { width: 16px; height: 16px; }
.btn-link {
  background: none;
  border: 0;
  color: var(--blue);
  font-weight: 800;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

/* —— Overlay / toast / modal / bundle —— */
.welcome-demo-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
}
.welcome-demo-overlay[hidden] { display: none !important; }
.welcome-demo-scrim {
  position: absolute;
  inset: 0;
  background: rgba(247, 244, 238, 0.92);
}
.welcome-demo-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px;
}
.welcome-demo-logo {
  width: min(52vw, 220px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(26, 43, 86, 0.12));
}
.welcome-demo-powered {
  display: flex;
  justify-content: center;
  margin-top: -2px;
}
.welcome-demo-powered .powered-by {
  align-items: center;
  text-align: center;
  max-width: none;
  opacity: 0.9;
}
.welcome-demo-title {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  max-width: 16ch;
  line-height: 1.15;
}
.welcome-demo-phone:not(.is-flying) {
  width: min(42vw, calc(64dvh * 9 / 19), 340px);
  max-height: 64dvh;
}
.welcome-demo-phone.is-flying {
  position: fixed;
  z-index: 90;
  margin: 0;
  transform-origin: top left;
}
body.welcome-demo-open { overflow: hidden; }
body.welcome-demo-open .welcome-media .phone-shell { visibility: hidden; }

.save-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 100;
}
.save-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bundle-pop {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  background: rgba(26, 43, 86, 0.35);
  padding: 20px;
}
.bundle-pop[hidden] { display: none !important; }
.bundle-pop-card {
  max-width: 360px;
  width: 100%;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}
.bundle-pop-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.bundle-pop-card h3 {
  margin: 6px 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
}
.bundle-pop-card p { color: var(--muted); }
.bundle-pop-burst {
  font-size: 1.4rem;
  color: var(--gold);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(26, 43, 86, 0.4);
  padding: 18px;
}
.modal-backdrop[hidden] { display: none !important; }
.modal {
  width: min(560px, 100%);
  max-height: min(80dvh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.modal h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
}
.modal p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.modal-lede {
  margin: 0 0 14px;
  color: var(--navy) !important;
  font-weight: 600;
}
.riskley-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.riskley-steps li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--mist);
  border: 1px solid var(--line);
}
.riskley-steps strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
}
.riskley-steps span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
}
.modal-note {
  margin: 14px 0 0;
  font-size: 0.84rem !important;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .welcome-grid,
  .builder-layout,
  .phone-layout,
  .property-grid {
    grid-template-columns: 1fr;
  }

  .welcome-main .kicker,
  .welcome-directions {
    display: none !important;
  }

  .welcome-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow: hidden;
  }
  .welcome-main {
    display: contents;
  }
  .welcome-main h1 {
    display: block;
    order: 1;
    flex: 0 0 auto;
    font-size: 1.28rem;
    max-width: none;
    line-height: 1.15;
    margin: 0;
  }
  .welcome-mascot-col {
    order: 2;
    position: relative;
    flex: 1 1 0;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    overflow: hidden;
  }
  .address-panel {
    order: 3;
    flex: 0 0 auto;
    margin-top: 0;
    padding: 12px 14px;
    gap: 6px;
  }
  .address-panel .hint { display: none; }
  .address-panel input[type="text"] { font-size: 16px; padding: 11px; }
  .address-panel.is-verified input[type="text"] { padding-right: 2.6rem; }
  .address-verified { padding: 6px; }
  .address-verified-text { display: none; }

  .mascot-media-row {
    align-items: flex-end;
    justify-content: center;
    gap: 8px 14px;
    min-height: 0;
    padding-top: 8px;
    flex: 1 1 auto;
  }
  .riskley-mascot {
    width: min(30vw, 118px);
    max-width: 118px;
    max-height: min(240px, 100%);
    height: auto;
    object-fit: contain;
    flex: 0 1 auto;
  }
  .speech-bubble {
    position: absolute;
    z-index: 3;
    top: 4px;
    left: 2%;
    right: auto;
    width: min(58vw, 210px);
    max-width: 210px;
    padding: 9px 11px;
    font-size: 0.76rem;
    line-height: 1.25;
    border-width: 1.5px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(26, 43, 86, 0.14);
    pointer-events: none;
    text-wrap: balance;
  }
  .speech-bubble::after {
    display: block;
    left: auto;
    right: 18%;
    bottom: -7px;
    width: 12px;
    height: 12px;
  }

  .welcome-media-note { display: none; }
  .welcome-media {
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
  }

  .screen-welcome.is-demo-compact .phone-shell {
    width: min(128px, 36vw) !important;
    min-width: 118px;
    max-width: 140px !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 9 / 19;
    flex: 0 0 auto;
  }

  .screen-welcome .screen-foot-rich {
    padding: 8px 10px 10px;
  }
  .screen-welcome #openRiskleyInfo {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
  .screen-welcome .screen-body.welcome-body {
    padding: 12px 12px 8px;
    gap: 8px;
  }

  body.is-addressing {
    overflow: hidden;
  }
  body.is-addressing .topbar,
  body.is-addressing .welcome-mascot-col,
  body.is-addressing .welcome-main h1,
  body.is-addressing .screen-welcome .screen-foot {
    visibility: hidden;
    pointer-events: none;
  }
  body.is-addressing::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(26, 43, 86, 0.35);
  }
  body.is-addressing .address-panel {
    margin: 0;
    box-shadow: 0 16px 40px rgba(26, 43, 86, 0.22);
  }
  body.is-addressing .address-panel .hint {
    display: block;
    font-size: 0.78rem;
  }

  /* Side-by-side Available | Proposal — no page scroll */
  #screen-builder .screen-body {
    padding: 10px 10px 6px;
    gap: 8px;
  }
  #screen-builder .builder-intro {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }
  #screen-builder .builder-intro-copy .kicker {
    display: none;
  }
  #screen-builder .builder-intro-copy h2 {
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.2;
  }
  #screen-builder .builder-intro-copy .hint {
    display: none;
  }
  #screen-builder .btn-bundle {
    width: auto;
    flex: 0 0 auto;
    padding: 6px 8px 6px 6px;
    gap: 6px;
    border-radius: 12px;
  }
  #screen-builder .btn-bundle-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }
  #screen-builder .btn-bundle-icon svg {
    width: 15px;
    height: 15px;
  }
  #screen-builder .btn-bundle-cue,
  #screen-builder .btn-bundle-text small {
    display: none;
  }
  #screen-builder .btn-bundle-text strong {
    font-size: 0.78rem;
  }
  #screen-builder .builder-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr);
    gap: 8px;
  }
  #screen-builder .product-pool,
  #screen-builder .proposal-tray {
    padding: 8px;
    border-radius: 14px;
  }
  #screen-builder .product-pool h3,
  #screen-builder .proposal-tray h3 {
    font-size: 0.82rem;
    margin: 0 0 6px;
  }
  #screen-builder .product-pool > .hint,
  #screen-builder .proposal-tray > .hint {
    display: none;
  }
  #screen-builder .empty-proposal {
    font-size: 0.82rem;
    padding: 10px;
  }
  #screen-builder .float-grid {
    gap: 6px;
  }
  #screen-builder .product-pool .float-grid {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  #screen-builder .product-pool .product-chip,
  #screen-builder .proposal-tray .product-chip.is-proposal {
    width: 100%;
    padding: 5px 8px 5px 5px;
    gap: 6px;
    border-radius: 999px;
  }
  #screen-builder .product-pool .product-chip strong,
  #screen-builder .proposal-tray .product-chip.is-proposal strong {
    font-size: 0.72rem;
  }
  #screen-builder .product-pool .chip-icon,
  #screen-builder .proposal-tray .product-chip.is-proposal .chip-icon {
    width: 24px;
    height: 24px;
  }
  #screen-builder .product-pool .chip-icon svg,
  #screen-builder .proposal-tray .product-chip.is-proposal .chip-icon svg {
    width: 12px;
    height: 12px;
  }
  #screen-builder .proposal-tray .product-chip .btn-link {
    font-size: 0;
    line-height: 0;
    text-decoration: none;
    padding: 2px;
  }
  #screen-builder .proposal-tray .product-chip .btn-link::before {
    content: "×";
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 800;
  }
  #screen-builder .builder-agent {
    display: none;
  }
  .screen-foot-rich {
    padding: 8px 10px 10px;
    gap: 6px;
  }
  .foot-process {
    padding: 7px 9px;
  }
  .foot-process strong {
    font-size: 0.74rem;
  }
  .foot-process p {
    font-size: 0.7rem;
  }

  #screen-phone .phone-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
  }
  #screen-phone .phone-hero {
    flex: 1 1 200px;
    min-height: 176px;
    max-height: min(260px, 38dvh);
    padding: 12px 14px;
  }
  #screen-phone .phone-hero-video {
    object-position: center 18%;
  }
  #screen-phone .phone-hero-copy {
    gap: 2px;
  }
  #screen-phone .phone-hero-copy p:last-child {
    display: none;
  }
  #screen-phone .phone-hero h3 {
    font-size: 1.15rem;
  }
  #screen-phone .phone-form {
    flex: 0 0 auto;
    min-width: 0;
  }
  #screen-phone .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  #screen-phone .agreement {
    flex: 0 0 auto;
    font-size: 0.8rem;
    padding: 8px 10px;
  }
  #screen-phone .foot-process {
    display: none;
  }

  .property-grid { grid-template-columns: 1fr 1fr; }

  .call-chip span { display: none; }
  .screen-body { padding: 14px; }
}

@media (min-width: 901px) {
  #screen-phone .phone-form {
    align-self: center;
    height: fit-content;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(26, 43, 86, 0.1);
    box-shadow: 0 10px 24px rgba(26, 43, 86, 0.06);
  }
  #screen-phone .phone-form .field { gap: 3px; }
  #screen-phone .phone-form .field input { padding: 9px 11px; }
  #screen-phone .phone-form .agreement {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .welcome-demo-phone:not(.is-flying) {
    width: min(38vw, calc(66dvh * 9 / 19), 380px);
    max-height: 66dvh;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .riskley-mascot { width: min(48vw, 170px); max-width: 170px; }
  .welcome-pitch { gap: 8px; }
  .welcome-directions { padding: 10px 12px; }
  .builder-agent { display: none; }
}

@media (max-height: 760px) {
  .builder-agent { display: none; }
}

@media (max-width: 900px) and (max-height: 740px) {
  .screen-welcome .foot-process,
  #screen-phone .foot-process {
    display: none;
  }
  .speech-bubble {
    display: none;
  }
  .mascot-media-row {
    padding-top: 0;
  }
  #screen-phone .phone-hero {
    min-height: 160px;
    max-height: min(240px, 36dvh);
  }
}

@media (max-width: 900px) and (max-height: 560px) {
  .riskley-mascot {
    display: none;
  }
}

@media (max-width: 900px) and (max-height: 480px) {
  .welcome-mascot-col {
    display: none;
  }
  #screen-phone .phone-hero {
    flex: 0 0 auto;
    min-height: 88px;
    max-height: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-grid,
  .welcome-main,
  .welcome-pitch,
  .welcome-directions,
  .phone-shell,
  .phone-bezel,
  .address-panel,
  .product-chip {
    transition: none !important;
  }
}

.screen-welcome.is-demo-instant,
.screen-welcome.is-demo-instant * {
  transition: none !important;
}
