/* ==================== FREE RECORDING MODAL ====================
   includes/free-recording.html + js/free-recording.js. Deep Surrender tokens only.
   Gold is never text (Ryan is colorblind): gold is the button fill under navy text,
   a hover border and the focus ring. The cards copy the my.liquidbreathwork.com
   Vault card: cover contained on abyss, title, then "Audio, length, date".
   ==================== */

.fr-modal {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    background: color-mix(in srgb, var(--abyss) 82%, transparent);
}
.fr-modal[hidden] { display: none; }
body.fr-open { overflow: hidden; }
/* Overlays never stack: the one sticky bar steps aside while this is open. */
body.fr-open .sticky-cta, body.fr-open .lp-sticky, body.fr-open .sticky-signup-bar { display: none !important; }

.fr-card {
    position: relative; width: 100%; max-width: 520px; max-height: calc(100dvh - 32px);
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--deep-water); color: var(--cream);
    border: 1px solid var(--gold-20); border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.fr-card.is-wide { max-width: 940px; }
.fr-close {
    position: absolute; top: 8px; right: 8px; width: 44px; height: 44px;
    background: none; border: 0; color: var(--cream-60); font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.fr-close:hover { color: var(--cream); }
.fr-close:focus-visible, .fr-back:focus-visible, .fr-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.fr-h {
    font-family: var(--font-heading); font-size: 1.6rem; line-height: 1.25;
    color: var(--cream); margin: 0 2.25rem 0.5rem 0; text-wrap: balance;
}
.fr-lead { color: var(--cream-80); font-size: 1rem; line-height: 1.55; margin: 0 0 1.25rem; text-wrap: balance; }
.fr-to { margin: -0.75rem 0 1.25rem; font-size: 1.05rem; line-height: 1.4; }
.fr-to strong { color: var(--cream); font-weight: 600; overflow-wrap: anywhere; }
.fr-note { color: var(--cream-80); font-size: 0.92rem; line-height: 1.55; margin: 0 0 1.5rem; }

.fr-field { margin: 0 0 1rem; }
.fr-field label {
    display: block; font-size: 0.85rem; font-weight: 600; color: var(--warm-sand); margin: 0 0 0.4rem;
}
.fr-field input {
    width: 100%; box-sizing: border-box; min-height: 48px; padding: 0.75rem 1rem;
    background: var(--undertow); border: 1px solid var(--gold-20); border-radius: 8px;
    color: var(--cream); font-family: var(--font-body); font-size: 16px;
}
.fr-field input::placeholder { color: var(--cream-40); }
.fr-field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-20); }
.fr-field input:-webkit-autofill {
    -webkit-text-fill-color: var(--cream); -webkit-box-shadow: 0 0 0 1000px var(--undertow) inset; caret-color: var(--cream);
}
.fr-consent { font-size: 0.78rem; line-height: 1.45; color: var(--cream-80); margin: 0.45rem 0 0; }
.fr-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fr-err { color: var(--cream); background: color-mix(in srgb, var(--ember) 35%, transparent); border: 1px solid var(--ember); border-radius: 8px; padding: 0.6rem 0.8rem; font-size: 0.9rem; margin: 0 0 1rem; }
.fr-err[hidden] { display: none; }
.fr-card .fr-btn { display: flex; width: 100%; max-width: none; box-sizing: border-box; margin: 0; justify-content: center; align-items: center; min-height: 48px; border: 0; cursor: pointer; }
.fr-card .fr-btn[disabled] { opacity: 0.6; cursor: wait; }

.fr-back {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.25rem; margin: -0.5rem 0 0.25rem -0.25rem;
    background: none; border: 0; color: var(--cream-80); font-family: var(--font-body); font-size: 0.95rem; cursor: pointer;
}
.fr-back:hover { color: var(--cream); }
.fr-status { color: var(--cream-80); font-size: 0.95rem; margin: 0 0 1rem; }
.fr-status:empty { display: none; }

/* The Vault card, as on my.liquidbreathwork.com/vault */
.fr-cat { margin: 0 0 1.5rem; }
.fr-cat h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--cream); margin: 0 0 0.65rem; text-wrap: balance; }
.fr-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .fr-grid { grid-template-columns: 1fr 1fr 1fr; gap: 16px; } }
.fr-grid li { display: flex; }
.fr-item {
    display: flex; flex-direction: column; width: 100%; min-height: 44px; padding: 0; text-align: left;
    background: var(--abyss); color: var(--cream); font-family: var(--font-body);
    border: 1px solid var(--undertow); border-radius: 14px; overflow: hidden; cursor: pointer;
    transition: transform 0.2s cubic-bezier(.2,.8,.2,1), border-color 0.2s ease-out;
}
.fr-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.fr-item[disabled] { cursor: wait; opacity: 0.55; transform: none; }
.fr-item.is-sending { opacity: 1; border-color: var(--gold); }
.fr-art { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: var(--abyss); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.fr-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fr-art span { color: var(--cream-60); font-size: 0.9rem; font-weight: 600; }
.fr-body { padding: 10px 12px 12px; background: var(--undertow); flex: 1 1 auto; width: 100%; box-sizing: border-box; }
.fr-title { display: block; font-size: 0.95rem; font-weight: 600; line-height: 1.35; margin: 0 0 4px; color: var(--cream); text-wrap: pretty; }
.fr-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--cream-80); font-size: 0.8rem; }
.fr-sending { display: block; margin-top: 6px; font-size: 0.82rem; font-weight: 600; color: var(--cream); }

.fr-done .fr-h { margin-top: 0.25rem; }

@media (max-width: 640px) {
    .fr-modal { padding: 10px; align-items: flex-end; }
    .fr-card { padding: 1.6rem 1.15rem 1.25rem; max-height: calc(100dvh - 20px); border-radius: 16px; }
    .fr-h { font-size: 1.4rem; }
    .fr-title { font-size: 0.88rem; }
    .fr-meta { font-size: 0.76rem; }
}

/* ==================== FREE RECORDING CTA PANEL ====================
   includes/free-recording-cta.html. A dark panel with its own text colors so it
   reads on navy, sand and blog pages alike (contrast rule 9a): section-alt and
   blog rules are out-specified on purpose.
   ==================== */
.fr-cta {
    display: grid; grid-template-columns: 240px 1fr; align-items: stretch;
    max-width: 760px; margin: 2.5rem auto 0; overflow: hidden; text-align: left;
    background: var(--deep-water); border: 1px solid var(--gold-20); border-radius: 14px;
}
.blog-post-body .fr-cta, .blog-post-content .fr-cta { max-width: none; }
.fr-cta .fr-cta__img { display: block; width: 100%; height: 100%; min-height: 180px; object-fit: cover; margin: 0; border-radius: 0; pointer-events: none; }
.fr-cta .fr-cta__body { padding: 1.6rem 1.75rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.fr-cta .fr-cta__h, .section-alt .fr-cta .fr-cta__h, .blog-post-body .fr-cta .fr-cta__h {
    font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.25; color: var(--cream);
    margin: 0 0 0.4rem; text-wrap: balance;
}
.fr-cta .fr-cta__p, .section-alt .fr-cta .fr-cta__p, .blog-post-body .fr-cta .fr-cta__p {
    color: var(--cream); font-size: 1rem; line-height: 1.55; margin: 0 0 1.15rem; text-wrap: balance;
}
.fr-cta .fr-cta__btn { margin: 0; text-decoration: none; }
@media (max-width: 640px) {
    .fr-cta { grid-template-columns: 1fr; margin-top: 2rem; }
    .fr-cta .fr-cta__img { height: auto; aspect-ratio: 16 / 9; min-height: 0; }
    .fr-cta .fr-cta__body { padding: 1.25rem 1.15rem 1.4rem; align-items: stretch; text-align: center; }
    .fr-cta .fr-cta__h, .section-alt .fr-cta .fr-cta__h, .blog-post-body .fr-cta .fr-cta__h { font-size: 1.3rem; }
    .fr-cta .fr-cta__btn { width: 100%; box-sizing: border-box; text-align: center; justify-content: center; }
}
