/* --- Color Variables --- */
:root {
    --primary-color: #F15A29; /* Vibrant Coral */
    --primary-light: #FFF4F1; /* Soft Peach Glow */
    --secondary-color: #3FBFBF; /* Refreshing Teal */
    --neutral-dark: #1A1A1A; /* Deep Charcoal */
    --neutral-light: #F9F9F9; /* Warm Off-White */
    --text-color: var(--neutral-dark);
    --background-color: #FFFFFF;
    --footer-background: #121212;
    --placeholder-bg: #E5E5E5; /* Subtle Gray Tone */
    --faq-bg: #F5F7FA; /* Soft Gray for FAQ Section */
    --card-bg: #FFFFFF; /* White for FAQ Cards */
    --accent-shadow: rgba(241, 90, 41, 0.2); /* Soft shadow from primary color */
}

/* --- Basic Reset & Defaults --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
        sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    font-size: 14px;
    font-weight: 400;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.8em;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: 1px;
}

h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

h3 {
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 700;
}

h4 {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--neutral-dark);
}

ul {
    list-style: none;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Buttons --- */
button,
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px; /* Square corners retained */
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #D94A1E; /* Richer Coral */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--accent-shadow);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #2F8F8F; /* Deeper Teal */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--accent-shadow);
    text-decoration: none;
}

.btn-secondary-outline {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    font-weight: 700;
}

.btn-secondary-outline:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--accent-shadow);
    text-decoration: none;
}

.btn-alt-dark {
    background-color: var(--neutral-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
    padding: 12px 20px;
    font-weight: 700;
}

.btn-alt-dark i {
    margin-right: 10px;
}

.btn-alt-light {
    background-color: white;
    color: var(--neutral-dark);
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
    padding: 12px 20px;
    font-weight: 700;
}

.btn-alt-light i {
    margin-right: 10px;
}

/* --- Utility & Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
    font-weight: 700;
}

.placeholder {
    background-color: var(--placeholder-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
    min-height: 50px;
    text-align: center;
    border: 1px dashed #aaa;
    overflow: hidden;
    border-radius: 8px;
}

.aspect-ratio-square {
    aspect-ratio: 1 / 1;
    min-height: 0;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    background-color: #fff;
}

.aspect-ratio-circle {
    aspect-ratio: 1 / 1;
    min-height: 0;
    width: 70%;
    object-fit: cover;
    border-radius: 50%;
    background-color: #fff;
    position: relative;
    z-index: 2;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.placeholder.aspect-ratio-video {
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.placeholder.aspect-ratio-tall {
    aspect-ratio: 3 / 4;
    min-height: 0;
}

.placeholder.placeholder-circle {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    min-height: 0;
}

/* --- Grid Layout --- */
.grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.grid-col-3 {
    width: calc(25% - 20px);
    margin: 10px;
}

.grid-col-4 {
    width: calc(33.333% - 20px);
    margin: 10px;
}

.grid-col-6 {
    width: calc(50% - 20px);
    margin: 10px;
}

.grid-col-12 {
    width: calc(100% - 20px);
    margin: 10px;
}

/* --- Header --- */
.site-header {
    border-bottom: 1px solid var(--neutral-light);
    background-color: var(--background-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 50px;
    padding: 0 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.site-header .header-content {
    height: 100%;
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    height: 35px;
    width: auto;
    transition: transform 0.3s ease;
}

.site-header .logo:hover {
    transform: scale(1.05);
}

.site-header .auth-links a {
    margin-left: 15px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-header .auth-links a.btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    color: white;
}

.site-header .auth-links a.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--accent-shadow);
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    min-height: 90vh;
    position: relative;
    padding: 80px 5%;
    text-align: left;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    border-left: 4px solid var(--primary-color);
    padding-left: 25px;
    transition: padding 0.3s ease, border 0.3s ease;
}

.hero-section .eyebrow {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
    font-size: 3rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-section .subheadline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
    line-height: 1.5;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-section .hero-cta {
    margin-bottom: 20px;
}

.hero-section .hero-cta .btn {
    margin-right: 15px;
    font-weight: 700;
}

.hero-section .notes {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* --- Problem Section (Animated Split Reveal) --- */
.problem-reveal-section {
    background-color: var(--background-color);
    overflow: hidden;
}

.problem-reveal-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.problem-reveal-content .problem-col,
.problem-reveal-content .solution-col {
    flex: 1;
    min-width: 280px;
}

.problem-reveal-content .text-col {
    flex: 1.5;
    min-width: 300px;
    text-align: center;
}

.problem-reveal-content .text-col h2 {
    font-size: 2rem;
    color: var(--neutral-dark);
    text-shadow: none;
    font-weight: 800;
}

#problem-side {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#solution-side {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out 0.5s, transform 0.8s ease-out 0.5s;
}

.problem-reveal-section.is-revealed #problem-side {
    opacity: 0;
    transform: translateX(-30px);
}

.problem-reveal-section.is-revealed #solution-side {
    opacity: 1;
    transform: translateX(0);
}

/* --- Comparison Section --- */
.comparison-section {
    position: relative;
    background-color: var(--neutral-light);
}

.comparison-header {
    position: sticky;
    top: 50px;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--neutral-light);
    border-bottom: 1px solid #E0E0E0;
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.comparison-header h3 {
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 800;
}

.compare-title-left {
    text-align: right;
    color: #666;
    padding-right: 24px;
}

.compare-vs {
    text-align: center;
    color: var(--neutral-dark);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
}

.compare-title-right {
    text-align: left;
    color: var(--primary-color);
    padding-left: 24px;
}

.comparison-grid {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--background-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    align-items: center;
}

.comparison-row:not(:last-child) {
    border-bottom: 1px solid #E0E0E0;
}

.compare-col {
    padding: 24px;
}

.compare-col p {
    margin: 0;
    line-height: 1.6;
    font-weight: 600;
}

.compare-left {
    text-align: right;
    color: #666;
}

.compare-icon {
    width: 100px;
    height: 100%;
    padding: 16px;
    box-sizing: border-box;
    border-left: 1px solid #E0E0E0;
    border-right: 1px solid #E0E0E0;
    background-color: #fafafa;
    display: flex;
    align-items: center;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--neutral-light);
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.compare-right {
    text-align: left;
    color: var(--neutral-dark);
    font-weight: 700;
    background-color: var(--primary-light);
}

/* --- Features Section --- */
.features-section .features {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.features-section .feature {
    text-align: center;
}

.feature-card {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    margin-bottom: 15px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    z-index: 1;
}

.feature-text {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.feature-text.text-right {
    text-align: right;
}

.feature-text.text-left {
    text-align: left;
    align-self: flex-start;
    max-width: 85%;
}

/* --- Testimonial Section --- */
.testimonial-section {
    background-color: var(--neutral-light);
    overflow: hidden;
}

.testimonial-section h2 {
    margin-bottom: 40px;
    font-weight: 800;
}

.testimonial-carousel {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, black 5%, black 95%, transparent 100%);
    position: relative;
    
    /* NEW: This creates the two-row layout */
    display: flex;
    flex-direction: column;
    gap: 40px; /* NEW: Space between the two rows */
}

.carousel-track {
    display: flex;
    /* UPDATED: 320px width + 40px margin = 360px per card */
    width: calc(360px * 8); 
    animation: scroll 40s linear infinite;
}

/* NEW: Second track animation */
.carousel-track-two {
    animation: scroll-reverse 40s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

/* UPDATED: Keyframe for new card size */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* 4 original cards * 360px = 1440px */
        transform: translateX(calc(-360px * 4));
    }
}

/* NEW: Keyframe for reverse scrolling */
@keyframes scroll-reverse {
    0% {
        transform: translateX(calc(-360px * 4));
    }
    100% {
        transform: translateX(0);
    }
}

.testimonial-card {
    width: 320px;
    margin-right: 40px; /* UPDATED: Increased spacing */
    flex-shrink: 0;
    background-color: white;
    border: 1px solid #E0E0E0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--neutral-dark);
    border-radius: 8px;
    padding: 16px 20px;
    border-left: 5px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
}

.testimonial-card .quote-symbol {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 800;
    line-height: 1;
    margin-bottom: -8px;
}

.testimonial-card .quote-text {
    font-style: italic;
    color: #444;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    flex-grow: 1;
}

.testimonial-card .user-info {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.testimonial-card .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
    background-color: var(--placeholder-bg);
    border: 2px solid var(--primary-light);
}

.testimonial-card .user-details {
    display: flex;
    flex-direction: column;
}

.testimonial-card .user-name {
    font-weight: 700;
    color: var(--neutral-dark);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.testimonial-card .user-handle {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
}

/* --- How It Works Section --- */
.how-it-works-section .tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--neutral-light);
}

.how-it-works-section .tab {
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    text-transform: uppercase;
    font-weight: 700;
    color: #666;
    transition: color 0.3s ease;
}

.how-it-works-section .tab.active {
    border-bottom-color: var(--primary-color);
    color: var(--neutral-dark);
}

.how-it-works-section .steps {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    text-align: center;
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
}

.how-it-works-section .steps::before {
    content: "";
    position: absolute;
    top: 25%;
    left: 5%;
    width: 90%;
    height: 100px;
    z-index: 1;
    background-image: url('../images/wavy-line.svg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.how-it-works-section .steps-content {
    display: none;
}

.how-it-works-section .steps-content.active {
    display: flex;
}

.how-it-works-section .step {
    background-color: var(--background-color);
}

.how-it-works-section .step h4 {
    color: var(--primary-color);
}

/* --- FAQ Section (Enhanced) --- */
.faq-section {
    background-color: var(--faq-bg);
    padding: 80px 20px;
}

.faq-section .faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section .faq-item {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-section .faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.faq-section .faq-item summary {
    padding: 20px 50px 20px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neutral-dark);
    cursor: pointer;
    position: relative;
    list-style: none;
    user-select: none;
    transition: color 0.3s ease;
}

.faq-section .faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-section .faq-item summary::after {
    content: '\f078';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.25s ease;
    font-size: 1rem;
    color: #999;
}

.faq-section .faq-item[open] summary {
    color: var(--primary-color);
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
    font-weight: 800;
}

.faq-section .faq-item[open] summary::after {
    transform: translateY(-50%) rotate(-180deg);
    color: var(--primary-color);
}

.faq-section .faq-item p {
    padding: 0 20px 20px 20px;
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
    font-weight: 600;
}

.faq-section .faq-item[open]>*:not(summary) {
    animation: fadeIn 0.35s ease;
}

.faq-section .faq-item[open] {
    border-left: 3px solid var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Join CTA Section --- */
.join-section {
    color: white;
    background-color: var(--neutral-dark);
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
}

.join-section .eyebrow {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.join-section h2 {
    color: white;
    font-size: 2rem;
    max-width: 600px;
    margin: 0 auto 15px auto;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.join-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.join-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.join-form input[type="email"] {
    flex-grow: 1;
    padding: 14px 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    transition: border-color 0.3s ease;
}

.join-form input[type="email"]:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.join-form button {
    padding: 14px 24px;
    font-weight: 800;
    white-space: nowrap;
    border-radius: 4px; /* Square corners retained */
}

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-background);
    color: #eee;
    padding: 60px 0 30px 0;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.site-footer .footer-content.simple {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 40px auto;
}

.site-footer .footer-tagline img {
    height: 35px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.site-footer .footer-tagline img:hover {
    transform: scale(1.05);
}

.site-footer .footer-tagline p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 350px;
    font-weight: 600;
}

.site-footer .footer-social {
    text-align: right;
}

.site-footer .footer-social h4 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.site-footer .social-icons a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.site-footer .social-icons a:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
}

.site-footer .social-icons a:nth-child(even):hover {
    background-color: var(--secondary-color);
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #aaa;
    font-size: 0.85rem;
}

.site-footer .footer-bottom a {
    color: #ddd;
    margin: 0 12px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.site-footer .footer-bottom a:hover {
    color: var(--secondary-color);
}

/* --- Modal Styles --- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: var(--background-color);
    color: var(--neutral-dark);
    padding: 24px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    transition: transform 0.2s ease-out;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--neutral-dark);
    font-weight: 800;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-scroll-content {
    max-height: 60vh;
    overflow-y: auto;
}

#modal-text-content {
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-color);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    font-weight: 600;
}

/* --- Consolidated Responsive Media Queries --- */

/* Tablet (landscape) */
@media (max-width: 1024px) {
    .hero-section {
        justify-content: center;
        text-align: center;
        padding: 60px 40px;
    }

    .hero-section::before {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%);
    }

    .hero-section .hero-content {
        max-width: 90%;
        border-left: none;
        padding-left: 0;
    }

    .hero-section h1 {
        font-size: 2.4rem;
    }

    .hero-section .subheadline {
        font-size: 1.1rem;
    }
}

/* Tablet (portrait) */
@media (max-width: 992px) {
    .features-section .features {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .features-section .feature {
        width: 100%;
        max-width: 450px;
    }

    .how-it-works-section .steps {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        align-items: stretch;
        padding: 20px 0 20px 20px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 20px;
    }

    .how-it-works-section .steps::before {
        display: none;
    }

    .how-it-works-section .step {
        flex: 0 0 80%;
        max-width: 320px;
        margin-bottom: 0;
        scroll-snap-align: start;
    }

    .how-it-works-section .step.grid-col-4,
    .how-it-works-section .step.grid-col-full-mobile {
        width: auto;
    }
}

/* Mobile (large) */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .problem-reveal-content .text-col h2 {
        font-size: 1.5rem;
    }

    .join-form {
        flex-direction: column;
    }

    .site-footer .footer-content.simple {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-footer .footer-social {
        text-align: center;
    }

    .site-footer .social-icons a {
        margin-right: 6px;
    }

    .grid-col-3,
    .grid-col-4,
    .grid-col-6,
    .grid-col-12 {
        width: calc(50% - 20px);
    }

    .grid-col-full-mobile {
        width: calc(100% - 20px) !important;
    }
}

/* Mobile (medium) - Comparison Table */
@media (max-width: 700px) {
    .comparison-header {
        position: sticky;
        top: 50px;
        z-index: 10;
        grid-template-columns: 1fr auto 1fr;
        gap: 10px;
        width: 100%;
        padding: 12px 10px;
        box-sizing: border-box;
    }

    .comparison-header h3 {
        font-size: 0.9rem;
    }

    .compare-title-left {
        padding-right: 0;
    }

    .compare-vs {
        font-size: 0.9rem;
    }

    .compare-title-right {
        padding-left: 0;
    }

    .comparison-grid {
        border: none;
        box-shadow: none;
        background-color: transparent;
        border-radius: 0;
        overflow: visible;
        margin-top: 10px;
    }

    .comparison-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "icon icon" "left right";
        gap: 0 10px;
        background-color: var(--background-color);
        border: 1px solid #E0E0E0;
        border-radius: 12px;
        margin: 0 10px 20px 10px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }

    .comparison-row:not(:last-child) {
        border-bottom: 1px solid #E0E0E0;
    }

    .compare-col {
        padding: 16px;
    }

    .compare-icon {
        grid-area: icon;
        width: 100%;
        justify-self: center;
        border: none;
        background-color: transparent;
        padding-bottom: 12px;
        border-bottom: 1px solid #eee;
    }

    .compare-left {
        grid-area: left;
        text-align: left;
        font-size: 0.9rem;
    }

    .compare-right {
        grid-area: right;
        text-align: left;
        font-size: 0.9rem;
        background-color: transparent;
    }
}

/* Mobile (small) - Hero */
@media (max-width: 600px) {
    .hero-section {
        min-height: 80vh;
        padding: 60px 25px;
        background-position: center top;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-section::before {
        background: rgba(0, 0, 0, 0.5);
    }

    .hero-section .hero-content {
        max-width: 100%;
        margin: 0 auto;
        border-left: none;
        padding-left: 0;
    }

    .hero-section h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-section .subheadline {
        font-size: 1rem;
    }

    .hero-section .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-bottom: 20px;
    }

    .hero-section .hero-cta .btn {
        margin: 0;
        width: 80%;
        max-width: 280px;
    }

    .hero-section .notes {
        font-size: 0.85rem;
        text-align: center;
        margin-top: 10px;
    }
}

/* Mobile - FAQ */
@media (max-width: 600px) {
    .faq-section .faq-item summary {
        font-size: 1rem;
        padding-right: 40px;
    }

    .faq-section .faq-item p {
        font-size: 0.9rem;
    }
}