/* ============================================
   Mediasphere Solutions — Ad Funnel
   Matched to the live site: black, cream #f1ece1,
   Playfair italics, section tags, monochrome.
   ============================================ */

:root {
    --bg: #000000;
    --bg-2: #070707;
    --card: #0c0c0c;
    --card-hover: #131313;

    --cream: #f1ece1;
    --text: rgba(241, 236, 225, 0.92);
    --text-soft: rgba(241, 236, 225, 0.62);
    --text-mut: rgba(241, 236, 225, 0.40);

    --border: rgba(255, 255, 255, 0.09);
    --border-soft: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 255, 255, 0.22);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 100px;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-serif: 'Playfair Display', 'Georgia', serif;

    --container: 680px;
    --container-wide: 1080px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-soft);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Cosmos starfield backdrop (same as the live site) */
.cosmos-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    display: block;
}

.wrap { position: relative; z-index: 1; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--container-wide); }

/* ---------- Section tag (tiny uppercase label) ---------- */
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-mut);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-bottom: 18px;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--cream); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }

/* Playfair italic accent — the brand signature, replaces gradient words */
.serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: rgba(241, 236, 225, 0.88);
    letter-spacing: -0.01em;
}
/* legacy hook kept so older markup still renders on-brand */
.grad-text { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: rgba(241,236,225,0.88); }

.lead { font-size: clamp(1.02rem, 1.9vw, 1.18rem); color: var(--text-soft); line-height: 1.7; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    background: var(--cream);
    color: #050505;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease, background 0.3s ease;
}
.btn::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.btn { box-shadow: 0 0 32px rgba(241, 236, 225, 0.14); }
.btn:hover { transform: translateY(-2px); background: #ffffff; box-shadow: 0 12px 44px rgba(241, 236, 225, 0.38); }
.btn:hover::after { transform: translateX(100%); }
.btn:active { transform: translateY(0); }
.btn-lg { font-size: 1.05rem; padding: 18px 40px; }
.btn-block { width: 100%; }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
    box-shadow: none;
}
.btn-outline::after { display: none; }
.btn-outline:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.4); box-shadow: none; }

/* ---------- Top bar + progress ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
}
.topbar-inner {
    max-width: var(--container-wide); margin: 0 auto;
    padding: 16px 24px; display: flex; align-items: center; justify-content: center;
}
.topbar .logo { height: 40px; width: auto; }

.progress { height: 9px; background: rgba(255,255,255,0.08); width: 100%; overflow: hidden; border-radius: 100px; }
.progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #f1ece1, #ffffff);
    border-radius: 100px;
    box-shadow: 0 0 16px rgba(241, 236, 225, 0.55);
    transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
}
.step-label {
    text-align: center; font-size: 0.78rem; letter-spacing: 0.16em;
    color: var(--text); padding: 13px 0 0; text-transform: uppercase; font-weight: 600;
}
.step-label .serif { font-size: 0.95rem; letter-spacing: 0; }

/* ---------- Landing (form-first) ---------- */
.hero { text-align: center; padding: 54px 0 30px; position: relative; }
.hero-logo { height: 64px; width: auto; margin: 0 auto 30px; }
.hero-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.92rem; font-weight: 500;
    color: var(--cream);
    text-transform: uppercase; letter-spacing: 0.16em;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.hero h1 { margin: 0 auto 16px; max-width: 720px; font-size: clamp(1.7rem, 4vw, 2.7rem); }
.hero .lead { max-width: 540px; margin: 0 auto 36px; }

/* Repeating CTA that jumps back to the form */
.cta-center { text-align: center; padding: 8px 0 4px; }
.cta-center .btn { min-width: 280px; }
.cta-kicker { margin-top: 16px; font-size: 0.85rem; color: var(--text-mut); letter-spacing: 0.01em; }

/* Stats band — a distinct, raised section */
.proof-band {
    max-width: 880px; margin: 0 auto; text-align: center;
    background: linear-gradient(180deg, #101010, #070707);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 24px;
    padding: 48px 40px 44px;
    box-shadow: 0 0 70px rgba(241, 236, 225, 0.07), 0 30px 90px rgba(0, 0, 0, 0.55);
}
.proof-band .section-tag { margin-bottom: 14px; }
.proof-band h2 { margin: 0 auto 34px; max-width: 640px; }
.stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    border-top: 1px solid var(--border);
}
.stat { text-align: center; padding: 34px 16px 8px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num { font-family: var(--font-serif); font-style: italic; font-size: clamp(2.2rem, 4.8vw, 3.3rem); color: var(--cream); line-height: 1; text-shadow: 0 0 30px rgba(241, 236, 225, 0.35); }
.stat-label { font-size: 0.84rem; color: var(--text-soft); margin-top: 12px; line-height: 1.4; }

.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.section-head .lead { margin-top: 16px; }

/* Feature rows (editorial, not icon-tile grid) */
.features { display: grid; gap: 0; max-width: 720px; margin: 0 auto; border-top: 1px solid var(--border); }
.feature {
    display: grid; grid-template-columns: 44px 1fr; gap: 22px; align-items: start;
    padding: 26px 6px; border-bottom: 1px solid var(--border);
}
.feature-mark {
    font-family: var(--font-serif); font-style: italic;
    font-size: 1.05rem; color: var(--text-mut);
    padding-top: 2px;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--cream); }
.feature p { font-size: 0.96rem; color: var(--text-soft); }

/* How it works */
.steps { display: grid; gap: 16px; max-width: 660px; margin: 0 auto; }
.step-item {
    display: flex; gap: 22px; align-items: baseline;
    padding: 24px 4px; border-bottom: 1px solid var(--border);
}
.step-num { font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; color: var(--text-mut); flex-shrink: 0; width: 46px; }
.step-item h3 { font-size: 1.1rem; margin-bottom: 5px; }
.step-item p { font-size: 0.95rem; color: var(--text-soft); }

/* CTA band */
.cta-band {
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px 32px;
    background: var(--bg-2);
}
.cta-band h2 { margin: 8px 0 16px; }
.cta-band p { max-width: 460px; margin: 0 auto 30px; }

/* ---------- Form ---------- */
.form-wrap { padding: 56px 0 80px; }
.form-head { text-align: center; max-width: 540px; margin: 0 auto 38px; }
.form-head h1 { margin-bottom: 14px; }

.form-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    padding: 32px 32px 38px;
    max-width: 540px; margin: 0 auto;
    text-align: left;
    box-shadow: 0 0 70px rgba(255, 255, 255, 0.22), 0 0 140px rgba(241, 236, 225, 0.12);
}
.form-progress { margin: 0 -32px 26px; }
.form-progress .progress { background: rgba(255,255,255,0.07); }
.form-progress .step-label { font-size: 0.66rem; padding-top: 12px; }
.fstep { display: none; }
.fstep.active { display: block; animation: fade 0.45s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fstep-title { font-family: var(--font-serif); font-style: italic; color: var(--cream); font-size: 1.4rem; font-weight: 400; margin-bottom: 6px; }
.fstep-sub { font-size: 0.9rem; color: var(--text-mut); margin-bottom: 28px; }

.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text); margin-bottom: 9px; letter-spacing: 0.01em; }
label .req { color: var(--text-mut); }
input, select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input::placeholder { color: rgba(241,236,225,0.28); }
input:focus, select:focus { outline: none; border-color: rgba(255,255,255,0.4); box-shadow: 0 0 0 3px rgba(241,236,225,0.07); }
select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23f1ece1' opacity='0.5' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
    display: block; margin: 0; text-align: center; padding: 13px 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--text-soft); cursor: pointer; font-weight: 500;
    transition: all 0.18s ease;
}
.choice input:checked + label { border-color: var(--cream); background: rgba(241,236,225,0.06); color: var(--cream); }

.form-nav { display: flex; gap: 12px; margin-top: 30px; }
.form-nav .btn { flex: 1; }
.field-error { color: #e0a3a3; font-size: 0.82rem; margin-top: 8px; display: none; }
.field-error.show { display: block; }
.form-foot-note { text-align: center; font-size: 0.8rem; color: var(--text-mut); margin-top: 20px; }
.form-foot-note a { color: var(--text); border-bottom: 1px solid var(--border-hover); }

/* ---------- Booking ---------- */
.center-page { padding: 70px 0 80px; text-align: center; }
.badge {
    display: inline-flex; align-items: center; gap: 9px;
    border: 1px solid var(--border-hover); color: var(--text);
    font-weight: 500; padding: 8px 18px; border-radius: var(--radius-pill);
    font-size: 0.82rem; letter-spacing: 0.04em; margin-bottom: 26px; text-transform: uppercase;
}
.badge i { color: var(--cream); }
.center-page h1 { margin-bottom: 16px; }
.center-page .lead { max-width: 540px; margin: 0 auto 40px; }

.calendly-box {
    background: var(--card); border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-lg); overflow: hidden; min-height: 660px;
    box-shadow: 0 0 70px rgba(255, 255, 255, 0.22), 0 0 140px rgba(241, 236, 225, 0.12);
}
.calendly-inline-widget { min-width: 320px; height: 660px; }
.embed-placeholder {
    display: grid; place-items: center; min-height: 420px;
    border: 1px dashed var(--border-hover); border-radius: var(--radius-lg);
    color: var(--text-mut); text-align: center; padding: 44px;
}
.embed-placeholder h3 { color: var(--cream); margin-bottom: 8px; font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* ---------- VSL / Thank you ---------- */
.vsl-page { padding: 64px 0 80px; text-align: center; }
.vsl-page h1 { margin-bottom: 16px; }
.vsl-page .lead { max-width: 560px; margin: 0 auto 36px; }

.video-frame {
    position: relative; width: 100%; max-width: 820px; margin: 10px auto 34px;
    aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 70px rgba(255, 255, 255, 0.22), 0 0 140px rgba(241, 236, 225, 0.12);
}
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: #050505; color: var(--text-mut); text-align: center; padding: 30px;
}
.video-placeholder .play {
    width: 70px; height: 70px; border-radius: 50%; background: var(--cream);
    display: grid; place-items: center; color: #050505; font-size: 1.3rem; margin: 0 auto 16px;
}
.video-placeholder h3 { color: var(--cream); font-family: var(--font-serif); font-style: italic; font-weight: 400; margin-bottom: 6px; }

.confirm-note { margin-bottom: 44px; color: var(--text-soft); font-size: 0.95rem; }
.confirm-note i { color: var(--cream); }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; margin-top: 16px; text-align: left; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.testi-card { background: var(--bg); padding: 30px 26px; }
.testi-stars { color: var(--cream); font-size: 0.82rem; margin-bottom: 14px; letter-spacing: 3px; }
.testi-card p { color: var(--text); font-size: 0.97rem; margin-bottom: 20px; font-family: var(--font-serif); font-style: italic; line-height: 1.6; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-hover); display: grid; place-items: center; color: var(--cream); font-weight: 600; font-size: 0.8rem; }
.testi-name { color: var(--cream); font-weight: 600; font-size: 0.9rem; }
.testi-role { color: var(--text-mut); font-size: 0.8rem; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 90px; }
.legal .container { max-width: 820px; }
.legal-header { margin-bottom: 2.4rem; border-bottom: 1px solid var(--border); padding-bottom: 1.6rem; }
.legal-header h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal-header .last-updated { color: var(--text-mut); font-size: 0.9rem; margin-top: 8px; }
.legal-content h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 2.4rem 0 0.7rem; color: var(--cream); }
.legal-content h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; color: var(--text); }
.legal-content p { color: var(--text-soft); line-height: 1.8; margin-bottom: 1rem; font-size: 0.97rem; }
.legal-content ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-content ul li { color: var(--text-soft); line-height: 1.8; font-size: 0.97rem; margin-bottom: 0.35rem; }
.legal-content strong { color: var(--cream); }
.legal-content a { color: var(--cream); border-bottom: 1px solid var(--border-hover); }
.legal-intro-box { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.legal-intro-box p { margin-bottom: 0; }
.legal-content .gradient-text, .legal-header .gradient-text { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: rgba(241, 236, 225, 0.88); }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--border); padding: 34px 24px; text-align: center; color: var(--text-mut); font-size: 0.82rem; }
.site-foot a { color: var(--text-soft); }
.site-foot a:hover { color: var(--cream); }
.site-foot .foot-links { margin-bottom: 12px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 560px) {
    .field-row { grid-template-columns: 1fr; }
    .form-card { padding: 28px 20px; }
    .hero { padding: 56px 0 28px; }
    .form-nav { flex-direction: column-reverse; }
    .trust-item + .trust-item { border-left: none; border-top: 1px solid var(--border); }
}
