/*
Theme Name: Rowform Theme
Theme URI: https://rowform.io
Author: Rowform Team
Description: A premium, dark-mode Typeform alternative theme.
Version: 2.0
License: GNU General Public License v2 or later
*/

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- RESET & VARIABLES --- */
:root {
    color-scheme: light only;
    --bg-dark: #ffffff;
    /* Clean White */
    --bg-card: rgba(241, 245, 249, 0.8);
    /* Light translucent for glassmorphism */
    --primary: #6366f1;
    /* Vibrant Indigo */
    --primary-hover: #4f46e5;
    --accent: #06b6d4;
    /* Electric Cyan */

    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-highlight: rgba(0, 0, 0, 0.02);

    --text-main: #1e293b;
    --text-muted: #64748b;

    --radius: 20px;
    /* More rounded */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    background-color: #ffffff !important;
}

body {
    background-color: #ffffff !important;
    background-image: none;
    color: var(--text-main);
    line-height: 1.6;
}

/* Force light mode - override browser auto-dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light only;
        --bg-dark: #ffffff;
        --bg-card: rgba(241, 245, 249, 0.8);
        --text-main: #1e293b;
        --text-muted: #64748b;
    }
    html, body {
        background-color: #ffffff !important;
        color: #1e293b !important;
    }
    header {
        background: rgba(255, 255, 255, 0.85) !important;
    }
    .nav-links {
        background: transparent !important;
    }
    .feature-card, .price-card {
        background: rgba(241, 245, 249, 0.8) !important;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- UTILITIES --- */
.container {
    max-width: 1400px;
    /* Slightly tighter for modern feel */
    margin: 0 auto;
    padding: 0 40px;
}

.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    background: var(--primary-hover);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-white {
    background: white;
    color: var(--text-main);
    font-weight: 700;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #1e293b;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.25rem;
    font-weight: 300;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #000000;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-cta {
    display: flex;
    gap: 15px;
    align-items: center;
}


/* --- HERO SECTION --- */
.hero {
    padding: 180px 0 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: rgba(99, 102, 241, 0.08);
    z-index: -1;
    filter: blur(60px);
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    color: #1e293b;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 80px;
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* --- FEATURES GRID --- */
.features {
    padding: 70px 0;
    position: relative;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 50px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(99, 102, 241, 0.3);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 25px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- HOW IT WORKS --- */
.how-it-works {
    padding: 120px 0;
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 30px;
    margin-top: 80px;
}

.steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--primary);
    z-index: 0;
    opacity: 0.3;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.25rem;
    box-shadow: 0 0 0 10px #ffffff;
    /* Fake spacing around line */
}

.step-item h4 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--text-main);
    position: relative;
    z-index: 2;
    background: #ffffff;
    display: inline-block;
    padding: 0 10px;
}

.step-item p {
    font-size: 1rem;
    color: var(--text-muted);
    padding: 0 20px;
    position: relative;
    z-index: 2;
    background: #ffffff;
    margin: 0 auto;
    max-width: fit-content;
}

/* --- PRICING --- */
.pricing {
    padding: 70px 0;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    align-items: center;
}

.price-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 50px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.price-card:hover {
    border-color: var(--glass-border);
    transform: translateY(-5px);
}

.price-card.popular {
    border: 1px solid var(--primary);
    background: rgba(241, 245, 249, 0.95);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
    transform: scale(1.05);
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.plan-name {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 500;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-main);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features-list {
    margin: 40px 0;
    text-align: left;
}

.features-list li {
    margin-bottom: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.features-list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    font-size: 1.1rem;
}

/* --- FOOTER --- */
footer {
    padding: 100px 0 50px 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(241, 245, 249, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col h5 {
    color: var(--text-main);
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .hero {
        padding: 150px 0 50px 0;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    /* nav styles handled in header.php critical css */

    .nav-cta {
        gap: 10px;
    }

    .nav-cta .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero {
        padding: 130px 0 40px 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    /* Stack hero buttons on mobile */
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

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

    .hero-cta .btn:last-child {
        margin-bottom: 0 !important;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
        margin-top: 50px;
        padding-top: 30px;
    }

    .container {
        padding: 0 25px;
    }

    .feature-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .feature-card,
    .price-card {
        padding: 35px 25px;
    }

    .steps {
        flex-direction: column;
        gap: 50px;
    }

    .steps::before {
        width: 2px;
        height: calc(100% - 60px);
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--primary);
        right: auto;
        opacity: 0.3;
    }

    .step-number {
        position: relative;
        z-index: 2;
    }

    .step-item h4,
    .step-item p {
        background: #ffffff;
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 40px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* --- STANDARD PAGE STYLES --- */
.page-content p {
    margin-bottom: 24px;
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 100%;
}

.page-content h2,
.page-content h3 {
    color: var(--text-main);
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
}