/* My plan: address -> their property with a starter plan */
.mp { padding-top: calc(var(--nav-h) + 48px); background: var(--bone); min-height: 80vh; }
.mp-intro { max-width: 760px; }
.mp-intro h1 { font-family: var(--display); font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 16px; }
.mp-search { position: relative; display: flex; gap: 10px; margin-top: 28px; }
.mp-search input { flex: 1; min-width: 0; min-height: 60px; padding: 0 20px; font: inherit; font-size: 1.08rem; border: 1.5px solid var(--line); border-radius: 100px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.mp-search input:focus { outline: none; border-color: var(--navy-2); }
.mp-suggest { position: absolute; z-index: 5; top: 66px; left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.mp-suggest button { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; font: inherit; font-weight: 600; text-align: left; color: var(--ink); background: none; border: 0; border-radius: var(--r-sm); cursor: pointer; }
.mp-suggest button:hover, .mp-suggest button:focus-visible { background: var(--bone); }
.mp-suggest span { color: var(--muted); font-weight: 500; }
.mp-status { margin: 16px 0 0; font-weight: 600; color: var(--navy); }
.mp-status:not(.err)::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; border: 2.5px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: mpspin .8s linear infinite; }
.mp-status.err { color: var(--red); }
.mp-status a { color: inherit; }
@keyframes mpspin { to { transform: rotate(360deg); } }
.mp-small { margin-top: 12px; font-size: .9rem; color: var(--muted); }

.mp-result { margin-top: 56px; }
.mp-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.mp-head h2 { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0 0 4px; }
.mp-head .muted { margin: 0; font-size: .92rem; }
.mp-toggle { display: inline-flex; padding: 4px; background: #fff; border-radius: 100px; box-shadow: var(--shadow); }
.mp-toggle button { padding: 10px 18px; font: inherit; font-weight: 700; font-size: .92rem; color: var(--muted); background: none; border: 0; border-radius: 100px; cursor: pointer; }
.mp-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.mp-stage { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; background: #DCD8CF; box-shadow: var(--shadow-lg); }
.mp-stage .mp-photo, .mp-stage .mp-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mp-stage .mp-svg { font-family: var(--font); }
.mp-stage[data-mode="photo"] .mp-plan-only { display: none; }
.mp-stage[data-mode="plan"] .mp-photo, .mp-stage[data-mode="plan"] .mp-photo-only { display: none; }
.mp-gmap { position: absolute; inset: 0; }
.mp-stage:not(.has-gmap) .mp-gmap { visibility: hidden; }
.mp-stage.has-gmap[data-mode="photo"] > .mp-photo, .mp-stage.has-gmap[data-mode="photo"] > .mp-svg { display: none; }
.mp-stage[data-mode="plan"] .mp-gmap { display: none; }
.mp-ov { position: absolute; pointer-events: none; }
.mp-stage-note { position: absolute; z-index: 3; left: 12px; top: 12px; max-width: min(320px, calc(100% - 140px)); margin: 0; padding: 8px 12px;
  font-size: .8rem; line-height: 1.35; color: var(--ink); background: rgba(255,255,255,.93); border-radius: 10px; box-shadow: 0 2px 10px rgba(20,30,56,.18); pointer-events: none; }
.mp-stage-note b { color: var(--red); }
.mp-drag-hint { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 200px); margin: 0; padding: 7px 14px; text-align: center;
  font-size: .8rem; font-weight: 700; color: #fff; background: rgba(175,27,26,.92); border-radius: 100px; box-shadow: 0 2px 10px rgba(20,30,56,.25); pointer-events: none; }
.mp-stage.dragging { cursor: grabbing !important; touch-action: none; }
.mp-stage.dragging .mp-drag-hint { opacity: 0; }
.mp-undo { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; font: inherit; font-weight: 700; font-size: .9rem; color: var(--ink);
  background: #fff; border: 0; border-radius: 100px; box-shadow: var(--shadow); cursor: pointer; }
.mp-undo svg { width: 18px; height: 18px; }
.mp-undo:disabled { opacity: .45; cursor: default; }
.mp-credit { margin: 10px 4px 0; font-size: .8rem; color: var(--muted-2); }

.mp-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, 1fr); gap: 24px; align-items: start; }
.mp-under { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.mp-under .mp-credit { margin: 0; flex: 1; min-width: 220px; }
.mp-side { position: static; }
.mp-side h3 { font-size: 1.35rem; }
.mp-side .mp-list li { padding: 14px 0; }
.mp-side .mp-list b { font-size: 1.05rem; }

/* red flags: what we see from above */
.mp-flags { padding: clamp(22px, 3.4vw, 36px); background: #FFF4F2; border: 2px solid #C8102E; border-radius: var(--r-lg); }
.mp-flags-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #C8102E; }
.mp-flags-head svg { width: 34px; height: 34px; flex: none; }
.mp-flags-head h3 { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--ink); }
.mp-flags-head h3 span { display: inline-block; margin-left: 8px; padding: 4px 12px; vertical-align: middle; font-family: var(--font); font-size: .9rem; font-weight: 800; color: #fff; background: #C8102E; border-radius: 100px; }
.mp-flaglist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mp-redflag, .mp-noflag { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: #fff; border-left: 6px solid #C8102E; border-radius: var(--r); box-shadow: var(--shadow); }
.mp-noflag { border-left-color: var(--green); }
.mp-fnum { flex: none; display: grid; place-items: center; width: 34px; height: 34px; font-weight: 800; font-size: 1.05rem; color: #fff; background: #C8102E; border-radius: 6px 12px 12px 6px; }
.mp-redflag b, .mp-noflag b { display: block; font-size: 1.15rem; line-height: 1.25; margin-bottom: 4px; color: var(--ink); }
.mp-redflag div > span, .mp-noflag div > span { color: var(--muted); line-height: 1.5; font-size: 1.02rem; }
.mp-info { margin-top: 18px; padding-top: 6px; }
.mp-card { background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }
.mp-card h3 { margin: 0 0 14px; font-size: 1.2rem; }
.mp-list { list-style: none; margin: 0; padding: 0; }
.mp-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.mp-list li:first-child { border-top: 0; padding-top: 0; }
.mp-list b { display: block; margin-bottom: 2px; }
.mp-list span { color: var(--muted); line-height: 1.5; }

.mp-lead-wrap { max-width: 640px; margin: 32px auto 0; }
.mp-lead h3 { font-size: 1.5rem; }
.mp-lead input[type=email], .mp-lead input[type=tel] { width: 100%; min-height: 52px; padding: 0 16px; font: inherit; border: 1.5px solid var(--line); border-radius: var(--r-sm); }
.mp-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .88rem; color: var(--muted); }
.mp-check input { margin-top: 3px; }
.mp-chips { border: 0; padding: 0; margin: 0; }
.mp-chips legend { font-size: .85rem; font-weight: 700; margin-bottom: 8px; }
.mp-chips label { display: inline-block; margin: 0 6px 6px 0; }
.mp-chips input { position: absolute; opacity: 0; }
.mp-chips span { display: inline-block; padding: 9px 16px; border-radius: 100px; border: 1.5px solid var(--line); font-weight: 600; font-size: .92rem; cursor: pointer; }
.mp-chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.mp-chips input:focus-visible + span { outline: 3px solid var(--red-2); outline-offset: 2px; }
.mp-lead .btn-block { margin-top: 20px; }
.mp-hp { position: absolute; left: -9999px; }
.mp-err { color: var(--red); font-weight: 600; margin: 12px 0 0; }
.mp-fine { font-size: .8rem; color: var(--muted-2); margin: 14px 0 0; }

.mp-done h3 { font-size: 1.5rem; margin: 0 0 4px; }
.mp-price { margin: 18px 0 4px; font-size: 1.1rem; }
.mp-price .was { text-decoration: line-through; color: var(--muted-2); }
.mp-price b { font-size: 2rem; font-family: var(--display); color: var(--ink); }
.mp-price .off { color: var(--green); font-weight: 700; }
.mp-code { margin: 20px 0; padding: 16px 20px; text-align: center; border: 1.5px dashed var(--gold); background: #FFF8EC; border-radius: var(--r); }
.mp-code span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.mp-code b { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 1.7rem; letter-spacing: .08em; margin: 4px 0; }
.mp-code small { color: var(--muted); }
.mp-done .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  .mp-main { grid-template-columns: 1fr; }
  .mp-side { position: static; }
}
@media (max-width: 760px) {
  .mp-search { flex-direction: column; }
  .mp-done .btn-row .btn { width: 100%; }
}

.mp-flags-head h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.mp-fix { margin: 10px 0 0; padding: 10px 12px; background: #EEF6F1; border-radius: 10px; color: var(--ink); font-weight: 600; line-height: 1.45; }
.mp-fix em { display: block; font-style: normal; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 2px; }
.mp-setup { margin-top: 24px; }
@media (min-width: 901px) { .mp-mapcol { position: sticky; top: calc(var(--nav-h) + 16px); } }
.mp-setup .mp-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 28px; }
.mp-setup .mp-list li:first-child { padding-top: 12px; border-top: 1px solid var(--line); }
.mp-setup .mp-list li { padding: 12px 0; }

/* red alert banner (layout D) */
.mp-alert { display: flex; gap: 14px; align-items: center; margin: 0 0 22px; padding: 16px 20px; color: var(--ink, #141E38); background: #FDF0EE; border: 1px solid #F3CFC9; border-radius: var(--r); }   /* Lasse 2026-11-19: calm 'What we noticed', not a red alarm */
.mp-alert svg { color: #C8102E; }
.mp-alert svg { width: 34px; height: 34px; flex: none; }
.mp-alert b { display: block; font-size: 1.15rem; }
.mp-alert span { color: var(--muted, #5b6274); }
/* right column: red flags first, the system card smaller under them (layout B) */
.mp-main { grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr) !important; }
.mp-side { display: grid; gap: 20px; }
.mp-redflag { padding: 14px 16px; }
.mp-fnum { width: 30px; height: 30px; font-size: 1rem; color: #fff !important; }
.mp-redflag b { font-size: 1.05rem; }
.mp-redflag div > span { font-size: .95rem !important; }
.mp-flaglist { gap: 10px; }
.mp-why { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #F3D9D6; color: var(--ink); line-height: 1.5; font-size: .96rem; }
.mp-why em { display: block; margin-bottom: 2px; font-style: normal; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #C8102E; }
/* top: address left, the system right (Lasse 2026-10-30) */
.mp-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.mp-top .mp-intro { max-width: none; }
.mp-buy { position: relative; overflow: hidden; padding: clamp(22px, 2.6vw, 30px); color: #fff; border-radius: var(--r-lg);
  background: radial-gradient(120% 90% at 100% 0%, rgba(242,194,48,.18), transparent 55%), linear-gradient(160deg, #22325C 0%, #141E38 70%);
  box-shadow: 0 30px 70px rgba(20,30,56,.28), inset 0 0 0 1px rgba(255,255,255,.06); }
.mp-buy .eyebrow { margin-bottom: 6px; color: #F2C230; }
.mp-buy h3 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 3.2vw, 2.6rem); line-height: 1.02; color: #fff; letter-spacing: -.01em; }
.mp-buy-sub { margin: 6px 0 16px; color: rgba(255,255,255,.72); }
.mp-buy-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 0 0 16px; }
.mp-buy-stats div { padding: 10px 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; }
.mp-buy-stats b { display: block; font-family: var(--display); font-size: 1.25rem; line-height: 1.1; }
.mp-buy-stats span { font-size: .78rem; color: rgba(255,255,255,.65); }
.mp-buy-feats { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.mp-buy-feats li { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.9); font-size: .95rem; }
.mp-buy-feats .ic { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .8rem; font-weight: 800; color: #141E38; background: #F2C230; }
.mp-buy-feats .ic svg { width: 14px; height: 14px; }
.mp-buy-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 0 14px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.mp-buy-price .was { order: 2; text-decoration: line-through; color: rgba(255,255,255,.5); }
.mp-buy-price b { order: 1; font-family: var(--display); font-size: clamp(2.2rem, 3.6vw, 2.8rem); line-height: 1; }
.mp-buy-price .off { order: 3; flex-basis: 100%; font-size: .9rem; font-weight: 700; color: #7DDBA3; }
.mp-buy-save { display: block; width: 100%; margin-top: 10px; padding: 6px; font: inherit; font-size: .9rem; color: rgba(255,255,255,.85); background: none; border: 0; cursor: pointer; }
.mp-buy-complete { margin: -6px 0 16px; font-size: .92rem; line-height: 1.5; color: rgba(255,255,255,.75); }
.mp-buy-complete b { color: #fff; }
.mp-inst { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 14px; padding: 12px 14px; font: inherit; font-weight: 700; color: #fff; text-align: left;
  background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.22); border-radius: 12px; cursor: pointer; }
.mp-inst:hover { border-color: rgba(255,255,255,.45); }
.mp-inst .box { flex: none; width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.7); border-radius: 6px; display: grid; place-items: center; }
.mp-inst[aria-pressed="true"] { background: rgba(125,219,163,.14); border-color: #7DDBA3; }
.mp-inst[aria-pressed="true"] .box { background: #7DDBA3; border-color: #7DDBA3; }
.mp-inst[aria-pressed="true"] .box::after { content: ""; width: 10px; height: 6px; border-left: 3px solid #141E38; border-bottom: 3px solid #141E38; transform: rotate(-45deg) translate(1px, -1px); }
/* before an address: a quiet preview */
.mp-buy.is-empty { background: linear-gradient(160deg, #22325C, #141E38); opacity: .96; }
.mp-buy.is-empty h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
@media (max-width: 900px) { .mp-top { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .mp-main { grid-template-columns: 1fr !important; } }

/* 2026-11-19: walk-through promise under the order button */
.mp-buy-walk { margin: 10px 0 2px; font-size: .95rem; font-weight: 600; color: var(--ink, #141E38); text-align: center; }
