/* ============================================================
   FONT FACES
   ============================================================ */
@font-face {
    font-family: 'ITC Avant Garde Gothic';
    src: url('fonts/ITC Avant Garde Gothic Medium.woff2') format('woff2'),
         url('fonts/ITC Avant Garde Gothic Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ITC Avant Garde Gothic';
    src: url('fonts/ITC_Avant_Garde_Gothic_CE_Demi.woff2') format('woff2'),
         url('fonts/ITC_Avant_Garde_Gothic_CE_Demi.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ITC Avant Garde Gothic';
    src: url('fonts/ITC Avant Garde Gothic Bold.woff2') format('woff2'),
         url('fonts/ITC Avant Garde Gothic Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Filson Pro';
    src: url('fonts/FilsonProMedium.woff2') format('woff2'),
         url('fonts/FilsonProMedium.otf') format('opentype');
    font-weight: 100 900;  /* Range covers all weights — eliminates weight-matching issues */
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --sand: #F2E8DC;
    --terracotta: #b4544e;
    --black: #231F20;
    --white: #FFFFFF;
    --font-heading: 'ITC Avant Garde Gothic', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Filson Pro', 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================================
   RESET (excludes widget)
   ============================================================ */
*:where(:not(#jammjamm-widget-root, #jammjamm-widget-root *)) {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#site-wrapper {
    overflow-x: hidden;
    min-height: 100%;
}

/* ============================================================
   FIXED HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 32px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: none;
}

.header-logo {
    display: inline-block;
}

.header-logo img {
    height: 44px;
    width: auto;
    transition: opacity 0.2s ease;
}

/* Wordmark toggle: show/hide based on header theme */
.header--light .wordmark-light {
    display: block;
}

.header--light .wordmark-dark {
    display: none;
}

.header--dark .wordmark-light {
    display: none;
}

.header--dark .wordmark-dark {
    display: block;
}

/* Header CTA button */
.header-cta {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 1.1vw, 17px);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Light theme (over image sections): sand button */
.header--light .header-cta {
    background-color: var(--sand);
    color: var(--black);
}

/* Dark theme (over sand sections): terracotta button */
.header--dark .header-cta {
    background-color: var(--terracotta);
    color: var(--white);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('desktop_images/MIRASCAPE POOL HERO (DESKTOP).png');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-content {
    max-width: 1200px;
    padding: 0 24px;
    margin-top: -80px;
}

.hero-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 1.2vw, 18px);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--sand);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
    white-space: pre-line;
}

.hero-headline em {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
}

.hero-subhead {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    line-height: 1.6;
    color: var(--white);
    opacity: 0.85;
    max-width: 750px;
    margin: 0 auto;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features {
    background-color: var(--sand);
    padding: 120px 24px;
}

.features-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.section-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 1.2vw, 18px);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--black);
    text-align: center;
    margin-bottom: 20px;
}

.section-headline {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    color: var(--black);
    text-align: center;
    max-width: none;
    margin: 0 auto 60px;
    line-height: 1.15;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: -6px 6px 0px 0px var(--terracotta);
}

.card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(22px, 2vw, 28px);
    color: var(--black);
    margin-bottom: 12px;
}

.card-body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.6;
    color: var(--black);
    opacity: 0.8;
}

/* ============================================================
   HOW IT WORKS SECTION
   ============================================================ */
.how-it-works {
    background-color: var(--terracotta);
    padding: 60px 24px 120px;
}

.how-it-works .section-label,
.how-it-works .section-headline {
    color: var(--white);
}

.how-it-works-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: -6px 6px 0px 0px var(--terracotta);
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--terracotta);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 24px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(22px, 2vw, 28px);
    color: var(--black);
    margin-bottom: 8px;
}

.step-body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.6;
    color: var(--black);
    opacity: 0.8;
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing {
    background-color: var(--white);
    padding: 120px 24px;
    border-top: 1px solid rgba(158, 93, 84, 0.08);
}

.pricing-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-intro {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--black);
    opacity: 0.65;
    text-align: center;
    max-width: 600px;
    margin: -40px auto 60px;
    line-height: 1.5;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    max-width: 440px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--sand);
    border-radius: 16px;
    box-shadow: -6px 6px 0px 0px var(--terracotta);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card--featured {
    box-shadow: -8px 8px 0px 0px var(--terracotta);
    border: 2px solid var(--terracotta);
}

.pricing-card-badge {
    background-color: var(--terracotta);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    padding: 8px 0;
}

.pricing-card-header {
    padding: 36px 32px 24px;
    text-align: center;
}

.pricing-tier-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(18px, 1.8vw, 22px);
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 16px;
}

.pricing-dollar {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--terracotta);
    align-self: flex-start;
    margin-top: 0.3em;
}

.pricing-amount {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(3.5rem, 5vw, 5rem);
    line-height: 1;
    color: var(--terracotta);
}

.pricing-period {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(14px, 1.2vw, 17px);
    color: var(--black);
    opacity: 0.5;
    margin-left: 4px;
}

.pricing-tier-desc {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(14px, 1.2vw, 16px);
    color: var(--black);
    opacity: 0.6;
    line-height: 1.5;
}

.pricing-card-body {
    padding: 0 32px 36px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    flex: 1;
    border-top: 1px solid rgba(35, 31, 32, 0.08);
    padding-top: 24px;
}

.pricing-features li {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(14px, 1.2vw, 16px);
    color: var(--black);
    opacity: 0.8;
    line-height: 1.5;
    padding: 8px 0 8px 28px;
    position: relative;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--terracotta);
    opacity: 0.15;
}

.pricing-features li::after {
    content: '✓';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 700;
    color: var(--terracotta);
}

.pricing-cta {
    display: block;
    text-align: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(14px, 1.2vw, 16px);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.pricing-cta--outline {
    border: 2px solid var(--terracotta);
    color: var(--terracotta);
    background: transparent;
}

.pricing-cta--outline:hover {
    background-color: var(--terracotta);
    color: var(--white);
}

.pricing-cta--solid {
    background-color: var(--terracotta);
    color: var(--white);
    border: 2px solid var(--terracotta);
}

.pricing-cta--solid:hover {
    background-color: #5a0f0d;
    border-color: #5a0f0d;
}

.pricing-footnote {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(13px, 1.1vw, 15px);
    color: var(--black);
    opacity: 0.45;
    text-align: center;
    margin-top: 48px;
    line-height: 1.6;
}

.pricing-trial {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(14px, 1.2vw, 16px);
    color: var(--black);
    opacity: 0.5;
    text-align: center;
    margin-top: 32px;
}

.pricing-contact-link {
    color: var(--terracotta);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============================================================
   FOOTER CTA SECTION
   ============================================================ */
.footer-cta {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: clamp(80px, 15vh, 160px);
    background-image: url('desktop_images/MIRASCAPE DUSK HERO (DESKTOP).png');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.footer-cta-headline {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 4rem);
    color: var(--white);
    margin-bottom: 20px;
    padding: 0 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
}

.footer-cta-subhead {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    line-height: 1.6;
    color: var(--white);
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 36px;
    padding: 0 24px;
}

.footer-cta-button {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 999px;
    background-color: var(--sand);
    color: var(--black);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(16px, 1.3vw, 19px);
    text-decoration: none;
    letter-spacing: 0.05em;
}

/* ============================================================
   FOOTER BAR
   ============================================================ */
.footer-bar {
    position: relative;
    padding: 24px 32px 32px;
    background: transparent;
}

/* Position footer-bar over the CTA image */
.footer-cta-wrapper {
    position: relative;
}

.footer-cta-wrapper .footer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.footer-privacy-link {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--white);
    opacity: 0.5;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.footer-privacy-link:hover {
    opacity: 1;
}

/* ============================================================
   PRIVACY OVERLAY (preserved from original)
   ============================================================ */
.privacy-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.85);
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease-out 0.1s, visibility 0s 0.6s;
}

.privacy-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.5s ease-out 0.1s, visibility 0s 0s;
}

.privacy-overlay.closing {
    opacity: 0;
    transition: opacity 0.3s ease-in, visibility 0s 0.3s;
}

.privacy-close {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10002;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.5rem;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s ease;
    line-height: 1;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-close:hover {
    opacity: 1;
}

.privacy-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 40px 120px;
    font-family: 'Nunito', sans-serif;
}

.privacy-hero {
    margin-bottom: 2rem;
}

.privacy-hero-line {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    margin-bottom: 0.25em;
    line-height: 1.1;
}

.privacy-hero-purple {
    color: #5F28FF;
}

.privacy-subtitle {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.5;
    color: #FFFFFF;
    margin-bottom: 2.5rem;
}

.privacy-section-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-top: 3rem;
    margin-bottom: 1rem;
    border-left: 3px solid #5F28FF;
    padding-left: 1rem;
}

.privacy-body p {
    font-size: 1rem;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.privacy-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.privacy-body ul li {
    color: #FFFFFF;
    opacity: 0.85;
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.privacy-body ul li::marker {
    color: #5F28FF;
}

.privacy-body ul li strong {
    font-weight: 600;
    color: #FFFFFF;
}

.privacy-email {
    color: #5F28FF;
    text-decoration: none;
    font-weight: 600;
}

.privacy-footer-meta {
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.privacy-footer-meta p {
    font-size: 0.8rem;
    opacity: 0.4;
}

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

.privacy-overlay.open .privacy-stagger-1,
.privacy-overlay.open .privacy-stagger-2,
.privacy-overlay.open .privacy-stagger-3,
.privacy-overlay.open .privacy-stagger-4,
.privacy-overlay.open .privacy-stagger-5,
.privacy-overlay.open .privacy-stagger-rest {
    animation: privacyFadeUp 0.6s ease-out both;
}

.privacy-overlay.open .privacy-stagger-1 { animation-delay: 0.2s; }
.privacy-overlay.open .privacy-stagger-2 { animation-delay: 0.35s; }
.privacy-overlay.open .privacy-stagger-3 { animation-delay: 0.5s; }
.privacy-overlay.open .privacy-stagger-4 { animation-delay: 0.65s; }
.privacy-overlay.open .privacy-stagger-5 { animation-delay: 0.8s; }
.privacy-overlay.open .privacy-stagger-rest { animation-delay: 0.8s; }

/* ============================================================
   WIDGET PROTECTION (preserved from original)
   ============================================================ */
#jammjamm-widget-root,
#jammjamm-widget-root * {
    box-sizing: border-box;
}

#jammjamm-widget-root .jj-expanded {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    width: 100dvw !important;
    z-index: 9999 !important;
}

#jammjamm-widget-root .jj-preview {
    align-items: center;
    padding-left: 0;
    padding-right: 0;
}

#jammjamm-widget-root .jj-preview-row {
    justify-content: center;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 960px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        max-width: 100%;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .header {
        padding: 20px 20px;
    }

    .header-logo {
        height: 28px;
    }

    .header-logo img {
        height: 28px;
    }

    .header-cta {
        padding: 10px 22px;
        font-size: 13px;
    }

    .hero {
        min-height: 100svh;
    }

    .hero-label {
        font-size: 14px;
    }

    .features {
        padding: 80px 20px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .section-headline {
        margin-bottom: 40px;
    }

    .how-it-works {
        padding: 40px 20px 80px;
    }

    .step-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .pricing {
        padding: 80px 20px;
    }

    .pricing-intro {
        margin-bottom: 40px;
    }

    .pricing-card-header {
        padding: 28px 24px 20px;
    }

    .pricing-card-body {
        padding: 0 24px 28px;
    }

    .footer-cta {
        min-height: 100svh;
    }

    .footer-cta-headline {
        white-space: normal;
    }

    .footer-bar {
        padding: 20px 20px 28px;
    }

    .privacy-content {
        padding: 60px 20px 120px;
    }
}
