:root {
    --alabaster-base: #f4f4f2;
    --alabaster-highlight: #ffffff;
    --alabaster-shadow: #e2e2de;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #222222;
    --fluid-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* Mobile Responsive Fixes - Consolidated & Aggressive */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    max-width: 100vw;
}

body {
    background-color: var(--alabaster-base);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.4;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

/* Satinated Liquid Background */
.liquid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #f9f9f8 0%, #f4f4f2 100%);
    overflow: hidden;
}

.liquid-blob {
    position: absolute;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(244, 244, 242, 0) 70%);
    filter: blur(80px);
    border-radius: 50%;
    animation: drift 25s infinite alternate var(--fluid-ease);
    opacity: 0.6;
}

@keyframes drift {
    0% {
        transform: translate(-10%, -10%) scale(1);
    }

    100% {
        transform: translate(20%, 15%) scale(1.1);
    }
}

/* Typography & Layout */
header {
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
    margin-top: 5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

nav a {
    font-size: 13px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.5;
    transform: translateY(0);
}

main {
    padding: 220px 60px 100px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero {
    max-width: 900px;
}

.pre-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    display: block;
    overflow: hidden;
}

h1 {
    font-size: clamp(48px, 6vw, 90px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 1.2s var(--fluid-ease) forwards;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.description {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 60px;
    line-height: 1.6;
    font-weight: 300;
}

.cta-container {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

/* Glow Effect for Buttons */
.btn-primary {
    background: var(--accent);
    color: white;
    padding: 12px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: transform 0.4s var(--fluid-ease), box-shadow 0.4s var(--fluid-ease);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.btn-primary:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover::after {
    opacity: 1;
    transform: scale(1);
    transition-duration: 0.8s;
}

/* Satin Element */
.satin-surface {
    position: relative;
    min-height: 600px;
    margin-top: 60px;
    border-radius: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e2de 100%);
    box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.5),
        0 40px 80px -20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
}

.satin-content {
    z-index: 2;
    text-align: center;
}

.satin-content h2 {
    font-size: 48px;
    font-weight: 800;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.liquid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

footer {
    padding: 100px 60px;
    border-top: 1px solid var(--alabaster-shadow);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 20px;
}

/* About Section */
.about-section {
    margin-top: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--alabaster-shadow);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.5s ease;
}

.about-image:hover {
    filter: grayscale(0%);
}

.about-content h2 {
    font-size: 40px;
    margin-bottom: 30px;
    font-weight: 800;
}

/* Services Section */
.services-section {
    margin-top: 80px;
}

.section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    display: block;
    font-family: 'JetBrains Mono', monospace;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    background: white;
    padding: 40px;
    border: 1px solid var(--alabaster-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--text-primary);
}

.service-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    margin-bottom: 20px;
    display: block;
    font-weight: 400;
}

/* Deliverables Styling */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.deliverable-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 4px solid #d4af37;
    /* Gold accent */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
}

.deliverable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.deliverable-card h4 {
    color: #1a1a1a;
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.deliverable-card h4::before {
    content: '◆';
    color: #d4af37;
    font-size: 12px;
}

.deliverable-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}


/* Testimonials Marquee */
.testimonials-section {
    margin-top: 80px;
    overflow: hidden;
    position: relative;
    padding: 60px 0;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 80s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.testimonial-card {
    flex: 0 0 auto;
    width: 450px;
    /* Increased from 400px */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: white;
    transition: transform 0.3s var(--fluid-ease);
}

.testimonial-card:hover {
    transform: scale(1.05);
    z-index: 5;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.testimonial-card img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* FAQ Section Styling */
.faq-section {
    margin-top: 80px;
    max-width: 800px;
    /* Narrower for readability */
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--alabaster-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #d1d1d1;
    transform: translateY(-2px);
}

.faq-item.active {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--accent);
}

.faq-question {
    padding: 24px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    user-select: none;
}

.faq-question span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--accent);
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
    /* Turn + into x if rotated, or rely on text swap */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.5s ease;
    padding: 0 24px;
    opacity: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Arbitrary limit, flexible */
    padding: 0 24px 30px 24px;
    opacity: 1;
}

/* Smooth Fade In for Sections */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Urgency Banner (Red) */
.urgency-badge {
    background-color: #ff3b30;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(255, 59, 48, 0.3);
}

/* Secure Purchase Badge */
.secure-badges {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0.6;
    filter: grayscale(100%);
}

.secure-badges svg {
    height: 30px;
    width: auto;
}

/* Secondary button for Clinics/Lawyers link */
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid var(--alabaster-shadow);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {

    /* 1. Container & Padding Resets */
    main {
        padding: 120px 20px 60px 20px !important;
        width: 100%;
        overflow-x: hidden;
    }

    /* 2. Header & Nav Control */
    header {
        padding: 15px 20px !important;
        height: 100px;
        width: 100% !important;
        max-width: 100vw;
        box-sizing: border-box;
        justify-content: space-between;
        /* Ensure layout doesn't break */
    }

    .logo-img {
        height: 80px !important;
        margin-top: 0;
    }

    nav {
        gap: 10px;
        /* Reduced gap for mobile */
    }

    nav a:not(.btn-primary):not(.btn-secondary) {
        display: none !important;
    }

    nav a {
        font-size: 10px !important;
        margin-left: 0;
        white-space: nowrap;
        /* Keep links on one line if possible, or allow wrap if needed */
    }

    /* 3. Grid Systems - Force Stack */
    .services-grid,
    .audience-grid,
    .stats-grid,
    .problem-solution-section,
    .deliverables-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        gap: 30px !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .about-section {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        gap: 30px !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 40px !important;
        /* Reduced from default 160px */
    }

    /* 4. Component Specifics to Prevent Overflow */
    .plan-card {
        padding: 30px 20px !important;
    }

    /* Manual Scroll for Testimonials (Mobile) */
    .testimonial-card {
        width: 90vw !important;
        max-width: 450px;
        scroll-snap-align: center;
        flex: 0 0 auto;
    }

    .marquee-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
    }

    .marquee-content {
        animation: none !important;
        width: max-content;
        gap: 20px;
        padding: 0 20px;
        display: flex;
    }

    /* 5. Typography Limits */
    h1 {
        font-size: 26px !important;
        line-height: 1.3;
        letter-spacing: -0.5px;
        white-space: normal !important;
        /* Allow wrapping */
        word-wrap: break-word;
    }

    h2 {
        font-size: 24px !important;
        word-wrap: break-word;
    }

    /* 6. Background Control */
    .liquid-blob {
        width: 100%;
        /* Restrict blob width relative to viewport */
        height: 50vh;
        left: 0 !important;
        right: 0 !important;
    }

    /* 7. Footer */
    footer {
        padding: 40px 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .faq-section {
        margin-top: 100px;
    }

    .faq-question {
        font-size: 16px;
        padding: 20px;
    }
}

/* Fix for 'Fat' Button on Mobile - Prevent text wrapping */
/* Fix for Mobile Header Overflow - Fit both buttons */
@media (max-width: 768px) {
    header {
        padding: 10px 15px !important;
    }

    .logo-img {
        height: 60px !important;
        /* Sized for mobile visibility while fitting buttons */
    }

    nav {
        gap: 6px !important;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 10px !important;
        padding: 8px 10px !important;
        white-space: nowrap;
        width: auto !important;
    }
}

/* Diagnostic Form Styling */
.diagnostic-section {
    margin-top: 80px;
    padding: 60px 20px;
    background: #ffffff;
    border-top: 1px solid var(--alabaster-shadow);
    border-bottom: 1px solid var(--alabaster-shadow);
}

.diagnostic-container {
    max-width: 800px;
    margin: 0 auto;
}

.diagnostic-header {
    text-align: center;
    margin-bottom: 50px;
}

.diagnostic-header h2 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--accent);
}

.diagnostic-header p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.question-block {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.6s var(--fluid-ease) forwards;
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: block;
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-radio {
    display: block;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.radio-mark {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background-color: var(--alabaster-base);
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 15px;
    color: var(--text-secondary);
}

.custom-radio:hover .radio-mark {
    background-color: #eaeaea;
}

.custom-radio input:checked~.radio-mark {
    background-color: #ffffff;
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.radio-mark::before {
    content: "";
    height: 18px;
    width: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-radio input:checked~.radio-mark::before {
    border-color: var(--accent);
    background-color: var(--accent);
    box-shadow: inset 0 0 0 3px white;
}

.form-input-text {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #e2e2de;
    background-color: var(--alabaster-base);
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 100px;
}

.form-input-text:focus {
    outline: none;
    border-color: var(--accent);
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.diagnostic-actions {
    margin-top: 50px;
    text-align: center;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}