:root {
    --epb-ink: #1e1917;
    --epb-paper: #fff8ef;
    --epb-coral: #d94732;
    --epb-coral-dark: #a72c20;
    --epb-gold: #f2bf4b;
    --epb-mint: #77bfa3;
    --epb-shadow: 0 24px 90px rgba(34, 25, 20, 0.32);
}

.epb-spotlight,
.epb-spotlight * {
    box-sizing: border-box;
}

.epb-modal-lock {
    overflow: hidden;
}

.epb-spotlight {
    font-family: "Avenir Next", "Trebuchet MS", sans-serif;
    color: var(--epb-ink);
    z-index: 99995;
}

.epb-spotlight--floating {
    position: fixed;
    bottom: max(34px, env(safe-area-inset-bottom));
    max-width: min(430px, calc(100vw - 32px));
    animation: epb-float-in 520ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.epb-spotlight--right {
    right: 30px;
}

.epb-spotlight--left {
    left: 30px;
}

.epb-spotlight--inline {
    position: relative;
    display: inline-block;
    max-width: 360px;
}

.epb-spotlight.is-open {
    animation: none;
    transform: none;
    z-index: 2147483640;
}

.epb-spotlight.is-open > .epb-bubble,
html.epb-modal-lock .fpr-planning-bubble {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.epb-bubble {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 88px;
    padding: 13px 18px 13px 13px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--epb-paper), #ffffff 42%, #ffe7d8);
    box-shadow: var(--epb-shadow);
    color: var(--epb-ink);
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transform: translateY(0);
    isolation: isolate;
    will-change: transform;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.epb-bubble::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.72) 42%, transparent 68%);
    border-radius: inherit;
    clip-path: inset(0 round 999px);
    transform: translateX(-120%);
    animation: epb-sheen 4.8s ease-in-out 1.2s infinite;
    pointer-events: none;
}

.epb-bubble:hover,
.epb-bubble:focus-visible {
    color: var(--epb-ink);
    outline: 3px solid rgba(217, 71, 50, 0.22);
    transform: translateY(-3px);
    filter: saturate(1.05);
    box-shadow: 0 30px 95px rgba(34, 25, 20, 0.4);
}

.epb-bubble__glow {
    position: absolute;
    inset: -7px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(217, 71, 50, 0.35), rgba(242, 191, 75, 0.28), rgba(119, 191, 163, 0.26));
    filter: blur(9px);
    opacity: 0.75;
    z-index: -1;
    animation: epb-glow 3.8s ease-in-out infinite;
    will-change: opacity, transform;
}

.epb-bubble__image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--epb-coral);
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
    animation: epb-soft-pulse 3.2s ease-in-out infinite;
}

.epb-bubble__image--contain {
    background-color: #fff;
    background-size: contain;
    background-repeat: no-repeat;
}

.epb-bubble__copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.epb-bubble__eyebrow,
.epb-modal__eyebrow {
    color: var(--epb-coral-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.epb-bubble strong {
    overflow-wrap: anywhere;
    font-size: 16px;
    line-height: 1.2;
}

.epb-bubble__arrow {
    position: relative;
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--epb-ink), #3a2b25);
    box-shadow: 0 10px 22px rgba(30, 25, 23, 0.28);
    transition: transform 180ms ease, background 180ms ease;
}

.epb-bubble__arrow::before,
.epb-bubble__arrow::after {
    position: absolute;
    content: "";
    background: #fff;
}

.epb-bubble__arrow::before {
    top: 18px;
    left: 11px;
    width: 14px;
    height: 2px;
    border-radius: 99px;
}

.epb-bubble__arrow::after {
    top: 14px;
    left: 21px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    background: transparent;
    transform: rotate(45deg);
}

.epb-bubble:hover .epb-bubble__arrow,
.epb-bubble:focus-visible .epb-bubble__arrow {
    background: linear-gradient(135deg, var(--epb-coral-dark), var(--epb-coral));
    transform: translateX(4px) scale(1.04);
}

.epb-modal[hidden] {
    display: none;
}

.epb-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    z-index: 2147483640;
}

.epb-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 14, 12, 0.7);
    animation: epb-fade-in 180ms ease both;
}

.epb-modal__dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 0.86fr) minmax(0, 1.14fr);
    width: min(960px, calc(100vw - 40px));
    height: min(760px, calc(100dvh - 40px));
    max-height: calc(100dvh - 40px);
    min-height: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--epb-paper);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
    animation: epb-modal-in 260ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
    will-change: transform, opacity;
}

.epb-modal__dialog--no-image {
    grid-template-columns: minmax(0, 1fr);
    width: min(680px, calc(100vw - 40px));
}

@supports not (height: 100dvh) {
    .epb-modal__dialog {
        height: min(760px, calc(100vh - 40px));
        max-height: calc(100vh - 40px);
    }
}

.epb-modal__dialog:focus {
    outline: none;
}

.epb-modal__image {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.epb-modal__image--contain {
    object-fit: contain;
    padding: clamp(24px, 5vw, 56px);
    background: #fff;
}

.epb-modal__content {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    overflow: hidden;
    padding: clamp(24px, 5vw, 46px);
    padding-bottom: clamp(24px, 5vw, 46px);
}

.epb-modal__body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 10px;
    scrollbar-gutter: stable;
}

.epb-modal__content h2 {
    margin: 8px 0 12px;
    color: var(--epb-ink);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.04;
}

.epb-modal__summary,
.epb-modal__details {
    font-size: 16px;
    line-height: 1.55;
}

.epb-modal__summary {
    margin: 0 0 18px;
    color: #493d36;
}

.epb-modal__details {
    color: #332a25;
}

.epb-modal__details p:first-child {
    margin-top: 0;
}

.epb-modal__footer {
    padding-top: 18px;
}

.epb-modal__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 20px 0 24px;
    border-radius: 999px;
    background: var(--epb-coral);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(217, 71, 50, 0.32);
}

.epb-modal__cta::after {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background:
        linear-gradient(#fff, #fff) 7px 10px / 8px 2px no-repeat,
        linear-gradient(45deg, transparent 45%, #fff 46% 54%, transparent 55%) 10px 6px / 8px 10px no-repeat,
        rgba(255, 255, 255, 0.18);
    content: "";
    transition: transform 180ms ease;
}

.epb-modal__cta:hover,
.epb-modal__cta:focus-visible {
    background: var(--epb-coral-dark);
    color: #fff;
}

.epb-modal__cta:hover::after,
.epb-modal__cta:focus-visible::after {
    transform: translateX(3px);
}

@keyframes epb-float-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes epb-sheen {
    0%,
    68% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

@keyframes epb-glow {
    0%,
    100% {
        opacity: 0.52;
        transform: scale(0.98);
    }
    50% {
        opacity: 0.88;
        transform: scale(1.03);
    }
}

@keyframes epb-soft-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.045);
    }
}

@keyframes epb-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes epb-modal-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.epb-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 248, 239, 0.9);
    color: var(--epb-ink);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    z-index: 2;
}

@media (max-width: 700px) {
    .epb-spotlight--floating {
        right: 14px;
        bottom: max(18px, env(safe-area-inset-bottom));
        left: 14px;
        max-width: none;
    }

    .epb-bubble {
        min-height: 76px;
        padding: 10px 14px 10px 10px;
    }

    .epb-bubble__image {
        width: 56px;
        height: 56px;
    }

    .epb-bubble__arrow {
        width: 34px;
        height: 34px;
    }

    .epb-modal {
        padding: 12px;
    }

    .epb-modal__dialog {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        width: 100%;
        height: calc(100dvh - 24px);
        max-height: calc(100dvh - 24px);
    }

    .epb-modal__image {
        height: clamp(150px, 28dvh, 230px);
        min-height: 0;
    }

    .epb-modal__content {
        min-height: 0;
        padding: 22px;
        padding-bottom: calc(30px + env(safe-area-inset-bottom));
    }

    .epb-modal__body {
        padding-right: 8px;
    }

    .epb-modal__footer {
        padding-top: 14px;
    }

    .epb-modal__cta {
        width: 100%;
    }

    .epb-modal__content h2 {
        font-size: 30px;
    }
}

@media (max-width: 420px) {
    .epb-bubble__eyebrow {
        font-size: 10px;
    }

    .epb-bubble strong {
        font-size: 14px;
    }

    .epb-bubble__arrow {
        width: 32px;
        height: 32px;
    }

    .epb-bubble__arrow::before {
        top: 15px;
        left: 9px;
        width: 12px;
    }

    .epb-bubble__arrow::after {
        top: 11px;
        left: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .epb-spotlight--floating,
    .epb-bubble::before,
    .epb-bubble__glow,
    .epb-bubble__image,
    .epb-modal__backdrop,
    .epb-modal__dialog {
        animation: none;
    }

    .epb-bubble,
    .epb-bubble__arrow {
        transition: none;
    }
}
