/* Father's Day Expedition Popup — scoped under #fdp-root / .fdp-* */

#fdp-root.fdp-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: transparent;
    opacity: 0;
    transition: opacity 400ms ease;
    -webkit-font-smoothing: antialiased;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    pointer-events: none;
}

#fdp-root.fdp-overlay .fdp-card,
#fdp-root.fdp-overlay .fdp-close {
    pointer-events: auto;
}

#fdp-root.fdp-show { opacity: 1; }

/* Topographic contour background — hidden in transparent-overlay mode */
#fdp-root .fdp-topo { display: none; }

/* The card — aged paper field brief */
#fdp-root .fdp-card {
    position: relative;
    width: 100%;
    max-width: 540px;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(210, 84, 46, 0.10) 0%, transparent 45%),
        radial-gradient(ellipse at 100% 100%, rgba(232, 181, 71, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, #F6EDD7 0%, #EFE2C5 100%);
    color: #1B1F26;
    border-radius: 3px;
    box-shadow:
        0 40px 90px -10px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(27, 31, 38, 0.10),
        inset 0 0 80px rgba(210, 84, 46, 0.05),
        inset 0 0 0 1px rgba(244, 236, 216, 0.5);
    overflow: hidden;
    transform: translateY(50px) rotate(-1.2deg) scale(0.97);
    opacity: 0;
    transition:
        transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 500ms ease;
}

#fdp-root.fdp-show .fdp-card {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
}

/* Paper grain overlay */
#fdp-root .fdp-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15 0 0 0 0 0.12 0 0 0 0 0.08 0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
    opacity: 0.35;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}

/* Map coordinates header */
#fdp-root .fdp-coords {
    position: absolute;
    top: 18px;
    left: 22px;
    font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: rgba(27, 31, 38, 0.55);
    text-transform: uppercase;
    z-index: 3;
}

#fdp-root .fdp-coords::before {
    content: '◉ ';
    color: #C8392A;
    margin-right: 2px;
}

/* "Field Approved" rotated stamp */
#fdp-root .fdp-stamp {
    position: absolute;
    top: 50px;
    right: 64px;
    transform: rotate(8deg);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 13px;
    line-height: 1.05;
    text-align: center;
    color: #C8392A;
    letter-spacing: 0.14em;
    padding: 9px 13px 7px;
    border: 1.8px solid #C8392A;
    border-radius: 3px;
    opacity: 0.72;
    z-index: 3;
    text-transform: uppercase;
    background: rgba(200, 57, 42, 0.04);
}

#fdp-root .fdp-stamp-star {
    display: block;
    font-size: 9px;
    line-height: 1;
    margin: 2px 0;
    letter-spacing: 0;
}

#fdp-root .fdp-stamp-top,
#fdp-root .fdp-stamp-bot {
    display: block;
}

/* Close button */
#fdp-root .fdp-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(27, 31, 38, 0.22);
    background: rgba(244, 236, 216, 0.92);
    border-radius: 50%;
    color: #1B1F26;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background-color 250ms ease,
        color 250ms ease,
        border-color 250ms ease,
        transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 4;
    padding: 0;
}

#fdp-root .fdp-close:hover,
#fdp-root .fdp-close:focus-visible {
    background: #1B1F26;
    color: #F4ECD8;
    border-color: #1B1F26;
    transform: rotate(90deg);
    outline: none;
}

#fdp-root .fdp-close svg { display: block; }

/* Body */
#fdp-root .fdp-body {
    position: relative;
    padding: 72px 44px 36px;
    text-align: center;
    z-index: 2;
}

/* Eyebrow */
#fdp-root .fdp-eyebrow {
    margin: 0 0 22px;
    font-family: 'Bebas Neue', 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #C8392A;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

#fdp-root .fdp-eyebrow-rule {
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C8392A, transparent);
}

/* Title */
#fdp-root .fdp-title {
    margin: 0 0 18px;
    font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
    font-weight: 500;
    font-variation-settings: 'SOFT' 100, 'opsz' 144;
    font-size: 40px;
    line-height: 1.02;
    color: #1B1F26;
    letter-spacing: -0.02em;
}

#fdp-root .fdp-title em {
    font-style: italic;
    font-weight: 600;
    color: #D2542E;
    font-variation-settings: 'SOFT' 100, 'opsz' 144, 'WONK' 1;
    padding: 0 0.05em;
    position: relative;
    display: inline-block;
}

#fdp-root .fdp-title em::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 6px;
    background: rgba(232, 181, 71, 0.45);
    z-index: -1;
    transform: skewX(-6deg);
}

#fdp-root .fdp-title-second {
    display: block;
    font-size: 27px;
    font-weight: 400;
    font-style: italic;
    color: rgba(27, 31, 38, 0.72);
    margin-top: 2px;
    font-variation-settings: 'SOFT' 100, 'opsz' 144;
}

/* Lead paragraph */
#fdp-root .fdp-lead {
    margin: 0 auto 28px;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 14.5px;
    line-height: 1.55;
    color: rgba(27, 31, 38, 0.75);
    max-width: 390px;
}

/* Offers row */
#fdp-root .fdp-offers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 0 0 18px;
}

#fdp-root .fdp-offer {
    position: relative;
    background: rgba(255, 250, 235, 0.55);
    border: 1px dashed rgba(27, 31, 38, 0.28);
    border-radius: 3px;
    padding: 22px 14px 16px;
    text-align: center;
    transition:
        transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 280ms ease,
        border-color 250ms ease;
}

#fdp-root .fdp-offer:hover {
    transform: translateY(-3px) rotate(-0.6deg);
    box-shadow: 0 14px 32px -8px rgba(11, 20, 38, 0.25);
    border-color: rgba(27, 31, 38, 0.45);
}

#fdp-root .fdp-offer:nth-child(2):hover {
    transform: translateY(-3px) rotate(0.6deg);
}

#fdp-root .fdp-offer-num {
    position: absolute;
    top: 8px;
    left: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    color: rgba(27, 31, 38, 0.45);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Hexagonal badge */
#fdp-root .fdp-hex {
    width: 84px;
    height: 96px;
    margin: 4px auto 12px;
    background: #1B1F26;
    color: #F4ECD8;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    transition: transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

#fdp-root .fdp-offer:hover .fdp-hex {
    transform: rotate(-8deg) scale(1.04);
}

#fdp-root .fdp-offer:nth-child(2):hover .fdp-hex {
    transform: rotate(8deg) scale(1.04);
}

#fdp-root .fdp-offer:nth-child(2) .fdp-hex {
    background: #D2542E;
}

#fdp-root .fdp-hex-pre {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    opacity: 0.82;
    margin-bottom: 1px;
    text-transform: uppercase;
}

#fdp-root .fdp-hex-amt {
    font-family: 'Fraunces', serif;
    font-variation-settings: 'opsz' 144;
    font-weight: 700;
    font-size: 26px;
    line-height: 1;
    letter-spacing: -0.01em;
}

#fdp-root .fdp-offer-title {
    margin: 0 0 3px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 17px;
    letter-spacing: 0.06em;
    color: #1B1F26;
}

#fdp-root .fdp-offer-sub {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-variation-settings: 'SOFT' 100, 'opsz' 14;
    font-style: italic;
    font-size: 12.5px;
    line-height: 1.35;
    color: rgba(27, 31, 38, 0.62);
}

/* Bonus line */
#fdp-root .fdp-bonus {
    margin: 0 0 24px;
    font-family: 'Manrope', sans-serif;
    font-size: 12.5px;
    color: rgba(27, 31, 38, 0.68);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
}

#fdp-root .fdp-bonus-mark {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: #C8392A;
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
}

/* CTA — luggage tag */
#fdp-root .fdp-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 20px 28px;
    background: #1B1F26;
    color: #F4ECD8 !important;
    text-decoration: none !important;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 19px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border-radius: 2px;
    transition:
        background-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 280ms ease;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 8px 24px -6px rgba(11, 20, 38, 0.45);
}

#fdp-root .fdp-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(244, 236, 216, 0.18) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 750ms cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

#fdp-root .fdp-cta:hover,
#fdp-root .fdp-cta:focus-visible {
    background: #D2542E;
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -8px rgba(210, 84, 46, 0.55);
    outline: none;
}

#fdp-root .fdp-cta:hover::before {
    transform: translateX(120%);
}

#fdp-root .fdp-cta-label { position: relative; z-index: 1; }

#fdp-root .fdp-cta-arrow {
    position: relative;
    z-index: 1;
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    font-size: 22px;
    line-height: 1;
    transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

#fdp-root .fdp-cta:hover .fdp-cta-arrow {
    transform: translateX(8px);
}

/* Luggage-tag corner ticks */
#fdp-root .fdp-cta-corner {
    position: absolute;
    width: 9px;
    height: 9px;
    border: 1.2px solid rgba(244, 236, 216, 0.45);
    pointer-events: none;
}
#fdp-root .fdp-cta-corner--tl { top: 7px; left: 7px;  border-right: none; border-bottom: none; }
#fdp-root .fdp-cta-corner--tr { top: 7px; right: 7px; border-left: none;  border-bottom: none; }
#fdp-root .fdp-cta-corner--bl { bottom: 7px; left: 7px;  border-right: none; border-top: none; }
#fdp-root .fdp-cta-corner--br { bottom: 7px; right: 7px; border-left: none;  border-top: none; }

/* Fine print */
#fdp-root .fdp-fine {
    margin: 18px 0 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: rgba(27, 31, 38, 0.55);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Dismiss link */
#fdp-root .fdp-dismiss-link {
    display: block;
    margin: 10px auto 0;
    padding: 6px 12px;
    background: none;
    border: none;
    color: rgba(27, 31, 38, 0.52);
    font-family: 'Fraunces', serif;
    font-variation-settings: 'SOFT' 100, 'opsz' 14;
    font-style: italic;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(27, 31, 38, 0.2);
    transition: color 200ms ease, text-decoration-color 200ms ease;
}

#fdp-root .fdp-dismiss-link:hover,
#fdp-root .fdp-dismiss-link:focus-visible {
    color: #C8392A;
    text-decoration-color: #C8392A;
    outline: none;
}

/* Compass rose decoration */
#fdp-root .fdp-compass {
    position: absolute;
    bottom: 16px;
    right: 18px;
    width: 38px;
    height: 38px;
    color: rgba(27, 31, 38, 0.32);
    z-index: 2;
    pointer-events: none;
    animation: fdpCompassDrift 28s linear infinite;
}

@keyframes fdpCompassDrift {
    0%   { transform: rotate(-2deg); }
    50%  { transform: rotate(2deg); }
    100% { transform: rotate(-2deg); }
}

/* Staggered content reveal */
#fdp-root.fdp-show .fdp-body > * {
    animation: fdpRise 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
#fdp-root.fdp-show .fdp-eyebrow      { animation-delay: 220ms; }
#fdp-root.fdp-show .fdp-title        { animation-delay: 320ms; }
#fdp-root.fdp-show .fdp-lead         { animation-delay: 420ms; }
#fdp-root.fdp-show .fdp-offers       { animation-delay: 520ms; }
#fdp-root.fdp-show .fdp-bonus        { animation-delay: 620ms; }
#fdp-root.fdp-show .fdp-cta          { animation-delay: 700ms; }
#fdp-root.fdp-show .fdp-fine         { animation-delay: 800ms; }
#fdp-root.fdp-show .fdp-dismiss-link { animation-delay: 870ms; }

@keyframes fdpRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

#fdp-root.fdp-show .fdp-stamp {
    animation: fdpStamp 600ms cubic-bezier(0.5, 1.5, 0.5, 1) 950ms both;
}

@keyframes fdpStamp {
    0%   { opacity: 0; transform: rotate(8deg) scale(1.6); }
    60%  { opacity: 0.85; transform: rotate(8deg) scale(0.94); }
    100% { opacity: 0.72; transform: rotate(8deg) scale(1); }
}

/* No scroll-lock — overlay is transparent and non-blocking */
body.fdp-open { overflow: visible; }

/* Mobile */
@media (max-width: 540px) {
    #fdp-root.fdp-overlay { padding: 16px; }
    #fdp-root .fdp-body { padding: 64px 22px 28px; }
    #fdp-root .fdp-title { font-size: 31px; }
    #fdp-root .fdp-title-second { font-size: 22px; }
    #fdp-root .fdp-lead { font-size: 13.5px; }
    #fdp-root .fdp-offers {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    #fdp-root .fdp-offer {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "num   num"
            "hex   title"
            "hex   sub";
        align-items: center;
        column-gap: 16px;
        row-gap: 2px;
        text-align: left;
        padding: 14px 14px 14px 12px;
    }
    #fdp-root .fdp-offer-num   { grid-area: num; position: static; margin-bottom: 4px; }
    #fdp-root .fdp-hex         { grid-area: hex; margin: 0; width: 70px; height: 80px; }
    #fdp-root .fdp-offer-title { grid-area: title; text-align: left; }
    #fdp-root .fdp-offer-sub   { grid-area: sub;   text-align: left; }
    #fdp-root .fdp-hex-amt     { font-size: 22px; }
    #fdp-root .fdp-stamp {
        right: 56px;
        top: 44px;
        font-size: 11px;
        padding: 6px 10px 4px;
    }
    #fdp-root .fdp-cta { font-size: 16px; padding: 17px 20px; letter-spacing: 0.18em; }
    #fdp-root .fdp-compass { display: none; }
    #fdp-root .fdp-coords { font-size: 9px; }
    #fdp-root .fdp-bonus { font-size: 12px; line-height: 1.45; }
}

@media (max-width: 360px) {
    #fdp-root .fdp-title { font-size: 27px; }
    #fdp-root .fdp-title-second { font-size: 19px; }
    #fdp-root .fdp-stamp { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    #fdp-root *,
    #fdp-root.fdp-overlay,
    #fdp-root .fdp-card,
    #fdp-root .fdp-topo,
    #fdp-root .fdp-compass,
    #fdp-root.fdp-show .fdp-body > *,
    #fdp-root.fdp-show .fdp-stamp {
        animation: none !important;
        transition: opacity 200ms ease !important;
    }
    #fdp-root .fdp-card { transform: none; }
}
