/* =====================================================================
   DISEENI — PHASE 2 (intent-driven map)  ·  pairs with phase2.js
   ===================================================================== */

.p2-root {
    position: absolute;
    inset: 0;
    z-index: 4;                 /* above heat canvas (2) & smoke (3), below hint (5) & demo notice (6) */
    display: none;
    opacity: 0;
    transition: opacity 650ms ease;
    border-radius: inherit;
    overflow: hidden;
    font-family: var(--font-ui);
}
.p2-root.is-on { display: block; }
.p2-root.is-visible { opacity: 1; }

.p2-map {
    position: absolute;
    inset: 0;
    background: #f2efe9;
}
/* national view: any area outside the Indonesia image reads as sea */
.p2-root.is-pricing .p2-map { background: #d4e3e8; }
/* keeps the stage from flashing navy during the fake zoom */
.p2-root.is-on { background: #e6e3da; }
.p2-root.mode-heat .p2-map { cursor: crosshair; }
.p2-root.mode-heat .p2-map.leaflet-container { cursor: crosshair; }
.p2-map .leaflet-control-attribution {
    font-size: 9px;
    background: rgba(255, 255, 255, 0.7);
    color: #555;
}

.p2-heat {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.7;               /* lowered so the streets underneath stay readable */
    image-rendering: pixelated;
    transition: opacity 400ms ease;
    z-index: 450;               /* above Leaflet panes (tiles 200, overlays 400) */
}

/* ── HOTSPOT buffers: navy 30% fill + dotted outline marching clockwise ── */
.p2-buffer {
    cursor: pointer;
    animation: p2-march 2.4s linear infinite;
    transition: fill-opacity 250ms ease;
}
.p2-buffer.is-active { animation-duration: 1.1s; }
/* Leaflet draws circles counter-clockwise → increasing offset moves the dots clockwise */
@keyframes p2-march {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: 40.4; }
}
@media (prefers-reduced-motion: reduce) { .p2-buffer { animation: none; } }

.p2-centroid {
    background: none;
    border: none;
}
.p2-centroid span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-deep, #031F56);
    color: #fff;
    border: 2px solid #fff;
    box-sizing: border-box;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(3, 31, 86, 0.45);
    cursor: pointer;
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), background 160ms ease;
}
.p2-centroid:hover span { transform: scale(1.15); }
.p2-centroid.is-active span { transform: scale(1.25); background: var(--brand-mid, #064ACF); }
.p2-centroid.p2-pop-in span { animation: p2-pop 420ms cubic-bezier(0.22, 1.4, 0.36, 1); }
@keyframes p2-pop { from { transform: scale(0.2); } to { transform: scale(1); } }

/* ── mobile instruction chip (desktop uses the top-bar hook) ── */
.p2-hint {
    display: none;
    position: absolute;
    top: 44px;              /* clears the "Data hanya ilustrasi" badge on mobile */
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--brand-deep, #031F56);
    color: #fff;
    font-weight: 600;
    font-size: 12.5px;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(3, 12, 40, 0.3);
    pointer-events: none;
}
.p2-root.is-mobile .p2-hint { display: block; }

/* ── shared bits ── */
.p2-x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(3, 31, 86, 0.06);
    color: #3a4560;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}
.p2-x:hover { background: rgba(3, 31, 86, 0.12); color: var(--brand-deep, #031F56); }

.p2-wa-btn,
.p2-wa-sm {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: #1faa59;
    color: #fff;
    border-radius: 12px;
    transition: background 160ms ease, transform 160ms ease;
}
.p2-wa-btn:hover, .p2-wa-sm:hover { background: #178f4a; }
.p2-wa-btn:active, .p2-wa-sm:active { transform: scale(0.98); }
.p2-wa-btn svg, .p2-wa-sm svg { flex: none; }

/* ── HOTSPOT PANEL — floating card sliding in from the right ── */
.p2-panel {
    position: absolute;
    top: 14px;
    right: 14px;
    bottom: 14px;
    width: min(390px, calc(100% - 28px));
    z-index: 1000;
    box-sizing: border-box;
    padding: 18px 18px 0;
    overflow-y: auto;
    background: #fff;
    color: #1d2436;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(3, 12, 40, 0.35), 0 2px 8px rgba(3, 12, 40, 0.12);
    transform: translateX(calc(100% + 30px));
    opacity: 0;
    pointer-events: none;
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease;
}
.p2-panel.open { transform: translateX(0); opacity: 1; pointer-events: auto; }

.p2-panel-head { display: flex; align-items: center; min-height: 28px; margin-bottom: 10px; }
.p2-panel-head .p2-x { top: 14px; right: 14px; }
.p2-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    background: rgba(3, 31, 86, 0.07);
    color: var(--brand-deep, #031F56);
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 0.02em;
}
.p2-badge-dot {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-deep, #031F56);
    color: #fff;
    font-size: 10.5px;
}
.p2-panel-title {
    margin: 0 0 3px;
    font-family: var(--font-hook, inherit);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.2;
    color: var(--brand-deep, #031F56);
}
.p2-panel-sub { margin: 0 0 14px; font-size: 11.5px; color: #7a8296; }

.p2-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.p2-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(3, 31, 86, 0.05);
}
.p2-stat-num { font-weight: 800; font-size: 20px; line-height: 1.1; color: var(--brand-deep, #031F56); font-variant-numeric: tabular-nums; }
.p2-stat-lbl { font-size: 11px; color: #6b7388; }

.p2-table-wrap { margin: 0 -4px; }
.p2-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.p2-table thead th {
    padding: 0 4px 7px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a91a3;
    text-align: right;
    border-bottom: 1px solid rgba(3, 31, 86, 0.1);
}
.p2-table thead th:first-child { text-align: left; }
.p2-table tbody th, .p2-table td { padding: 6px 4px; border-bottom: 1px solid rgba(3, 31, 86, 0.06); vertical-align: middle; }
.p2-table tbody th { text-align: left; font-weight: 600; }
.p2-table td { text-align: right; color: #4a5268; font-variant-numeric: tabular-nums; white-space: nowrap; }
.p2-table td.is-focus { color: var(--brand-deep, #031F56); font-weight: 700; }
.p2-ind { display: block; color: #1d2436; font-size: 12.5px; }
.p2-ind-sub { display: block; font-weight: 500; font-size: 10.5px; color: #8a91a3; margin-top: 1px; }

.p2-foot { margin: 10px 0 4px; font-size: 10.5px; line-height: 1.45; color: #8a91a3; }

/* CTA stays visible at the bottom of the panel while the table scrolls */
.p2-cta-dock {
    position: sticky;
    bottom: 0;
    margin: 0 -18px;
    padding: 18px 18px 16px;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff 16px);
}
.p2-wa-btn { padding: 12px 14px; font-size: 12.5px; line-height: 1.35; }
.p2-wa-btn strong { font-weight: 700; }
.p2-wa-btn svg { width: 22px; height: 22px; }

/* ── HEAT CARD (click anywhere) ── */
.p2-pin {
    position: absolute;
    z-index: 990;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: var(--brand-deep, #031F56);
    border: 2.5px solid #fff;
    box-shadow: 0 2px 8px rgba(3, 12, 40, 0.5);
    opacity: 0;
    transform: scale(0.3);
    pointer-events: none;
    transition: opacity 180ms ease, transform 260ms cubic-bezier(0.22, 1.4, 0.36, 1);
}
.p2-pin.open { opacity: 1; transform: scale(1); }
.p2-pin.open::after {
    content: '';
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: p2-ping 1.6s ease-out infinite;
}
@keyframes p2-ping { from { transform: scale(0.4); opacity: 0.9; } to { transform: scale(1.6); opacity: 0; } }

.p2-pop {
    --arrow-x: 50%;
    position: absolute;
    z-index: 1000;
    width: 250px;
    box-sizing: border-box;
    padding: 14px 16px 14px;
    background: #fff;
    color: #1d2436;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(3, 12, 40, 0.35), 0 2px 6px rgba(3, 12, 40, 0.12);
    opacity: 0;
    transform: translateY(6px) scale(0.97);
    transform-origin: var(--arrow-x) 100%;
    pointer-events: none;
    transition: opacity 200ms ease, transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.p2-pop.below { transform-origin: var(--arrow-x) 0; transform: translateY(-6px) scale(0.97); }
.p2-pop.open { opacity: 1; transform: none; pointer-events: auto; }
.p2-pop::after {
    content: '';
    position: absolute;
    left: var(--arrow-x);
    bottom: -6px;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    background: #fff;
    transform: rotate(45deg);
    border-radius: 2px;
}
.p2-pop.below::after { bottom: auto; top: -6px; }
.p2-pop .p2-x { top: 8px; right: 8px; width: 24px; height: 24px; }

.p2-pop-title {
    margin: 0 28px 8px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(3, 31, 86, 0.1);
    font-weight: 700;
    font-size: 13.5px;
    color: var(--brand-deep, #031F56);
}
.p2-pop-big { margin: 0; font-weight: 800; font-size: 22px; line-height: 1.15; color: var(--brand-deep, #031F56); font-variant-numeric: tabular-nums; }
.p2-pop-sub { margin: 2px 0 10px; font-size: 11px; line-height: 1.4; color: #6b7388; }
.p2-pop-meter { position: relative; height: 6px; border-radius: 3px; margin: 0 0 12px; }
.p2-pop-meter i {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--brand-deep, #031F56);
    box-sizing: border-box;
}
.p2-pop-coords { margin: 0 0 10px; font-size: 11.5px; }
.p2-pop-coords div { display: flex; justify-content: space-between; padding: 2px 0; }
.p2-pop-coords dt { color: #8a91a3; }
.p2-pop-coords dd { margin: 0; color: #1d2436; font-variant-numeric: tabular-nums; }
.p2-link {
    display: block;
    margin: 0 0 10px;
    padding: 0;
    border: none;
    background: none;
    color: var(--brand-mid, #064ACF);
    font: 600 11.5px var(--font-ui);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.p2-wa-sm { justify-content: center; padding: 8px 12px; font-weight: 600; font-size: 12px; border-radius: 999px; }

/* ── LEGEND (top-bar right slot + mobile legend) ── */
.p2-legend {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 260px;
    font-family: var(--font-ui);
    font-size: var(--fs-t3, 11px);
    color: rgba(30, 30, 40, 0.75);
}
.p2-leg-title { font-weight: 700; letter-spacing: 0.02em; color: rgba(30, 30, 40, 0.7); }
.p2-leg-row { display: flex; align-items: center; gap: 8px; }
.p2-leg-buffer {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(3, 31, 86, 0.3);
    border: 2px dotted var(--brand-deep, #031F56);
    box-sizing: border-box;
}
.p2-leg-dot {
    flex: none;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-deep, #031F56);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
}
.p2-leg-ramp { height: 8px; border-radius: 4px; }
.p2-leg-ends { display: flex; justify-content: space-between; font-weight: 600; color: rgba(30, 30, 40, 0.6); }
.p2-leg-note { color: rgba(30, 30, 40, 0.5); font-style: italic; }
.p2-leg-btn {
    align-self: flex-start;
    margin-top: 2px;
    padding: 5px 11px;
    border: none;
    border-radius: 999px;
    background: var(--brand-deep, #031F56);
    color: #fff;
    font: 600 11px var(--font-ui);
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(6, 74, 207, 0.5);
    animation: p2-nudge 2.6s ease-out infinite;
    transition: background 160ms ease;
}
.p2-leg-btn:hover { background: var(--brand-mid, #064ACF); animation: none; }
@keyframes p2-nudge {
    0% { box-shadow: 0 0 0 0 rgba(6, 74, 207, 0.45); }
    70%, 100% { box-shadow: 0 0 0 8px rgba(6, 74, 207, 0); }
}

/* ── VITALITY EXPLAINER ── */
.p2-vit {
    position: absolute;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(3, 12, 40, 0.45);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
}
.p2-vit.open { opacity: 1; pointer-events: auto; }
.p2-vit-card {
    position: relative;
    width: min(460px, 100%);
    max-height: calc(100% - 8px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 20px 22px 18px;
    background: #fff;
    color: #1d2436;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(3, 12, 40, 0.4);
    transform: translateY(10px) scale(0.98);
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.p2-vit.open .p2-vit-card { transform: none; }
.p2-vit-eyebrow { margin: 0 0 2px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-mid, #064ACF); }
.p2-vit-title { margin: 0 0 10px; font-family: var(--font-hook, inherit); font-weight: 700; font-size: 20px; color: var(--brand-deep, #031F56); }
.p2-vit-body { margin: 0 0 8px; font-size: 12.5px; line-height: 1.55; color: #3a4258; }
.p2-vit-scale { margin: 12px 0 6px; font-size: 11px; font-weight: 600; color: #6b7388; }
.p2-vit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; gap: 4px 14px; }   /* read down the left column first */
.p2-vit-list li { display: flex; align-items: center; gap: 7px; font-size: 11.5px; }
.p2-vit-list i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.p2-vit-list span { flex: 1; font-weight: 600; color: #1d2436; }
.p2-vit-note { margin: 10px 0 0; font-size: 10.5px; line-height: 1.5; color: #8a91a3; }

/* ── MOBILE: panel becomes a bottom sheet ── */
.p2-root.is-mobile .p2-panel {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-height: 72%;
    transform: translateY(calc(100% + 20px));
}
.p2-root.is-mobile .p2-panel.open { transform: translateY(0); }
.p2-root.is-mobile .p2-vit-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }

/* =====================================================================
   PHASE 3 — zoom out to Indonesia + price card
   ===================================================================== */
/* phase-2 layers fade away while the map flies out */
.p2-root .leaflet-overlay-pane,
.p2-root .leaflet-marker-pane { transition: opacity 500ms ease; }
.p2-root.is-pricing .leaflet-overlay-pane,
.p2-root.is-pricing .leaflet-marker-pane { opacity: 0; pointer-events: none; }
.p2-root.is-pricing .p2-heat { opacity: 0 !important; }
.p2-root.is-pricing .p2-map,
.p2-root.is-pricing .p2-map.leaflet-container { cursor: default; }

/* soft navy veil so the card reads over the map */
.p2-price {
    position: absolute;
    inset: 0;
    z-index: 1050;
    display: grid;
    place-items: center;
    padding: 16px;
    box-sizing: border-box;
    background: radial-gradient(ellipse at center, rgba(3, 31, 86, 0.28) 0%, rgba(3, 31, 86, 0.12) 60%, rgba(3, 31, 86, 0) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 420ms ease;
}
.p2-price.open { opacity: 1; pointer-events: auto; }

.p2-price-card {
    width: min(460px, 100%);
    max-height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 22px 22px 16px;
    background: #fff;
    color: #1d2436;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(3, 12, 40, 0.4), 0 2px 8px rgba(3, 12, 40, 0.12);
    text-align: center;
    transform: translateY(14px) scale(0.98);
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.p2-price.open .p2-price-card { transform: none; }

.p2-price-eyebrow {
    margin: 0 0 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-mid, #064ACF);
}
.p2-price-title {
    margin: 0 0 8px;
    font-family: var(--font-hook, inherit);
    font-weight: 700;
    font-size: 23px;
    line-height: 1.2;
    color: var(--brand-deep, #031F56);
}
.p2-price-sub { margin: 0 auto 16px; max-width: 380px; font-size: 12.5px; line-height: 1.55; color: #4a5268; }
.p2-price-sub strong { color: var(--brand-deep, #031F56); }

.p2-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.p2-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 16px 10px 12px;
    border: 1.5px solid rgba(3, 31, 86, 0.14);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 200ms ease, background 160ms ease, transform 160ms ease;
}
.p2-plan:hover { border-color: rgba(6, 74, 207, 0.45); }
.p2-plan:active { transform: scale(0.98); }
.p2-plan.is-on {
    border-color: var(--brand-mid, #064ACF);
    background: rgba(6, 74, 207, 0.04);
    box-shadow: 0 0 0 3px rgba(6, 74, 207, 0.12);
}
.p2-plan:focus-visible { outline: 2px solid var(--brand-mid, #064ACF); outline-offset: 2px; }
.p2-plan-tag {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--brand-deep, #031F56);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.p2-plan-name { font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: #6b7388; }
.p2-plan.is-on .p2-plan-name { color: var(--brand-mid, #064ACF); }
.p2-plan-price { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 2px; }
.p2-plan-price b { white-space: nowrap; font-size: 21px; font-weight: 800; color: var(--brand-deep, #031F56); font-variant-numeric: tabular-nums; }
.p2-plan-price small { font-size: 11.5px; color: #6b7388; }
.p2-plan-note { font-size: 10.5px; line-height: 1.35; color: #8a91a3; }
/* monthly discount: struck-through normal price + red tag */
.p2-plan-was {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: #d13a4c;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    font-variant-numeric: tabular-nums;
}
.p2-plan-was.is-empty { visibility: hidden; }
.p2-plan-tag.is-sale, .p2-plan .p2-plan-tag { background: #d13a4c; }

.p2-price-cta { justify-content: center; padding: 13px 16px; font-size: 13px; }
.p2-price-cta svg { width: 20px; height: 20px; }
.p2-price-back {
    display: inline-block;
    margin-top: 12px;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-mid, #064ACF);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.p2-price-back:hover { color: var(--brand-deep, #031F56); }
.p2-price-fine { margin: 8px 0 0; font-size: 10.5px; color: #9aa0b0; }

.p2-leg-flag {
    flex: none;
    width: 18px;
    height: 12px;
    border-radius: 2px;
    background: linear-gradient(#ce1126 50%, #fff 50%);
    box-shadow: 0 0 0 1px rgba(30, 30, 40, 0.15);
}

@media (max-width: 480px) {
    .p2-price-card { padding: 18px 16px 14px; }
    .p2-price-title { font-size: 20px; }
    .p2-plan-price b { font-size: 17px; }
    .p2-plans { gap: 8px; }
    .p2-plan { padding: 16px 6px 10px; }
}

/* hotspot legend: note that paid access shows ONE industry category */
.p2-legend--wide { max-width: 440px; }
.p2-leg-rows { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.p2-leg-info {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 2px;
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(3, 31, 86, 0.06);
    color: rgba(30, 30, 40, 0.72);
    line-height: 1.4;
}
.p2-leg-info strong { color: var(--brand-deep, #031F56); }
.p2-leg-info-ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 14px;
    height: 14px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--brand-deep, #031F56);
    color: #fff;
    font: italic 700 9px/1 Georgia, serif;
}

/* =====================================================================
   MOBILE PHASE 2 / 3 — no map: explanation card + compact price card
   ===================================================================== */
.p2-root.is-mobile.is-on { background: var(--brand-deep, #031F56); }
.p2-root.is-mobile .p2-map,
.p2-root.is-mobile .p2-heat,
.p2-root.is-mobile .p2-hint,
.p2-root.is-mobile .p2-pin,
.p2-root.is-mobile .p2-pop,
.p2-root.is-mobile .p2-panel { display: none !important; }

.p2-mcard {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 1000;
    overflow-y: auto;
    padding: 12px;
    box-sizing: border-box;
}
.p2-root.is-mobile.mode-mobile .p2-mcard { display: flex; align-items: center; }
.p2-root.is-mobile.is-pricing .p2-mcard { display: none; }

.p2-m-card {
    width: 100%;
    margin: auto 0;
    box-sizing: border-box;
    padding: 18px 16px 14px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    color: #1d2436;
    animation: p2-m-in 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes p2-m-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.p2-m-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.p2-m-eyebrow { margin: 0 0 1px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-mid, #064ACF); }
.p2-m-sub b { font-weight: 700; color: #4a5268; }

/* slim map strip — says "this is a map" at a glance */
.p2-m-strip {
    position: relative; height: 84px; margin: 0 0 16px; border-radius: 12px; overflow: hidden;
    background-color: #f2efe9; background-size: cover; background-position: center;
    box-shadow: inset 0 0 0 1px rgba(3, 31, 86, 0.1);
}
.p2-m-strip svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.p2-m-heat {
    position: absolute; inset: 0; opacity: 0.8;
    background:
        radial-gradient(circle at 22% 45%, #fcfdbf 0 6%, #fe9f6d 12%, #de4968 20%, #8c2981 28%, rgba(59,15,112,.85) 36%, transparent 44%),
        radial-gradient(circle at 62% 60%, #f7705c 0 7%, #b73779 16%, #641a80 24%, rgba(28,16,68,.8) 32%, transparent 40%),
        radial-gradient(circle at 88% 30%, #de4968 0 5%, #8c2981 12%, rgba(59,15,112,.8) 20%, transparent 28%);
}
.p2-m-strip-tag {
    position: absolute; left: 8px; bottom: 7px; padding: 3px 8px; border-radius: 999px;
    background: rgba(3, 31, 86, 0.88); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
}
.p2-m-badge {
    flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--brand-deep, #031F56); color: #fff;
}
.p2-m-badge svg { width: 22px; height: 22px; }
.p2-m-title { margin: 0; font-family: var(--font-hook, inherit); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--brand-deep, #031F56); }
.p2-m-sub { margin: 3px 0 0; font-size: 12px; line-height: 1.4; color: #6b7388; }

.p2-m-row { display: flex; gap: 12px; margin-bottom: 14px; }
.p2-m-ic {
    flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: rgba(6, 74, 207, 0.1); color: var(--brand-mid, #064ACF);
}
.p2-m-lbl { margin: 2px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-mid, #064ACF); }
.p2-m-txt { margin: 0; font-size: 14.5px; line-height: 1.5; color: #1d2436; }   /* 2 rows only → room for bigger text */
.p2-m-txt.is-num { font-weight: 700; color: var(--brand-deep, #031F56); font-variant-numeric: tabular-nums; }
.p2-m-note {
    margin: -2px 0 12px 44px; padding: 7px 10px; border-radius: 8px;
    background: rgba(3, 31, 86, 0.06); font-size: 11.5px; line-height: 1.4; color: #4a5268;
}

.p2-m-price {
    display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%;
    margin-top: 4px; padding: 13px 16px; border: 0; border-radius: 12px;
    background: var(--brand-deep, #031F56); color: #fff;
    font: 700 14px var(--font-ui, sans-serif); cursor: pointer;
}
.p2-m-price:active { transform: scale(0.98); }
.p2-m-wa {
    display: flex; justify-content: center; align-items: center; gap: 8px;
    margin-top: 10px; padding: 6px; color: #178f4a; font-weight: 700; font-size: 13px; text-decoration: none;
}

/* compact price card: stacked, tappable plan rows */
.p2-root.is-mobile .p2-price { background: none; padding: 12px; place-items: center; }
.p2-root.is-mobile .p2-price-card { padding: 18px 16px 12px; border-radius: 18px; text-align: left; }
.p2-root.is-mobile .p2-price-eyebrow { margin-bottom: 2px; }
.p2-root.is-mobile .p2-price-title { font-size: 20px; margin-bottom: 4px; }
.p2-root.is-mobile .p2-price-sub { margin: 0 0 14px; font-size: 12.5px; }
.p2-root.is-mobile .p2-plans { grid-template-columns: 1fr; gap: 10px; }
.p2-root.is-mobile .p2-plan {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    grid-template-areas: "radio name was" "radio note price";
    align-items: center;
    column-gap: 10px; row-gap: 2px;
    padding: 12px 14px;
    text-align: left;
}
.p2-root.is-mobile .p2-plan::before {
    content: ''; grid-area: radio; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(3, 31, 86, 0.3); box-sizing: border-box;
}
.p2-root.is-mobile .p2-plan.is-on::before { border: 5px solid var(--brand-mid, #064ACF); }
.p2-root.is-mobile .p2-plan-name { grid-area: name; }
.p2-root.is-mobile .p2-plan-note { grid-area: note; }
.p2-root.is-mobile .p2-plan-was { grid-area: was; justify-self: end; font-size: 11.5px; }
.p2-root.is-mobile .p2-plan-was.is-empty { display: none; }
.p2-root.is-mobile .p2-plan-price { grid-area: price; justify-self: end; flex-direction: column; align-items: flex-end; gap: 0; }
.p2-root.is-mobile .p2-plan-was.is-empty ~ .p2-plan-price { grid-row: 1 / span 2; }
.p2-root.is-mobile .p2-plan-price b { font-size: 17px; }
.p2-root.is-mobile .p2-plan-price small { font-size: 10.5px; }
.p2-root.is-mobile .p2-plan-tag { left: auto; right: 12px; transform: none; }
.p2-root.is-mobile .p2-price-cta { padding: 12px 14px; }
.p2-root.is-mobile .p2-price-back { display: block; margin: 10px auto 0; }
.p2-root.is-mobile .p2-price-fine { text-align: center; margin-top: 6px; }

/* auto-fit steps (added by fitMobileCard until the card fits without scrolling) */
.p2-m-card.fit-1 { padding: 14px 14px 10px; }
.p2-m-card.fit-1 .p2-m-head { margin-bottom: 8px; }
.p2-m-card.fit-1 .p2-m-badge { width: 38px; height: 38px; }
.p2-m-card.fit-1 .p2-m-title { font-size: 18px; }
.p2-m-card.fit-1 .p2-m-row { margin-bottom: 8px; gap: 10px; }
.p2-m-card.fit-1 .p2-m-ic { width: 28px; height: 28px; }
.p2-m-card.fit-1 .p2-m-txt { font-size: 13.5px; line-height: 1.45; }
.p2-m-card.fit-1 .p2-m-strip { height: 64px; margin-bottom: 12px; }
.p2-m-card.fit-1 .p2-m-price { padding: 11px 14px; }
.p2-m-card.fit-1 .p2-m-wa { margin-top: 6px; }
.p2-m-card.fit-2 .p2-m-note { display: none; }
.p2-m-card.fit-2 .p2-m-strip { height: 48px; }   /* shrink, don't drop: the strip is what says "this is a map" */
.p2-m-card.fit-2 .p2-m-lbl { font-size: 9.5px; }
.p2-m-card.fit-2 .p2-m-txt { font-size: 12.5px; }
.p2-m-card.fit-2 .p2-m-strip-tag { bottom: 5px; font-size: 9.5px; }
.p2-m-card.fit-3 .p2-m-strip { display: none; }   /* last resort only (very short screens) */

/* compact price card on very short phones */
@media (max-height: 620px) {
    .p2-root.is-mobile .p2-price-card { padding: 14px 14px 10px; }
    .p2-root.is-mobile .p2-price-eyebrow { display: none; }
    .p2-root.is-mobile .p2-price-title { font-size: 18px; }
    .p2-root.is-mobile .p2-price-sub { margin-bottom: 10px; font-size: 12px; }
    .p2-root.is-mobile .p2-plans { gap: 8px; margin-bottom: 10px; }
    .p2-root.is-mobile .p2-plan { padding: 10px 12px; }
    .p2-root.is-mobile .p2-price-back { margin-top: 6px; }
}

/* mobile phases 2–3: bottom bar keeps only ← Kembali (the card has its own buttons) */
body.dsn-deep #mob-estimate-btn,
body.dsn-deep #mob-bottom-bar #bar-help { display: none !important; }

/* mobile phases 2–3: "better on desktop" note fills the freed bottom-bar space (one slim row) */
#mob-desk-hint { display: none; }
body.dsn-deep #mob-desk-hint {
    display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; max-width: 250px; margin-left: auto;
    padding: 5px 5px 5px 10px; border-radius: 999px;
    background: rgba(6, 74, 207, 0.09); color: var(--brand-deep, #031F56);
    font-family: var(--font-ui, sans-serif);
}
body.dsn-deep #mob-desk-hint > svg { flex: none; width: 18px; height: 18px; color: var(--brand-mid, #064ACF); }
body.dsn-deep #mob-desk-hint div { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
body.dsn-deep #mob-desk-hint b { font-size: 12px; font-weight: 700; white-space: nowrap; }
body.dsn-deep #mob-desk-hint span { font-size: 10px; color: #4a5268; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.dsn-deep #mob-desk-hint .mdh-copy {
    flex: none; margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
    background: var(--brand-deep, #031F56); color: #fff; cursor: pointer;
}
body.dsn-deep #mob-desk-hint .mdh-copy.is-done { background: #1faa59; }
