/* ---------------------------------------------------- */
/* !!! IMPORTANT: @font-face for Bukhari Script !!!     */
/* You MUST have the Bukhari Script font files          */
/* (e.g., bukhari-script.ttf or .woff2) in a 'fonts'    */
/* folder (or adjust path) for this to work.          */
/* ---------------------------------------------------- */
@font-face {
    font-family: 'Bukhari Script'; /* Name you'll use in CSS */
    /* src: url('fonts/BukhariScript.ttf') format('truetype'); */
    /* It's better to have woff2 for modern browsers first */
    src: url('https://supertype.in/bukhari_script.ttf') format('truetype'); /* Adjust filename if needed */
    font-weight: normal; /* Or the specific weight of your font file */
    font-style: normal;  /* Or italic if it's an italic variant */
}


body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #111827;
    color: #d1d5db;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.site-logo {
    display: flex; /* Align icon and text */
    align-items: center; /* Vertically center icon and text */
    gap: 0.3em; /* Slightly increased gap for better visual separation like in image */
    font-family: 'Bukhari Script', cursive; /* Use Bukhari, fallback to generic cursive */
    font-size: 4.5rem;      /* Bukhari might need a larger size for impact */
    color: #fcba03;         /* White text */
    border: 3px solid #f0f0f0;
    padding: 0.2em 0.5em;  /* Adjust padding for Bukhari's ascenders/descenders */
    border-radius: 10px;
    margin-bottom: 40px;
    line-height: 1;        /* Script fonts can be tricky with line-height */
}

.site-logo .header-icon {
    height: 0.75em; /* Adjusted: Icon height to be ~75% of the text font-size to match image */
    width: auto;   /* Maintain aspect ratio */
}

.hero-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.2) 0%, rgba(17, 24, 39, 0.7) 100%), #111827;
    padding: 40px; /* This padding defines the content alignment edge */
    border-radius: 16px;
    position: relative;
    box-sizing: border-box; /* ensure padding is included if width is 100% */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.15) 0%, rgba(74, 222, 128, 0) 70%);
    filter: blur(50px);
    z-index: -1;
    opacity: 0.7;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.1) 0%, rgba(74, 222, 128, 0) 70%);
    filter: blur(50px);
    z-index: -1;
    opacity: 0.5;
}

.content-left {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #f9fafb;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.2;
}

h1 .highlight {
    color: #4ade80;
}

.sub-heading {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #9ca3af;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
}

.btn {
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background-color: #4ade80;
    color: #111827;
}

.btn-primary:hover {
    background-color: #36d378;
    transform: translateY(-2px);
}

.supported-browsers {
    margin-top: 25px;
}

.supported-browsers-title {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 10px;
    font-weight: 500;
}

.browser-logos {
    display: flex;
    align-items: center;
    gap: 15px;
}

.browser-logos img {
    height: 36px; /* Adjusted: Reduced browser logo size */
    width: auto;
}

.text-demo-container {
    flex: 1.2;
    min-width: 320px;
    background-color: #1f2937;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.text-windows-wrapper {
    display: flex;
    gap: 15px;
    flex-grow: 1;
}

.text-window {
    flex: 1;
    background-color: #111827;
    border-radius: 8px;
    padding: 15px;
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-y: auto;
    max-height: 300px;
}

.text-window h4 {
    font-family: 'Inter', sans-serif;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 500;
}

.text-window pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Courier New', Courier, monospace;
    color: #c5c8c6;
}

/* --- PRICING PAGE STYLES --- */
.page-content-wrapper-pricing {
    max-width: 900px;
    width: 90%;
    margin: 0 auto 40px auto;
    background: #1f2937;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.pricing-main-title {
    color: #f9fafb;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 30px;
}

.plans-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: stretch; /* Makes cards equal height */
}

.plan-card {
    border: 1px solid #374151;
    padding: 25px;
    border-radius: 8px;
    background-color: rgba(17, 24, 39, 0.6);
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

.plan-card h2 {
    color: #f9fafb;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.plan-card p {
    color: #adb5bd;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.plan-card .plan-details {
    flex-grow: 1; /* Makes this area expand, ensuring cards look uniform */
}

.shared-download-container {
    text-align: center;
    margin-top: 40px;
}


/* Footer Styles */
.footer-info {
    /* text-align: center; Removed for left alignment */
    margin-top: 50px;
    margin-bottom: 30px;
    padding: 20px 40px; /* Top/bottom padding, Left/right padding to match hero-section content alignment */
    font-family: 'Inter', sans-serif;
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.6;
    width: 100%;
    max-width: 1200px; /* Match hero-section for consistent content width */
    box-sizing: border-box; /* Important for width and padding calculation */
}

.footer-info p {
    margin-top: 0;
    margin-bottom: 5px;
}

.footer-section-title {
    font-weight: 700;
    color: #d1d5db;
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.footer-info > .footer-section-title:first-child {
    margin-top: 0; /* No top margin for the very first title in the footer */
}

.footer-info a {
    color: #4ade80;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* Legal Links Container */
.legal-links-container {
    text-align: center; /* Horizontally center the links */
    margin-top: 20px;   /* Space after footer-info */
    margin-bottom: 40px;/* Space at the very bottom of the page */
    width: 100%;
    max-width: 1200px; /* Align with other main content blocks */
    box-sizing: border-box;
}

.legal-links-container a {
    color: #9ca3af;
    text-decoration: underline;
    margin: 0 15px; /* Spacing between links */
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
}

.legal-links-container a:hover {
    color: #4ade80; /* Highlight on hover */
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.85); /* Dark overlay, matches page bg with opacity */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px; /* Provides spacing from screen edges, esp. on mobile */
    box-sizing: border-box;
}

.modal-content {
    background-color: #1f2937; /* Dark background for modal content */
    color: #d1d5db; /* Text color for modal content (if any outside iframe) */
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    width: 90%;
    max-width: 800px; /* Max width of modal */
    height: 85%;      /* Percentage of viewport height */
    max-height: 700px; /* Max height of modal */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Crucial for keeping rounded corners with children */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #374151; /* Separator line */
    background-color: #2c3a4b; /* Slightly distinct header background */
    flex-shrink: 0; /* Prevent header from shrinking */
}

.modal-title-text {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f9fafb;
    font-family: 'Inter', sans-serif;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.8rem; /* Makes the '×' larger */
    cursor: pointer;
    line-height: 1; /* Ensure proper vertical alignment */
    padding: 5px; /* Easier to click */
}
.modal-close-btn:hover {
    color: #f9fafb;
}

#modalFrame {
    flex-grow: 1; /* Allows iframe to fill remaining vertical space */
    border: none; /* Remove default iframe border */
    /*
      Set a light background for the iframe itself.
      This helps if the loaded page (e.g., privacy.html) has a transparent background
      and uses default black text, ensuring readability.
      If privacy.html/terms.html define their own specific background (e.g., a dark one
      to match the site theme, as shown in the example image), that will override this.
    */
    background-color: #FFFFFF;
}


/* Responsive Adjustments */
@media (max-width: 900px) {
    .site-logo {
        font-size: 3.8rem;
        padding: 0.15em 0.4em;
        border-width: 2px;
        margin-bottom: 30px;
    }
    .hero-section {
        flex-direction: column;
        padding: 30px; /* Adjust padding for smaller screens */
    }
    .content-left, .text-demo-container {
        max-width: 100%;
        width: 100%;
    }
    h1 {
        font-size: 2.8rem;
    }
    .sub-heading {
        font-size: 1rem;
    }
    .footer-info {
        margin-top: 40px;
        padding: 20px 30px; /* Adjust padding for footer on smaller screens */
    }
    .modal-content {
        width: 95%;
        height: 90%;
    }
}

@media (max-width: 600px) {
    .site-logo {
        font-size: 3rem;
        padding: 0.1em 0.3em;
    }
    .hero-section {
        padding: 20px; /* Further adjust padding */
    }
    .text-windows-wrapper {
        flex-direction: column;
    }
    .text-window {
        max-height: 200px;
    }
    h1 {
        font-size: 2.2rem;
    }
    .supported-browsers {
        text-align: center;
    }
    .browser-logos {
        justify-content: center;
    }
    .footer-info {
        font-size: 0.85rem;
        padding: 20px; /* Adjust padding for footer on smallest screens */
    }
    .footer-section-title {
        font-size: 0.95rem;
    }
    .legal-links-container a {
        font-size: 0.85rem;
        margin: 0 10px;
    }
    .modal-header {
        padding: 10px 15px;
    }
    .modal-title-text {
        font-size: 1rem;
    }
    .modal-content {
        height: 95%; /* Allow more height on small screens */
    }
}