@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary: #4F46E5;       /* Royal Indigo */
    --primary-dark: #4338ca;
    --accent: #0EA5E9;        /* Sky Blue */
    --success: #10B981;       /* Teal/Green */
    
    /* Neutrals */
    --bg-body: #FFFFFF;
    --bg-light: #F8FAFC;      /* Slate 50 */
    --bg-dark: #0F172A;       /* Slate 900 */
    --text-main: #1E293B;     /* Slate 800 */
    --text-muted: #64748B;    /* Slate 500 */
    --border: #E2E8F0;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg-body); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; transition: 0.3s; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.2s; gap: 8px; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 6px rgba(79, 70, 229, 0.25); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 12px rgba(79, 70, 229, 0.3); }
.btn-outline { border: 1px solid var(--border); background: white; color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* --- HEADER --- */
header { position: fixed; width: 100%; top: 0; z-index: 1000; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
nav { height: 80px; display: flex; justify-content: space-between; align-items: center; }

/* --- TEXT LOGO STYLES (Professional Typography) --- */
.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;     /* Large enough to command authority */
    font-weight: 800;       /* Extra Bold */
    color: #0F172A;         /* Dark Slate (Professional Black) */
    text-decoration: none;
    letter-spacing: -1px;   /* Tighter letters = Premium Tech Look */
    display: flex;
    align-items: baseline;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8; /* Simple fade on hover */
}

/* The "Scriptly" part in Brand Blue */
.logo-highlight {
    color: var(--primary); /* Uses your site's Royal Blue */
}

/* The Blue Dot (The "Period") */
/* This is a common design trope in tech (like Monday.com or Deloitte) */
.logo-dot {
    color: var(--accent); /* Sky Blue/Teal */
    font-size: 2rem;
    line-height: 0;
    margin-left: 2px;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-weight: 500; color: var(--text-muted); font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- HERO SECTION --- */
.hero { padding: 160px 0 100px; text-align: center; background: radial-gradient(circle at top, #EEF2FF 0%, white 60%); }
.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 24px; font-weight: 800; color: var(--bg-dark); letter-spacing: -0.02em; }
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }
.hero-img-wrapper { margin-top: 60px; border-radius: 12px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); border: 1px solid var(--border); }

/* Cursor Animation */
.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--primary);
    margin-left: 5px;
    vertical-align: middle;
    animation: blink 1s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- VIDEO SECTION --- */
.video-section { position: relative; padding: 100px 0; color: white; background: var(--bg-dark); overflow: hidden; }
.video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.video-content { position: relative; z-index: 2; text-align: center; }
.play-button { 
    width: 80px; height: 80px; background: white; color: var(--primary); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 1.5rem; margin: 40px auto 0; cursor: pointer; 
    transition: transform 0.3s; box-shadow: 0 0 0 10px rgba(255,255,255,0.1);
}
.play-button:hover { transform: scale(1.1); box-shadow: 0 0 0 20px rgba(255,255,255,0.1); }

/* --- TEMPLATE GRID --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.template-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}
.template-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}
.icon-circle {
    width: 64px; height: 64px;
    background: #E0F2FE; 
    color: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}
.card-green .icon-circle { background: #DCFCE7; color: var(--success); }
.card-purple .icon-circle { background: #EEF2FF; color: var(--primary); }

.template-card h3 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 700; color: var(--bg-dark); }
.template-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 25px; line-height: 1.6; }

.start-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-weight: 700; color: var(--accent); font-size: 0.95rem;
}
.start-link i { font-size: 0.8rem; transition: transform 0.2s; }
.template-card:hover .start-link i { transform: translateX(5px); }
.card-green .start-link { color: var(--success); }
.card-purple .start-link { color: var(--primary); }

/* --- TESTIMONIALS --- */
.testimonials { background: var(--bg-dark); color: white; padding: 100px 0; }
.testi-card { background: rgba(255,255,255,0.05); padding: 30px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); }
.stars { color: #F59E0B; margin-bottom: 15px; font-size: 0.9rem; }

/* --- FOOTER --- */
footer { background: #111827; color: #9CA3AF; padding: 80px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { color: white; margin-bottom: 20px; }
.footer-col a { display: block; margin-bottom: 12px; transition: 0.2s; }
.footer-col a:hover { color: white; }

/* Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .nav-links, .auth-btns { display: none; }
    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .mobile-toggle { display: block; }
    /* Mobile Menu Styles */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px; left: 0; width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
}






/* --- FOOTER CONTACT FIX --- */
.contact-item {
    display: flex;
    align-items: flex-start; /* Aligns text to top if it wraps */
    gap: 12px; /* Space between icon and text */
    margin-bottom: 15px;
    color: #9CA3AF;
    font-size: 0.9rem;
}
.contact-item i {
    color: white;
    margin-top: 4px; /* Slight adjustment to align with text line-height */
}







/* --- UPDATED PAGE HEADER (Tech Background) --- */
.page-header {
    padding: 160px 0 100px;
    text-align: center;
    color: white;
    position: relative;
    background: #0F172A; /* Fallback color */
    /* Tech Background Image */
    background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
}

/* Dark overlay to make text readable */
.page-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85); /* Dark Blue overlay */
}

.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: white; margin-bottom: 10px; font-size: 3.5rem; }
.breadcrumb { color: rgba(255,255,255,0.7); }
.breadcrumb span { color: var(--success); } /* Teal accent */

/* --- TOOLTIP POPUPS (FIXED FOR SCROLLING) --- */
.tooltip-wrap {
    position: relative;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--success); /* Teal underline */
    text-underline-offset: 4px;
    display: inline-block; /* Helps with hover stability */
}

.tooltip-box {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%; /* Sit right on top of the text */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Start slightly lower */
    width: 300px;
    background: white;
    color: var(--text-main);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    z-index: 100;
    transition: all 0.2s ease-in-out;
    text-align: left;
    font-size: 0.9rem;
    
    /* FIX: Allow user to scroll and click inside */
    pointer-events: auto; 
    
    /* Visual spacing from the text */
    margin-bottom: 15px; 
}

/* THE INVISIBLE BRIDGE (Crucial for interaction) */
/* This fills the gap so the popup doesn't close when moving mouse */
.tooltip-box::before {
    content: "";
    position: absolute;
    top: 100%; /* Starts at bottom of box */
    left: 0;
    width: 100%;
    height: 20px; /* Extends down to touch the text */
    background: transparent;
}

/* The visual arrow */
.tooltip-box::after {
    content: "";
    position: absolute;
    top: 100%; left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

/* Show on Hover */
.tooltip-wrap:hover .tooltip-box {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tooltip-title { 
    font-weight: 800; 
    color: var(--bg-dark); 
    margin-bottom: 10px; 
    display: block; 
    font-size: 1rem; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 8px;
}

.tooltip-list { 
    list-style: none; /* Remove default bullets */
    margin: 0; 
    padding: 0; 
}

.tooltip-list li { 
    margin-bottom: 6px; 
    color: var(--text-muted); 
    display: flex; 
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem; 
    width: 100%; 
}
/* Add custom bullet or number if needed, or keep simple */
.tooltip-list li::before {
    content: "•";
    color: var(--success);
    font-weight: bold;
}

/* SCROLL LIST (For Gold Plan) */
.scroll-list { 
    max-height: 250px; /* Maximum height before scrolling */
    overflow-y: auto;  /* Enable vertical scroll */
    padding-right: 10px; /* Space for scrollbar */
}

/* Custom Scrollbar for Chrome/Safari */
.scroll-list::-webkit-scrollbar { width: 6px; }
.scroll-list::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
.scroll-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.scroll-list::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* --- PRICING CARDS --- */
.pricing-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

/* The "Popular" Card Logic */
.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.2);
    transform: scale(1.05); /* Make it pop out */
    z-index: 2;
}
.popular-badge {
    position: absolute;
    top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--success); /* Teal Green */
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

.plan-name { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.plan-price { font-size: 3.5rem; font-weight: 800; color: var(--bg-dark); margin-bottom: 10px; }
.plan-price span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

/* Pricing Features List */
.pricing-features { margin: 30px 0; text-align: left; flex-grow: 1; }
.pricing-features li { margin-bottom: 15px; color: var(--text-main); display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.pricing-features li i { font-size: 1.1rem; }
.pricing-features li i.fa-check { color: var(--success); }
.pricing-features li i.fa-xmark { color: #EF4444; opacity: 0.6; }

/* Customized Section */
.custom-plan {
    margin-top: 60px;
    background: #F0FDFA; /* Light Teal bg */
    border: 1px solid #CCFBF1;
    border-radius: 16px;
    padding: 50px;
    text-align: center;
}







/* --- AUTH PAGES (Login/Register) --- */
.auth-section {
    padding: 80px 0 120px;
    background: var(--bg-light);
    display: flex;
    justify-content: center;
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--bg-dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.auth-footer a { color: var(--primary); font-weight: 600; }

/* The Fake Error Message Box */
.error-message {
    display: none; /* Hidden by default */
    background: #FEF2F2;
    color: #991B1B;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #FCA5A5;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}






/* --- FAQ ACCORDION --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: 0.3s;
}
.faq-question {
    padding: 20px;
    background: #F8FAFC;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--bg-dark);
}
.faq-question:hover { background: #F1F5F9; }
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
    color: var(--text-muted);
    line-height: 1.6;
}
.faq-item.active .faq-answer { padding: 20px; max-height: 300px; border-top: 1px solid var(--border); }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.contact-box {
    background: white;
    padding: 40px;
    text-align: center;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.contact-box i {
    font-size: 2rem;
    color: var(--success); /* Teal Color */
    margin-bottom: 20px;
}
.contact-box h3 { margin-bottom: 10px; font-size: 1.2rem; }
.contact-box p { color: var(--text-muted); }

/* --- LEGAL PAGES (Privacy/Terms) --- */
.legal-content {
    background: white;
    padding: 60px;
    border-radius: 16px;
    border: 1px solid var(--border);
    max-width: 900px;
    margin: 0 auto;
}
.legal-content h2 { margin-top: 30px; margin-bottom: 15px; font-size: 1.5rem; color: var(--bg-dark); }
.legal-content p { margin-bottom: 20px; color: var(--text-muted); }







/* --- BLOG PAGE --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.3s;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.blog-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--bg-dark);
    line-height: 1.4;
}
.blog-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}
.read-more {
    margin-top: auto; /* Pushes link to bottom */
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}