/* ═══════════════════════════════════════════════════════════
   ROSA V3 — HOMEPAGE CSS
   Style: Modern B2B SaaS Premium Creative
   ═══════════════════════════════════════════════════════════ */

/* ─── HERO SECTION ──────────────────────────────────────── */
.hero {
    padding: calc(var(--nav-height) + 64px) 0 80px;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

/* Subtle background accent glow */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(229, 93, 37, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 620px;
}

.hero-content h1 {
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.hero-ctas {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    padding-top: var(--space-md);
}

.hero-stars {
    color: var(--warning);
    font-size: var(--font-size-base);
    letter-spacing: 2px;
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

/* ─── PAIN POINTS TABS ───────────────────────────────────── */
.pain-section {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pain-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.pain-tab {
    padding: 12px 24px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-white);
    transition: all var(--transition);
}

.pain-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pain-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.pain-panel {
    display: none;
}

.pain-panel.active {
    display: block;
}

.pain-story {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-2xl);
    box-shadow: var(--shadow-sm);
}

.pain-story h2 {
    font-size: var(--font-size-2xl);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
    color: var(--text);
}

.pain-story p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.pain-story strong {
    color: var(--text);
}

.pain-conclusion {
    font-size: var(--font-size-md) !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    border-top: 2px solid var(--bg-subtle);
    padding-top: var(--space-lg);
    margin-top: var(--space-xl) !important;
}

.pain-cta {
    margin-top: var(--space-xl);
    text-align: center;
}

/* ─── SOLUTION SECTION ──────────────────────────────────── */
.solution-section {
    position: relative;
    background: var(--bg-white);
}

.solution-section .pain-story {
    box-shadow: none;
    border: none;
    padding: 0;
}

.solution-section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: var(--space-xl);
}

.solution-section ul li {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

.solution-section ul li strong {
    color: var(--text);
}

/* ─── STATS BAR ─────────────────────────────────────────── */
.stats-bar {
    background: var(--bg-dark);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--bg-dark-border);
    border-bottom: 1px solid var(--bg-dark-border);
}

.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(229, 93, 37, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ─── SERVICES PREVIEW ──────────────────────────────────── */
.services-taste {
    background: var(--bg-subtle);
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-card-hover);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    transition: transform var(--transition-slow);
}

.service-card:hover img {
    transform: scale(1.03);
}

.service-card-content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-content h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-xs);
    color: var(--text);
}

.service-price {
    font-size: var(--font-size-sm);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.service-feature-list {
    margin-top: auto;
}

.service-feature-list li {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.service-feature-list li:last-child {
    border-bottom: none;
}

.service-feature-list li.included-highlight {
    color: var(--text);
    font-weight: 600;
}

.included-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    margin-left: var(--space-xs);
    vertical-align: middle;
}

.included-callout {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-2xl);
}

.included-callout-icon {
    color: var(--success);
    flex-shrink: 0;
}

.included-callout strong {
    display: block;
    color: var(--text);
    font-size: var(--font-size-sm);
    margin-bottom: 4px;
}

.included-callout span {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── HOW IT WORKS ──────────────────────────────────────── */
.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-size-base);
    margin: 0 auto var(--space-md);
    box-shadow: var(--shadow-primary);
}

.reassurance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    border-top: 1px solid var(--border);
    padding-top: var(--space-2xl);
}

.reassurance-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.reassurance-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    background: var(--bg-white);
}

.reassurance-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reassurance-icon svg {
    width: 18px;
    height: 18px;
}

.reassurance-item h4 {
    font-size: var(--font-size-base);
    margin-bottom: 4px;
    color: var(--text);
}

.reassurance-item p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ─── BEFORE/AFTER GALLERY PREVIEW ──────────────────────── */
.gallery-section {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ba-preview {
    max-width: 960px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.gallery-section .grid-4 .card {
    padding: 0;
    overflow: hidden;
    background: var(--bg-white);
}

.gallery-section .grid-4 .card img {
    transition: transform var(--transition-slow);
}

.gallery-section .grid-4 .card:hover img {
    transform: scale(1.04);
}

.gallery-section .grid-4 h4 {
    font-family: var(--font-body);
    font-weight: 600;
}

/* ─── TRUSTED LOGOS ─────────────────────────────────────── */
.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.trusted-logo {
    padding: var(--space-md) var(--space-xl);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    transition: all var(--transition);
    opacity: 0.6;
}

.trusted-logo span {
    font-family: var(--font-heading);
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--text-secondary);
}

.trusted-logo:hover {
    opacity: 1;
    border-color: var(--primary);
    background: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ─── TESTIMONIALS SECTION ──────────────────────────────── */
.testimonials-section {
    background: var(--bg-subtle);
}

.tc-stars {
    color: var(--warning);
    font-size: var(--font-size-base);
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-white);
    box-shadow: var(--shadow-sm);
}

/* ─── COMPARISON SECTION ────────────────────────────────── */
.compare-section {
    background: var(--bg-white);
}

.compare-table-wrap {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* ─── WAITLIST SURVEY FORM (Google Form Embed) ─────────── */
.waitlist-section {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.waitlist-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(229, 93, 37, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.waitlist-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-md);
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Top gradient accent bar */
.waitlist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Native HTML waitlist form */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.wl-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.wl-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wl-field label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text);
}

.wl-field input,
.wl-field select {
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    width: 100%;
}

.wl-field input:focus,
.wl-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 93, 37, 0.1);
    background: #fff;
}

.wl-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.wl-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    user-select: none;
}

.wl-check:has(input:checked) {
    border-color: var(--primary);
    background: rgba(229, 93, 37, 0.06);
    color: var(--primary);
    font-weight: 600;
}

.wl-check input[type="checkbox"] {
    width: auto;
    accent-color: var(--primary);
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

.wl-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1.5px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    color: var(--text);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin-top: var(--space-md);
}

@media (max-width: 600px) {
    .wl-row {
        grid-template-columns: 1fr;
    }

    .wl-checkboxes {
        flex-direction: column;
    }
}


/* ─── RESPONSIVE RULES ──────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        max-width: 600px;
    }

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-trust {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: calc(var(--nav-height) + 32px) 0 56px;
    }

    .hero-visual {
        order: -1;
    }

    .pain-story {
        padding: var(--space-xl) var(--space-lg);
    }

    .reassurance-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .trusted-logos {
        gap: var(--space-md);
    }

    .trusted-logo {
        padding: var(--space-sm) var(--space-md);
    }
}

@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: var(--space-sm);
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .pain-tabs {
        gap: var(--space-xs);
    }

    .pain-tab {
        width: 100%;
        text-align: center;
    }
}
