/* =============================================================
   BillboardMax — Campaign Planner (/plan)
   Focused, single-task layout. Inherits brand tokens from app.css
   (--bm-amber, --bm-amber-2, --bm-ink, --bm-cloud, --bm-line, ...).
   ============================================================= */

/* Anchor min-height to the viewport so the flex column can pin the footer
 * on short steps; pair with html height for consistent mobile behavior. */
html:has(body.planner-page) {
    height: 100%;
}

body.planner-page {
    background:
        radial-gradient(1100px 540px at 50% -120px, rgba(255, 176, 32, 0.06), transparent 60%),
        radial-gradient(800px 400px at 100% 100%, rgba(11, 26, 43, 0.04), transparent 60%),
        #f7f8fb;
    /* Flex column keeps the footer at the bottom of the viewport when content
     * is short — not position:sticky on the footer. When content overflows,
     * the page grows and scrolls normally. */
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.planner-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid rgba(11, 26, 43, 0.06);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    flex-shrink: 0;
}

.planner-header.small {
    padding: 0.4rem 0;
}

.planner-header .navbar-brand {
    font-size: 1.40rem;
    line-height: 1.1;
}

.planner-header .planner-header-new-plan {
    flex-shrink: 0;
    font-weight: 700;
    padding: 7px 15px;
    height: 38px;
    border-radius: 6px;
   
    white-space: nowrap;
}
.planner-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.planner-header .planner-header-action {
    border-color: rgba(11, 26, 43, 0.14);
    background: rgba(255, 255, 255, 0.78);
    color: #000;
}
.planner-header .planner-header-action,
.planner-header .planner-header-action:hover,
.planner-header .planner-header-action:focus,
.planner-header .planner-header-action:active { color: #000; }
.planner-header .planner-header-action i { color: #000; }
.planner-header .planner-header-action--static {
    cursor: default;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.92);
}
.planner-header .planner-header-action--static:hover,
.planner-header .planner-header-action--static:focus { background: rgba(255, 255, 255, 0.92); }
.planner-header-menu {
    display: none;
}
.planner-header .planner-header-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    border-color: rgba(11, 26, 43, 0.14);
    background: rgba(255, 255, 255, 0.78);
    color: var(--bm-ink);
    font-size: 1.15rem;
    line-height: 1;
}
.planner-header .planner-header-menu-toggle::after { display: none; }
.planner-header .planner-header-menu-toggle:focus-visible {
    outline: 2px solid var(--bm-amber-2, #f59e0b);
    outline-offset: 2px;
}
.planner-header-menu-list {
    min-width: 11rem;
    padding: 0.35rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(11, 26, 43, 0.1);
    box-shadow: 0 12px 32px rgba(11, 26, 43, 0.14);
}
.planner-header-menu-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.4rem;
    font-weight: 600;
    color: var(--bm-ink);
}
.planner-header-menu-item i { font-size: 1rem; color: var(--bm-amber-2, #f59e0b); }
.planner-header-menu-item:hover,
.planner-header-menu-item:focus { background: rgba(11, 26, 43, 0.06); }
.planner-header-menu-item--primary i { color: var(--bm-amber-2, #f59e0b); }

.planner-header-menu-new-plan,
.planner-header-menu-divider {
    display: none;
}

@media (max-width: 575.98px) {
    .planner-header-actions .planner-header-new-plan--inline { display: none; }
    .planner-header-actions .planner-header-action--inline {
        width: 38px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
        color: #000;
    }
    .planner-header-actions .planner-header-action--inline:hover,
    .planner-header-actions .planner-header-action--inline:focus,
    .planner-header-actions .planner-header-action--inline:active { color: #000; }
    .planner-header-actions .planner-header-action--inline .planner-header-action-label {
        display: none;
    }
    .planner-header-actions .planner-header-action--inline i {
        margin: 0;
        color: #000;
    }
    .planner-header-actions .planner-header-action--inline.planner-header-action--keep-label {
        width: auto;
        padding: 0.25rem 0.55rem;
        gap: 0.3rem;
        font-size: 0.78rem;
        font-weight: 700;
    }
    .planner-header-actions .planner-header-action--inline.planner-header-action--keep-label .planner-header-action-label {
        display: inline;
    }
    .planner-header-actions .planner-header-action--inline.planner-header-action--keep-label i {
        margin-right: 0.15rem;
    }
    .planner-header-menu { display: inline-block; }
    .planner-header-menu-new-plan { display: block; }
    .planner-header-menu-divider { display: block; }
}
.planner-secure {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bm-ink);
    background: #fff;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(11, 26, 43, 0.08);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 1px 2px rgba(11, 26, 43, 0.04);
}
.planner-secure i { color: var(--bm-amber-2); font-size: 1rem; }

.planner-plan-switch {
    gap: 0.4rem;
    padding: 0.35rem 0.5rem 0.35rem 0.85rem;
    max-width: min(100%, 16rem);
}

/* Plan picker — elevated surface (header + plan view record bar) */
.planner-secure.planner-plan-switch {
    background: linear-gradient(180deg, #ffffff 0%, #f4f6fa 100%);
    border: 1px solid rgba(11, 26, 43, 0.11);
    border-radius: 999px;
    /* box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98) inset,
        0 1px 2px rgba(11, 26, 43, 0.05),
        0 4px 12px -2px rgba(11, 26, 43, 0.1),
        0 10px 28px -10px rgba(11, 26, 43, 0.14); */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    .planner-secure.planner-plan-switch {
        transition: none;
    }
}

.planner-secure.planner-plan-switch:hover {
    border-color: rgba(11, 26, 43, 0.16);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98) inset,
        0 2px 4px rgba(11, 26, 43, 0.06),
        0 8px 20px -4px rgba(11, 26, 43, 0.14),
        0 14px 36px -12px rgba(11, 26, 43, 0.18);
}

.planner-secure.planner-plan-switch:focus-within {
    border-color: rgba(255, 176, 32, 0.55);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98) inset,
        0 0 0 3px rgba(255, 176, 32, 0.22),
        0 4px 14px -2px rgba(11, 26, 43, 0.12),
        0 12px 32px -10px rgba(11, 26, 43, 0.16);
}

.planner-plan-select {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 11rem;
    border: none !important;
    background: transparent !important;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--bm-ink) !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    padding: 0.2rem 1.75rem 0.2rem 0.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%234b5563' d='M8 11L3 6h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.35rem center !important;
    background-size: 0.65rem auto !important;
    box-shadow: none !important;
    cursor: pointer;
}
.planner-plan-select:focus {
    outline: none !important;
    box-shadow: none !important;
}

.planner-main {
    flex: 1 1 auto;
    width: 100%;
    padding: 2.5rem 0 4rem;
}

/* --- Banner shown when arriving from /finder/ with a selection ----------- */
.planner-finder-banner {
    max-width: 920px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(180deg, #fff8e8 0%, #ffffff 100%);
    border: 1px solid rgba(255, 176, 32, 0.55);
    border-radius: 1rem;
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    box-shadow: 0 6px 18px rgba(255, 176, 32, 0.12);
}
.planner-finder-banner-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: var(--bm-amber, #ffb020);
    color: #1a1206;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.planner-finder-banner-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}
.planner-finder-banner-body strong { color: var(--bm-ink, #0b1a2b); }
.planner-finder-banner-body span { color: var(--bm-muted, #5d6b80); font-size: 0.92rem; }
.planner-finder-banner-edit {
    color: var(--bm-ink, #0b1a2b);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.35rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    flex-shrink: 0;
}
.planner-finder-banner-edit:hover {
    background: rgba(11, 26, 43, 0.05);
    color: var(--bm-ink, #0b1a2b);
}
@media (max-width: 640px) {
    .planner-finder-banner {
        flex-wrap: wrap;
    }
    .planner-finder-banner-edit {
        margin-left: auto;
    }
}

.planner-card {
    /* background: #fff; */
    border-radius: 1.5rem;
    /* Layered shadow stack — sharp near, soft far. Avoids "fluffy SaaS" look. */
    /* border: 1px solid rgba(11, 26, 43, 0.06);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 1px 2px rgba(11, 26, 43, 0.04),
        0 8px 24px -8px rgba(11, 26, 43, 0.08),
        0 24px 48px -20px rgba(11, 26, 43, 0.14); */
    /* padding: 2.25rem 2rem; */
    max-width: 920px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .planner-card { padding: 3rem 3rem; }
}

/* --- Hero / intro screen ----------------------------------- */
.planner-hero {
    text-align: center;
    padding: 1rem 0 0.5rem;
}
.planner-hero .planner-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    padding: 0.75rem 0.75rem;
    border-radius: 999px;
    background: #000;
    margin-bottom: 1.1rem;
 
}
.planner-hero h1 {
    font-size: clamp(1.85rem, 3.4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--bm-ink);
    line-height: 1.1;
    margin: 0 0 0.85rem;
}
.planner-hero h1 .accent {
    background: linear-gradient(90deg, var(--bm-amber) 0%, var(--bm-amber-2) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.planner-hero p.lead {
    color: var(--bm-muted);
    font-size: 1.08rem;
    margin: 0 auto 1.6rem;
    max-width: 38rem;
    line-height: 1.55;
}
.planner-hero-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.planner-hero-actions .btn { min-width: 200px; }

/* "OR" divider sitting between the two CTAs.
   Desktop: small uppercase pill flanked by two short hairlines.
   Mobile (when the buttons wrap to a stack): expands to a full
   horizontal divider so the relationship still reads clearly. */
.planner-hero-or {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: var(--bm-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    user-select: none;
    flex: 0 0 auto;
}
.planner-hero-or::before,
.planner-hero-or::after {
    content: "";
    width: 18px;
    height: 1px;
    background: rgba(11, 26, 43, 0.18);
}
.planner-hero-or-text {
    line-height: 1;
    color: rgba(11, 26, 43, 0.55);
}

@media (max-width: 540px) {
    .planner-hero-or {
        flex: 1 0 100%;
        gap: 0.7rem;
        margin: 0.1rem 0;
    }
    .planner-hero-or::before,
    .planner-hero-or::after {
        flex: 1 1 auto;
        width: auto;
        max-width: 80px;
    }
}

.planner-hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-top: 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--bm-muted);
}
.planner-hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.planner-hero-trust i { color: var(--bm-amber-2); }

/* --- Compact step header (shown on steps 2+) -------------- */
.planner-mini-head {
    text-align: center;
    margin-bottom: 1.25rem;
}
.planner-mini-head .mini-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    padding: 0.75rem 0.75rem;
    border-radius: 999px;
    background: #000;
    /* border: 1px solid rgb(255 154 23);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 1px 2px rgba(255, 138, 0, 0.06); */
}

/* --- Stepper / progress ----------------------------------- */
.planner-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin: 0 auto 2rem;
    max-width: 720px;
}
.planner-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
}
.planner-step-dot .dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid rgba(11, 26, 43, 0.10);
    color: rgba(11, 26, 43, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 1px 2px rgba(11, 26, 43, 0.04);
    transition: all 0.22s cubic-bezier(.4, 0, .2, 1);
}
.planner-step-dot .label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(11, 26, 43, 0.45);
    transition: color 0.22s ease;
}
.planner-step-dot.is-done .dot {
    background: linear-gradient(180deg, var(--bm-amber) 0%, var(--bm-amber-2) 100%);
    border-color: rgba(255, 138, 0, 0.6);
    color: #1a1206;
    box-shadow:
        0 1px 0 rgba(255, 230, 180, 0.5) inset,
        0 4px 10px -2px rgba(255, 138, 0, 0.30);
}
.planner-step-dot.is-active .dot {
    background: linear-gradient(180deg, #f2a313 0%, var(--bm-amber-2) 100%);
    border-color: rgba(255, 138, 0, 0.6);
    color: #1a1206;
    box-shadow:
        0 1px 0 rgba(255, 230, 180, 0.6) inset,
        0 0 0 4px rgba(255, 176, 32, 0.18),
        0 6px 14px -2px rgba(255, 138, 0, 0.40);
    transform: scale(1.05);
}
.planner-step-dot.is-active .label,
.planner-step-dot.is-done .label { color: var(--bm-ink); }
.planner-step-bar {
    flex: 1;
    height: 2px;
    background: rgba(11, 26, 43, 0.08);
    border-radius: 2px;
    overflow: hidden;
}
.planner-step-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--bm-amber) 0%, var(--bm-amber-2) 100%);
    transition: width 0.4s cubic-bezier(.4, 0, .2, 1);
}
@media (max-width: 575.98px) {
    .planner-step-dot .label { display: none; }
}

/* --- Step content ----------------------------------------- */
.planner-step { display: none; }
.planner-step.is-active {
    display: block;
    animation: planner-fade 0.25s ease;
}
@keyframes planner-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.planner-step h2 {
    font-size: clamp(1.3rem, 2.1vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--bm-ink);
    margin: 0 0 0.4rem;
    text-align: center;
}
.planner-step .planner-step-help {
    color: var(--bm-muted);
    text-align: center;
    margin: 0 auto 1.5rem;
    font-size: 0.98rem;
    max-width: 36rem;
}

/* --- Card grid (Goal / Reach / Duration / Creative / Scale) */
.planner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}
@media (min-width: 640px) {
    .planner-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* Scale step uses a single, full-width column so each card has the
 * room to present its title, description, and side-by-side meta
 * (visibility / investment) without competing with a neighbour. */
.planner-grid--scale { grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .planner-grid--scale { grid-template-columns: 1fr; gap: 0.9rem; }
}
/* Modern, sharper option cards.
   Surface stays white. Amber appears only on the icon tile, the selection
   indicator, and a subtle left accent on hover/select. The dark hairline
   border + layered micro-shadow do the visual work. */
.planner-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid rgba(11, 26, 43, 0.08);
    border-radius: 0.85rem;
    cursor: pointer;
    text-align: left;
    color: var(--bm-ink);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 1px 2px rgba(11, 26, 43, 0.04),
        0 4px 12px -6px rgba(11, 26, 43, 0.06);
    transition:
        transform 0.18s cubic-bezier(.4, 0, .2, 1),
        box-shadow 0.18s cubic-bezier(.4, 0, .2, 1),
        border-color 0.15s ease;
    width: 100%;
    font: inherit;
    /* No `overflow: hidden` — the .opt-tag sits intentionally outside the
       top edge (top: -9px). The accent stripe below still stays in place
       because its own corners inherit the parent's border-radius. */
}
/* Sharp amber accent that slides in on hover/selection from the left edge.
   Sits 1px inside the border so it never overlaps the dark border on
   selection. Its own corners are rounded so we can drop overflow: hidden. */
.planner-option::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 1px;
    bottom: 1px;
    width: 10px;
    background: linear-gradient(180deg, var(--bm-amber) 0%, var(--bm-amber-2) 100%);
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.22s cubic-bezier(.4, 0, .2, 1);
    border-top-left-radius: 0.85rem;
    border-bottom-left-radius: 0.85rem;
    pointer-events: none;
}
.planner-option:hover,
.planner-option:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(11, 26, 43, 0.18);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 2px 4px rgba(11, 26, 43, 0.05),
        0 12px 24px -10px rgba(11, 26, 43, 0.14);
    outline: none;
}
.planner-option:hover::before,
.planner-option:focus-visible::before { transform: scaleY(1); }

.planner-option.is-selected {
    border-color: #ff9a17;
    background: #fef6e3;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 0 0 1px #ff9a17,
        0 2px 4px rgba(255, 154, 23, 0.10),
        0 14px 30px -14px rgba(255, 154, 23, 0.32);
}
.planner-option.is-selected::before { transform: scaleY(1); }

/* Icon tile — refined gradient + subtle inner highlight */
.planner-step.big-options .opt-icon {
    width: 46px; height: 105px;
}
.planner-option .opt-icon {
    width: 46px; height: 46px;
    border-radius: 0.6rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 50%),
        linear-gradient(180deg, #1d2b44 0%, var(--bm-ink) 100%);
    color: var(--bm-amber);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex: 0 0 auto;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.10) inset,
        0 0 0 1px rgba(11, 26, 43, 0.08),
        0 4px 10px -4px rgba(11, 26, 43, 0.30);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.planner-option:hover .opt-icon,
.planner-option.is-selected .opt-icon {
    transform: scale(1.04);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 0 0 1px rgba(11, 26, 43, 0.10),
        0 6px 14px -4px rgba(11, 26, 43, 0.35),
        0 0 0 4px rgba(255, 176, 32, 0.10);
}

.planner-option .opt-body { flex: 1; min-width: 0; }
.planner-option .opt-title {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    color: var(--bm-ink);
    letter-spacing: -0.005em;
}
.planner-option .opt-desc {
    display: block;
    font-size: 0.86rem;
    color: var(--bm-muted);
    margin-top: 0.2rem;
    line-height: 1.4;
}

/* --- Scale step: visibility + investment meta --------------- *
 * Two-column data grid sits below the title/description block.
 * Hierarchy:
 *   1. Title          — dominant (handled by .opt-title)
 *   2. Visibility val — second-most prominent (1.05rem / 700)
 *   3. Investment val — quiet supporting data (0.82rem / muted)
 * Labels render as compact uppercase eyebrows with a tiny ico
 * so the grid reads as a structured spec sheet, not loose text. */
.planner-option--scale {
    align-items: flex-start;
    padding: 1.1rem 1.2rem 1.15rem;
}
.planner-option--scale .opt-icon {
    margin-top: 0.15rem;
}
.planner-option--scale .opt-desc {
    margin-bottom: 0.1rem;
}

.planner-option--scale .opt-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 0.35rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(11, 26, 43, 0.07);
}

/* Subtle vertical divider between the two cells. Built with a
 * pseudo-element on the second cell so it inherits the cell's
 * height precisely. Hidden when cells stack on mobile. */
.planner-option--scale .opt-meta-cell {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    min-width: 0;
    position: relative;
    padding-left: 0;
}
.planner-option--scale .opt-meta-cell--invest {
    padding-left: 1rem;
}
.planner-option--scale .opt-meta-cell--invest::before {
    content: "";
    position: absolute;
    top: 0.15rem;
    bottom: 0.15rem;
    left: 0;
    width: 1px;
    background: linear-gradient(
        to bottom,
        rgba(11, 26, 43, 0) 0%,
        rgba(11, 26, 43, 0.10) 25%,
        rgba(11, 26, 43, 0.10) 75%,
        rgba(11, 26, 43, 0) 100%
    );
}

.planner-option--scale .opt-meta-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #ef8905;
    line-height: 1.1;
}
.planner-option--scale .opt-meta-ico {
    font-size: 0.72rem;
    color: #ff6a00;
    line-height: 1;
}

.planner-option--scale .opt-meta-value {
    display: block;
    line-height: 1.25;
    word-break: break-word;
}
.planner-option--scale .opt-meta-cell--reach .opt-meta-value,
.planner-option--scale .opt-meta-cell--invest .opt-meta-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bm-ink);
    letter-spacing: -0.012em;
    font-variant-numeric: tabular-nums;
}

/* Selected state: warm the divider and gently lift the supporting
 * line so the whole card reads as "active" without re-coloring it. */
.planner-option--scale[aria-checked="true"] .opt-meta {
    border-top-color: rgba(255, 154, 23, 0.35);
}
.planner-option--scale[aria-checked="true"] .opt-meta-cell--invest::before {
    background: linear-gradient(
        to bottom,
        rgba(255, 154, 23, 0) 0%,
        rgba(255, 154, 23, 0.40) 25%,
        rgba(255, 154, 23, 0.40) 75%,
        rgba(255, 154, 23, 0) 100%
    );
}
.planner-option--scale[aria-checked="true"] .opt-meta-label {
    color: rgba(11, 26, 43, 0.65);
}
.planner-option--scale[aria-checked="true"] .opt-meta-ico {
    color:  #ff6a00;
}

/* Stack the two cells on narrow viewports so nothing wraps awkwardly. */
@media (max-width: 540px) {
    .planner-option--scale .opt-meta {
        grid-template-columns: 1fr;
        row-gap: 0.7rem;
    }
    .planner-option--scale .opt-meta-cell--invest {
        padding-left: 0;
        padding-top: 0.7rem;
        border-top: 1px solid rgba(11, 26, 43, 0.06);
    }
    .planner-option--scale .opt-meta-cell--invest::before {
        display: none;
    }
}

/* --- Info icon with hover tooltip ("what are impressions?") - */
.opt-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.3rem;
    width: 14px;
    height: 14px;
    color: rgba(11, 26, 43, 0.40);
    transition: color 0.18s ease;
    cursor: help;
    vertical-align: -1px;
}
.opt-info .bi { font-size: 0.85rem; line-height: 1; }
.opt-info:hover { color: var(--bm-amber, #ff9a17); }

/* Tooltip bubble — built off data-tip so it can be reused. */
.opt-info::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, 4px);
    width: max-content;
    max-width: 240px;
    padding: 0.6rem 0.75rem;
    background: var(--bm-ink, #0b1a2b);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    text-align: left;
    border-radius: 0.5rem;
    box-shadow:
        0 12px 28px -10px rgba(11, 26, 43, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 30;
    white-space: normal;
}
/* Little arrow under the bubble */
.opt-info::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--bm-ink, #0b1a2b);
    transform: translate(-50%, 4px) rotate(45deg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 31;
}
.opt-info:hover::after,
.opt-info:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}
.opt-info:hover::before,
.opt-info:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, 0) rotate(45deg);
}

/* Keep tooltip on-screen when the card sits at the right edge */
/* Footnote under the scale grid — clarifies these are estimates */
.planner-step-foot {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 1.1rem 0 0;
    padding: 0.7rem 0.9rem;
    background: rgba(11, 26, 43, 0.035);
    border: 1px solid rgba(11, 26, 43, 0.06);
    border-radius: 0.6rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--bm-muted);
}
.planner-step-foot .bi {
    color: rgba(11, 26, 43, 0.55);
    margin-top: 0.12rem;
    flex: 0 0 auto;
}

@media (max-width: 540px) {
    .planner-option--scale .opt-meta-label {
        font-size: 0.6rem;
    }
    .planner-option--scale .opt-meta-cell--reach .opt-meta-value,
    .planner-option--scale .opt-meta-cell--invest .opt-meta-value {
        font-size: 1rem;
    }
    .planner-main {
        
        padding: 2.5rem 0 15rem;
    }
    .planner-step.big-options .opt-icon {
        
        height: 165px;
    }
}

/* "Popular" tag — refined dark pill with inner highlight */
.planner-option .opt-tag {
    position: absolute;
    top: -9px; right: 14px;
    background: var(--bm-ink);
    color: var(--bm-amber);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 0 0 1px rgba(11, 26, 43, 0.20),
        0 4px 10px -4px rgba(11, 26, 43, 0.35);
}


/* --- Form fields ------------------------------------------ */
.planner-fields {
    max-width: 560px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}
.planner-fields label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--bm-muted);
    margin-bottom: 0.4rem;
}
.planner-fields .form-control,
.planner-fields .form-select {
    border: 1px solid rgba(11, 26, 43, 0.12);
    border-radius: 0.6rem;
    padding: 0.8rem 0.95rem;
    font-size: 1rem;
    color: var(--bm-ink);
    background: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 1px 2px rgba(11, 26, 43, 0.04);
    transition:
        border-color 0.15s ease,
        box-shadow 0.18s cubic-bezier(.4, 0, .2, 1);
}
.planner-fields .form-control:hover,
.planner-fields .form-select:hover {
    border-color: rgba(11, 26, 43, 0.22);
}
.planner-fields .form-control:focus,
.planner-fields .form-select:focus {
    border-color: var(--bm-amber-2);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 0 0 4px rgba(255, 176, 32, 0.16);
    outline: none;
}
.planner-fields .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 600px) {
    .planner-fields .form-row { grid-template-columns: 1fr 1fr; }
}
.planner-fields .form-error {
    display: none;
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.35rem;
}
.planner-fields .form-error.is-shown { display: block; }

/* ----------------------------------------------------------------
   Tag input — multi-location picker (Step 3)
   Mimics the look of the .form-control fields above so it sits
   inside .planner-fields without visual seams.
   ---------------------------------------------------------------- */
.planner-tags {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    min-height: 56px;
    padding: 0.55rem 0.7rem 0.55rem 2.6rem;
    background: #fffdf6;
    border: 1px solid rgba(11, 26, 43, 0.12);
    border-radius: 0.6rem;
    box-shadow: 0px 0px 2px 1px rgb(235 207 164 / 90%) inset, 0 1px 2px rgba(11, 26, 43, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.18s ease;
    cursor: text;
 
}
.planner-tags:hover { border-color: rgba(11, 26, 43, 0.22); }
.planner-tags.is-focused {
    border-color: var(--bm-amber-2);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 0 0 4px rgba(255, 176, 32, 0.16);
}
.planner-tags .loc-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--bm-amber-2);
    font-size: 1.1rem;
    pointer-events: none;
}

.planner-tags-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: contents;
}
.planner-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.35rem 0.3rem 0.7rem;
    background: linear-gradient(180deg, #1d2b44 0%, var(--bm-ink) 100%);
    color: #fff;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.10) inset,
        0 0 0 1px rgba(11, 26, 43, 0.20),
        0 4px 10px -4px rgba(11, 26, 43, 0.30);
    animation: tag-in 0.16s cubic-bezier(.4, 0, .2, 1);
    max-width: 100%;
}
.planner-tag .tag-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Highlight ZIP-only tags with an amber accent dot */
.planner-tag.is-zip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--bm-amber) 0%, var(--bm-amber-2) 100%);
    box-shadow: 0 0 0 2px rgba(255, 176, 32, 0.20);
    flex: 0 0 auto;
    margin-right: -0.15rem;
}
/* State codes: subtle cool accent (ZIP stays amber) */
.planner-tag.is-state::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(180deg, #7eb8ff 0%, #4a90d9 100%);
    box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.22);
    flex: 0 0 auto;
    margin-right: -0.15rem;
}
.planner-tag .tag-remove {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    border: 0;
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.planner-tag .tag-remove:hover {
    background: var(--bm-amber);
    color: var(--bm-ink);
    transform: scale(1.05);
}
@keyframes tag-in {
    from { opacity: 0; transform: translateY(-2px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.planner-tags-input {
    flex: 1;
    min-width: 160px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--bm-ink);
    font: inherit;
    font-size: 1rem;
    padding: 0.3rem 0.2rem;
}
.planner-tags-input::placeholder {
    color: rgba(11, 26, 43, 0.40);
    font-weight: 400;
}

/* Header row above the field: label on the left, "Clear all" flush right */
.planner-tags-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
    min-height: 1.5rem;
}
.planner-tags-head label {
    margin-bottom: 0;
}

/* Meta row under the field: hint only (clear-all moved up) */
.planner-tags-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.planner-tags-hint {
    font-size: 0.78rem;
    color: var(--bm-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.3;
}
.planner-tags-hint i { color: var(--bm-amber-2); font-size: 0.9rem; }
.planner-tags-hint kbd {
    background: #fff;
    border: 1px solid rgba(11, 26, 43, 0.12);
    border-bottom-width: 2px;
    border-radius: 0.3rem;
    padding: 0.05rem 0.35rem;
    font-size: 0.72rem;
    font-family: inherit;
    color: var(--bm-ink);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.planner-tags-clear {
    background: transparent;
    border: 0;
    color: var(--bm-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.planner-tags-clear:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.06);
}
.planner-tags-clear[hidden] { display: none; }

.planner-location-mode {
    margin-bottom: 1rem;
}
.planner-location-mode-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bm-muted);
    margin-bottom: 0.5rem;
}
.planner-location-mode-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.planner-mode-btn {
    flex: 1 1 140px;
    padding: 0.55rem 0.85rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(11, 26, 43, 0.14);
    background: #fff;
    color: var(--bm-ink);
    font-size: 0.9rem;
    font-weight: 650;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.planner-mode-btn:hover {
    border-color: rgba(11, 26, 43, 0.22);
    background: rgba(11, 26, 43, 0.03);
}
.planner-mode-btn.is-selected {
    border-color: var(--bm-amber);
    background: linear-gradient(180deg, rgba(255, 180, 32, 0.14) 0%, rgba(255, 180, 32, 0.06) 100%);
    box-shadow: 0 0 0 1px rgba(255, 180, 32, 0.35);
}

.planner-location-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 0.8rem;
}
.planner-location-quick button {
    background: #fff;
    border: 1px solid rgba(11, 26, 43, 0.10);
    color: var(--bm-ink);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 1px 2px rgba(11, 26, 43, 0.04);
    transition:
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
.planner-location-quick button:hover {
    border-color: var(--bm-ink);
    color: var(--bm-ink);
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 4px 10px -4px rgba(11, 26, 43, 0.18);
}

/* --- Nav buttons ------------------------------------------ */
.planner-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(11, 26, 43, 0.06);
}
.planner-nav .planner-meta {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--bm-muted);
    letter-spacing: 0.01em;
}
.planner-nav .btn-back {
    background: #fff;
    border: 1px solid rgba(11, 26, 43, 0.10);
    color: var(--bm-ink);
    padding: 0.65rem 1.1rem;
    border-radius: 0.55rem;
    font-weight: 600;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 1px 2px rgba(11, 26, 43, 0.04);
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
.planner-nav .btn-back:hover {
    border-color: var(--bm-ink);
    background: #fff;
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 6px 14px -6px rgba(11, 26, 43, 0.18);
}
.planner-nav .btn-back[hidden] { display: none; }

/* Continue / primary CTA — refined amber gradient with crisp inner highlight */
.planner-nav .btn-next {
    padding: 0.75rem 1.4rem;
    border-radius: 0.55rem;
    font-weight: 700;
    min-width: 170px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 50%),
        linear-gradient(180deg, var(--bm-amber) 0%, #ffbe00 100%);
    border: 1px solid #ff8a00;
    color: #1a1206;
    
    transition:
        transform 0.15s ease,
        box-shadow 0.18s ease,
        filter 0.15s ease;
}
.planner-nav .btn-next:hover:not(:disabled) {
    transform: translateY(-1px);
  
}
.planner-nav .btn-next:active:not(:disabled) {
    transform: translateY(0);
    filter: brightness(0.97);
}
.planner-nav .btn-next:disabled {
    opacity: 0.50;
    cursor: not-allowed;
    box-shadow:
        0 1px 0 rgba(255, 230, 180, 0.4) inset,
        0 1px 2px rgba(11, 26, 43, 0.05);
}
.planner-nav[hidden] { display: none; }

/* --- Plan loading (interstitial) ------------------------------------ */
.plan-loading-card {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    padding: 2.25rem 1.5rem 2rem;
}
.plan-loading-visual {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 1.25rem;
}
.plan-loading-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(11, 26, 43, 0.08);
    border-top-color: var(--bm-amber-2);
    animation: plan-spin 0.9s linear infinite;
}
.plan-loading-icon {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 2rem;
    height: 2rem;
    font-size: 2rem;
    color: var(--bm-ink);
    line-height: 1;
}
@keyframes plan-spin {
    to { transform: rotate(360deg); }
}
.plan-loading-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}
.plan-loading-status {
    color: var(--bm-muted);
    font-weight: 600;
    min-height: 1.5em;
    margin-bottom: 1.25rem;
}
.plan-loading-steps {
    list-style: none;
    margin: 0 auto 1rem;
    padding: 0;
    text-align: left;
    max-width: 280px;
}
.plan-loading-steps li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.75rem;
    font-size: 0.92rem;
    color: var(--bm-muted);
    transition: color 0.2s ease;
}
.plan-loading-steps li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(11, 26, 43, 0.12);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}
.plan-loading-steps li.is-active {
    color: var(--bm-ink);
    font-weight: 650;
}
.plan-loading-steps li.is-active::before {
    background: linear-gradient(180deg, var(--bm-amber) 0%, var(--bm-amber-2) 100%);
}
.plan-loading-steps li.is-done {
    color: var(--bm-muted);
    opacity: 0.75;
}
.plan-loading-steps li.is-done::before {
    background: var(--bm-amber-2);
}

/* --- Plan view (results) -------------------------------------------- */
.plan-view-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem 2rem;
}
.plan-view-eyebrow {
    font-size: 0.82rem;
    color: var(--bm-muted);
    margin-bottom: 0.35rem;
}
.plan-view-title {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.plan-view-section {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(11, 26, 43, 0.08);
}
.plan-view-h2 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--bm-muted);
    margin-bottom: 0.65rem;
}
.plan-view-dl {
    display: grid;
    grid-template-columns: minmax(6rem, 32%) 1fr;
    gap: 0.35rem 1rem;
    margin: 0;
    font-size: 0.95rem;
}
.plan-view-dl dt {
    margin: 0;
    color: var(--bm-muted);
    font-weight: 600;
}
.plan-view-dl dd {
    margin: 0;
}
.plan-view-list {
    margin: 0;
    padding-left: 1.15rem;
}
.plan-view-list li {
    margin: 0.2rem 0;
}
.plan-view-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.75rem;
}

/* --- Success screen (legacy; in-page success removed) ---------------- */
.planner-success {
    text-align: center;
    padding: 1rem 0 0.5rem;
}
.planner-success .success-icon {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--bm-amber) 0%, var(--bm-amber-2) 100%);
    color: #1a1206;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 12px 28px -8px rgba(255, 138, 0, 0.5);
}
.planner-success h2 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}
.planner-success p {
    color: var(--bm-muted);
    max-width: 36rem;
    margin: 0 auto 1.4rem;
}
.planner-success .success-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

/* --- Footer (sits at bottom via body flex; scrolls with page when tall) --- */
.planner-footer {
    flex-shrink: 0;
    padding: 0.3rem 0 0.3rem;
    text-align: center;
    color: var(--bm-muted);
    font-size: 0.65rem;
}
.planner-footer a {
    color: var(--bm-muted);
    text-decoration: none;
    margin: 0 0.5rem;
}
.planner-footer a:hover { color: var(--bm-ink); }
