/* ═══ Landing page styles (Index) ═══ */

/* Fix Horizontal Scroll Issue */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Scroll Animation Styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
.animate-on-scroll:nth-child(5) { transition-delay: 400ms; }
.animate-on-scroll:nth-child(6) { transition-delay: 500ms; }

.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .slide-in-left,
    .slide-in-right {
        transform: translateY(30px) !important;
    }

    .slide-in-left.visible,
    .slide-in-right.visible {
        transform: translateY(0) !important;
    }
}

/* Hero entrance animations */
.hero-fade-in {
    animation: heroFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-header {
    animation-delay: 0ms;
}

.hero-title {
    animation-delay: 150ms;
}

.hero-subtitle {
    animation-delay: 300ms;
}

.hero-buttons {
    animation-delay: 450ms;
}

.hero-benefits-animate {
    animation-delay: 600ms;
}

.hero-image-animate {
    animation: heroImageFloat 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 200ms;
}

@keyframes heroImageFloat {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.parallax-subtle {
    transition: transform 0.3s ease-out;
}

/* Hero section background */
.hero-section-bg {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

/* Hero title and text */
.hero-title-text {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title-accent {
    color: var(--brand-primary);
}

.hero-lead {
    font-size: 1.375rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-button-group {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta-row-links {
    gap: 1.5rem;
}

.hero-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.25rem;
    font-size: 1.125rem;
    color: var(--brand-primary);
    font-weight: 600;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    align-self: center;
}

.hero-cta-link:hover {
    color: var(--brand-primary-hover);
}

/* Hero layout */
.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .hero-text {
        text-align: left;
    }

    .hero-text h1,
    .hero-text .lead {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-text .button-group {
        justify-content: flex-start;
    }

    .hero-text .hero-cta-row {
        justify-content: flex-start;
    }

    .hero-text .hero-header {
        margin: .5rem 0;
    }
}

@media (min-width: 1024px) {
    .hero-content-wrapper {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.hero-image-container {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-image-container {
        max-width: 100%;
    }
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.15);
}

/* Keep "How it works" screenshots crisp by avoiding oversized rendering. */
.feature-image-how {
    max-width: 180px;
    width: 100%;
    height: auto;
    object-fit: contain;
    image-rendering: auto;
}

@media (max-width: 767px) {
    .hero-image-container {
        order: 2;
    }

    .hero-text {
        order: 1;
    }

    .hero-benefits {
        order: 3;
    }
}

/* Stats section */
.stats-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 12px;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-container {
        gap: 2rem;
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }
}

/* Hero pillars */
.hero-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 900px;
    margin: 2rem auto 0;
}

@media (min-width: 640px) {
    .hero-pillars {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.hero-pillar {
    text-align: center;
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    transition: box-shadow 0.2s ease;
}

.hero-pillar:hover {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.hero-pillar-icon {
    margin-bottom: 0.5rem;
    line-height: 1;
}

.icon-svg {
    width: 28px;
    height: 28px;
    display: inline-block;
    fill: var(--brand-primary);
    color: var(--brand-primary);
}

.step-badge {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: var(--bg-accent);
    color: var(--brand-primary);
    border-radius: 50%;
    font-weight: 600;
    font-size: 1.125rem;
}

.hero-pillar-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.hero-pillar-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 640px) {
    .grid-2x2 {
        grid-template-columns: 1fr;
    }
}

/* Social proof (landing) */
.section-social-proof {
    position: relative;
    padding-top: 4rem;
    padding-bottom: 4rem;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 185, 129, 0.12), transparent 50%),
        linear-gradient(180deg, var(--bg-accent) 0%, var(--bg-primary) 35%, var(--bg-secondary) 100%);
    overflow: hidden;
}

.section-social-proof::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(16, 185, 129, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 65%);
    pointer-events: none;
}

.section-social-proof .container {
    position: relative;
    z-index: 1;
}

.social-proof-header {
    margin-bottom: 2.75rem;
}

.social-proof-section-title {
    font-size: clamp(1.625rem, 4vw, 2.125rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.social-proof-lead {
    max-width: 32rem;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.social-proof-grid {
    align-items: stretch;
}

.social-proof-grid .card.social-proof-card {
    margin-bottom: 0;
    padding: 0;
}

.social-proof-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
    padding: 0;
    margin-bottom: 0;
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 12px 40px -12px rgba(16, 185, 129, 0.18);
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.social-proof-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.28);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 20px 48px -14px rgba(16, 185, 129, 0.22);
}

.social-proof-card::before {
    content: "";
    display: block;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-dark));
    flex-shrink: 0;
}

.social-proof-card-head {
    padding: 1.5rem 1.5rem 0;
}

.social-proof-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.65rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    background: var(--brand-primary-light);
    color: var(--brand-dark);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.social-proof-card-title {
    font-size: 1.1875rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.social-proof-stats-wrap {
    padding: 1.25rem 1.5rem 0;
}

.social-proof-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.125rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 12px;
}

.social-proof-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 4.75rem;
    flex: 1 1 auto;
}

.social-proof-stat-number {
    font-size: 1.625rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--brand-primary);
}

.social-proof-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.social-proof-quote {
    margin: 0;
    margin-top: auto;
    padding: 1.35rem 1.5rem 1.6rem;
    border: none;
    background: linear-gradient(180deg, rgba(249, 250, 251, 0.85) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.social-proof-quote p {
    margin: 0;
    padding: 0.75rem 0 0.75rem 1rem;
    border-left: 3px solid var(--brand-primary);
    border-radius: 0 2px 2px 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-secondary);
    font-style: italic;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@media (max-width: 640px) {
    .section-social-proof {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .social-proof-header {
        margin-bottom: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .slide-in-left,
    .slide-in-right,
    .scale-in,
    .hero-fade-in,
    .hero-image-animate {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .social-proof-card:hover {
        transform: none;
    }
}

/* Save event (lead capture) */
.hero-save-line {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.btn-link-save {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.btn-link-save:hover {
    color: var(--brand-dark, #065f46);
}

.save-event-band {
    background: var(--bg-secondary, #f9fafb);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.save-event-title {
    color: var(--text-primary);
}

.cta-final-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn-outline-light-cta {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.85) !important;
    font-weight: 600;
}

.btn-outline-light-cta:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Modal */
.modal-overlay[hidden] {
    display: none !important;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(4px);
}

.modal-panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-primary, #fff);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-title {
    font-size: 1.35rem;
    margin: 0 0 0.5rem;
    padding-right: 2rem;
}

.modal-lead {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.modal-field {
    margin-bottom: 1rem;
}

.modal-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.form-required {
    color: #dc2626;
}

.modal-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
}

.modal-input:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 1px;
}

.modal-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.modal-error {
    font-size: 0.875rem;
    color: #b91c1c;
    margin: 0 0 0.75rem;
}

.modal-success {
    font-size: 0.9375rem;
    color: var(--brand-dark);
    margin: 0 0 0.75rem;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

/* FAQ accordion */
.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.2rem 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.faq-item > summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.9rem 0;
}

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

.faq-item > summary::after {
    content: "+";
    float: right;
    color: var(--brand-primary);
    font-size: 1.1rem;
    line-height: 1;
}

.faq-item[open] > summary::after {
    content: "−";
}

.faq-item p {
    margin: 0 0 0.9rem 0;
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: 0.95rem;
}
