.flex-container {
    display: flex;
    gap: 15px; /* Adds space between the two plain divs */
}

a {
    text-decoration: none;
}

/* The regular text file (handles everything from Light to Extra Bold) */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: optional;
    src: url("/fonts/InterVariable.woff2") format("woff2");
}

/* The italic file (handles all italic weights) */
@font-face {
    font-family: "Inter";
    font-style: italic;
    font-weight: 100 900;
    font-display: optional;
    src: url("/fonts/InterVariable-Italic.woff2") format("woff2");
}

/* --- Global Reset & Variables --- */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /* Replace the old font-family with this web-safe system stack */
    font-family: "Inter", Helvetica, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Components --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.badge {
    display: inline-block;
    background-color: #eef2ff;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Navigation Bar --- */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-main);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    margin: 0 16px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
#faq,
.hero {
    padding: 80px 0;
    background: radial-gradient(circle at 90% 10%, #f3e8ff 0%, #ffffff 60%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-actions .btn {
    margin-right: 12px;
    margin-bottom: 12px;
}

.hero-mockup {
    display: flex;
    justify-content: center;
}

/* Mobile app size frame 
.device-frame {
    width: 280px;
    height: 560px;
    border: 12px solid #1f2937;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
*/

/* Desktop app sized frame */
.device-frame {
    width: 100%;
    max-width: 580px; /* Widescreen look, shrinks on small screens */
    box-sizing: border-box;
    border: 8px solid #1f2937; /* Laptop display bezel */
    border-bottom-width: 10px; /* Thicker bottom bezel for the logo area */
    border-radius: 6px; /* Subtle laptop display corners */
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.device-screen {
    display: block;
    /* aspect-ratio: 1104 / 652; /* your image's width / height */
    width: 100%;
    height: 100%;
}

#main-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Features Section --- */
.features {
    padding: 60px 0;
    background-color: var(--bg-light);
}

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

.feature-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
}

/* --- Stats Section --- */
.stats {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    gap: 24px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.85;
}

/* --- Testimonials Section --- */
.testimonials {
    padding: 100px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 32px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 16px;
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background-color: var(--bg-white);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        height: auto;
        padding: 16px;
        gap: 12px;
    }
    .nav-menu {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-menu a {
        margin: 0 8px;
    }

    /* Mobile app size
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    */

    /* desktop app sized */
    .hero-container {
        grid-template-columns: 1fr; /* Stack mockup under the text */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
    }
    .hero-actions .btn {
        margin-right: 0;
    }
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-links a {
        margin: 0 10px;
    }
}

/* --- Feature comparison: full table on wide screens, two-tool view on narrow --- */
#feature-comparison {
    padding: 80px 0;
    background: radial-gradient(circle at 10% 90%, #f3e8ff 0%, #ffffff 60%);
}

.feature-comparison-compact {
    display: none;
}

.feature-comparison-grid {
    overflow-x: auto;
    overflow-y: hidden;
    background-color: var(--bg-white);
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px -12px rgba(79, 70, 229, 0.2);
}

#feature-comparison table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

#feature-comparison th,
#feature-comparison td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-right: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

#feature-comparison tr > :first-child {
    border-left: 1px solid var(--primary-color);
}

#feature-comparison thead th {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-weight: 600;
    border-bottom: none;
}

#feature-comparison tbody tr:nth-child(even) {
    background-color: #f5f3ff;
}

#feature-comparison tbody tr:hover {
    background-color: #ede9fe;
}

#feature-comparison thead th:first-child {
    border-top-left-radius: 12px;
}

#feature-comparison thead th:last-child {
    border-top-right-radius: 12px;
}

#feature-comparison tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

#feature-comparison tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

#feature-comparison tbody td:first-child {
    font-weight: 600;
}

.feature-comparison-compact label {
    font-weight: 600;
}

.feature-comparison-compact select {
    /* margin: 0 0 16px 8px; */
    padding: 8px 12px;
    font: inherit;
    color: var(--text-main);
    background-color: var(--bg-white);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
}

.feature-comparison-compact select:focus {
    outline: 2px solid #c7d2fe;
    outline-offset: 2px;
}

.feature-comparison-compact table {
    table-layout: fixed;
    overflow-wrap: anywhere;
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px -12px rgba(79, 70, 229, 0.2);
}

/* MxDiff column stands out in the compact view */
.better,
.feature-comparison-compact tbody td:nth-child(2) {
    /* color: var(--primary-hover); */
    color: rgb(13, 109, 3);
    background-color: rgb(170, 240, 162);
    font-weight: 600;
}

.worse {
    color: var(--primary-hover);
    /* color: rgb(255, 0, 0); */
    background-color: rgb(233 218 218);
}

@media (max-width: 768px) {
    .feature-comparison-grid {
        display: none;
    }
    .feature-comparison-compact {
        display: block;
    }
    #feature-comparison th,
    #feature-comparison td {
        padding: 10px;
    }
}

/********************************************/
/* Demo video related */
/********************************************/
#demo-video {
    margin-bottom: 50px;
}

#demo-video .section-header {
    text-align: center;
    margin-bottom: 10px;
}

.video-facade {
    position: relative;
    width: 100%;
    max-width: 800px; /* Adjust as needed */
    aspect-ratio: 16 / 9;
    background-color: #000;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facade-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.video-facade:hover .facade-img {
    opacity: 0.8; /* Subtle visual feedback on hover */
}

/* A clean, pure CSS play button resembling YouTube's icon */
.facade-play-btn {
    position: relative;
    width: 68px;
    height: 48px;
    background-color: rgba(33, 33, 33, 0.8);
    border-radius: 14% / 12%;
    transition: background-color 0.2s ease;
    z-index: 2;
}

/* --- Support page --- */
.support-hero-content {
    max-width: 780px;
}

.support-hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 700;
}

.support-hero-content > p {
    max-width: 660px;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 32px;
}

.support-faq {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.support-faq .section-header {
    margin-bottom: 40px;
}

.support-faq-list {
    display: grid;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.support-faq-item {
    min-width: 0;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.04);
}

.support-faq-item > summary {
    position: relative;
    padding: 24px 56px 24px 28px;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}

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

.support-faq-item > summary::after {
    position: absolute;
    top: 50%;
    right: 28px;
    color: var(--primary-color);
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
    transform: translateY(-50%);
}

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

.support-faq-item > summary:focus-visible,
.support-faq-more > summary:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -4px;
    border-radius: 12px;
}

.support-faq-answer {
    min-width: 0;
    padding: 0 28px 28px;
    color: var(--text-muted);
}

.support-faq-answer > * + * {
    margin-top: 16px;
}

.support-faq-answer strong {
    color: var(--text-main);
}

.support-faq-answer a {
    color: var(--primary-color);
    font-weight: 500;
}

.support-faq-answer pre {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    padding: 16px;
    color: var(--text-main);
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.support-page code {
    background-color: rgb(240, 240, 240);
}

.support-faq-answer code {
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92em;
}

.support-faq-answer pre code {
    overflow-wrap: normal;
}

.support-faq-answer blockquote {
    padding: 16px 20px;
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.support-faq-more {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.support-faq-more > summary {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
}

.support-faq-more[open] > summary {
    margin-bottom: 16px;
}

.support-faq-more .support-faq-answer {
    padding: 0;
}

.support-contact {
    padding: 64px 0;
}

.support-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px;
    background: radial-gradient(circle at 90% 10%, #f3e8ff 0%, #ffffff 70%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.support-contact-card h2 {
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.support-contact-card p {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .support-hero-content h1 {
        font-size: 2.5rem;
    }

    .support-contact-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px;
    }
}

.video-facade:hover .facade-play-btn {
    background-color: #ff0000; /* Turns YouTube Red on hover */
}

.facade-play-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 11px 0 11px 20px;
    border-color: transparent transparent transparent #fff;
}
/********************************************/
/* End demo video related css */
/********************************************/

.privacy-hero {
    padding: 72px 0;
}

.privacy-hero-content {
    max-width: 900px;
}

.privacy-hero-content h1 {
    margin-bottom: 0;
    font-size: 3.5rem;
    line-height: 1.15;
}

.privacy-content {
    padding: 64px 0 80px;
    background-color: var(--bg-light);
}

.privacy-sections {
    display: grid;
    gap: 20px;
    max-width: 960px;
}

.privacy-section {
    padding: 32px 36px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.04);
    scroll-margin-top: 24px;
}

.privacy-section h2 {
    margin-bottom: 16px;
    font-size: 1.35rem;
    line-height: 1.4;
}

.privacy-section p,
.privacy-section ul {
    color: var(--text-muted);
}

.privacy-section p + p,
.privacy-section p + ul,
.privacy-section ul + p {
    margin-top: 16px;
}

.privacy-section ul {
    padding-left: 24px;
}

.privacy-section a {
    color: var(--primary-color);
}

/* --- Help page --- */
body.help-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    background-color: var(--bg-light);
}

body.help-page .highlight {
    background-color: yellow;
}

body.help-page ol ul {
    list-style-type: none;
}

body.help-page > h2 {
    margin: 0 0 20px;
    font-size: 2rem;
    line-height: 1.3;
}

body.help-page > h2:first-of-type {
    margin-bottom: 24px;
    padding: 36px;
    background: radial-gradient(circle at 90% 10%, #f3e8ff 0%, #ffffff 70%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 2.5rem;
    line-height: 1.15;
}

body.help-page > p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

body.help-page a {
    color: var(--primary-color);
    font-weight: 500;
}

body.help-page hr {
    height: 0;
    margin: 40px 0;
    border: 0;
    border-top: 1px solid var(--border-color);
}

body.help-page > ul {
    padding: 28px 32px 28px 52px;
    color: var(--text-muted);
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.04);
}

body.help-page li + li {
    margin-top: 12px;
}

body.help-page li ul {
    padding-left: 24px;
}

body.help-page li ul li + li {
    margin-top: 4px;
}

body.help-page pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 16px;
    color: var(--text-main);
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
}

body.help-page code {
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92em;
    background-color: rgb(240, 240, 240);
}

body.help-page pre code {
    overflow-wrap: normal;
    background-color: transparent;
}

body.help-page blockquote {
    padding: 24px 28px;
    color: var(--text-muted);
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.04);
}

body.help-page blockquote p + p {
    margin-top: 16px;
}

body.help-page blockquote strong {
    color: var(--text-main);
}

body.help-page blockquote b[style] {
    padding: 2px 4px;
    color: var(--primary-hover);
    background-color: #eef2ff !important;
    border-radius: 4px;
}

body.help-page > h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
    line-height: 1.4;
}

body.help-page > details {
    margin-top: 16px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.04);
}

body.help-page > details > summary {
    position: relative;
    padding: 24px 56px 24px 28px;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}

body.help-page > details > summary::-webkit-details-marker {
    display: none;
}

body.help-page > details > summary::after {
    position: absolute;
    top: 50%;
    right: 28px;
    color: var(--primary-color);
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
    transform: translateY(-50%);
}

body.help-page > details[open] > summary::after {
    content: "−";
}

body.help-page > details > summary:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -4px;
    border-radius: 12px;
}

body.help-page > details > :not(summary) {
    margin-right: 28px;
    margin-left: 28px;
    color: var(--text-muted);
}

body.help-page > details > :not(summary) + :not(summary) {
    margin-top: 16px;
}

body.help-page > details > :last-child {
    margin-bottom: 28px;
}

body.help-page > details > h2 {
    color: var(--text-main);
    font-size: 1.35rem;
    line-height: 1.4;
}

body.help-page ol {
    padding-left: 24px;
}

body.help-page > details > :not(summary) strong {
    color: var(--text-main);
}

body.help-page p:has(+ ol) {
    margin-bottom: 8px;
}

.help-image-overlay {
    display: none;
}

.help-image-overlay:target {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: rgba(17, 24, 39, 0.8);
}

.help-image-overlay-backdrop {
    position: absolute;
    inset: 0;
}

.help-image-preview {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    padding: 12px;
    background-color: var(--bg-white);
    border-radius: 12px;
}

.help-image-preview img {
    display: block;
    max-width: calc(90vw - 24px);
    max-height: calc(90vh - 24px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.help-image-preview .help-image-close {
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: 1;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--text-main);
    background-color: var(--bg-white);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 1.5rem;
    line-height: 1;
    text-decoration: none;
}

@media (max-width: 768px) {
    body.help-page {
        padding: 32px 20px 56px;
    }

    body.help-page > h2:first-of-type {
        padding: 28px;
        font-size: 2.5rem;
    }

    body.help-page > ul {
        padding: 24px 24px 24px 44px;
    }

    body.help-page blockquote {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .privacy-hero {
        padding: 56px 0;
    }

    .privacy-hero-content h1 {
        font-size: 2.5rem;
    }

    .privacy-content {
        padding: 40px 0 56px;
    }

    .privacy-section {
        padding: 24px;
    }
}

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

#faq h3 ~ p,
#faq h3 ~ blockquote,
#faq h3 ~ div {
    display: none;
}
