/*
Theme Name: TMC Widgets
Theme URI: https://tmcwidgets.com
Description: A premium, minimalist theme for TMC Widgets.
Author: Antigravity
Version: 1.0.0
Text Domain: tmc-widgets
*/

:root {
    --bg-color: #f9f9f9;
    --bg-cream: #f9f9f9;
    --bg-cream-soft: #f5f7fa;
    --surface-color: #f9f9f9;
    --text-color: #1d1d1f;
    --text-muted: #6e6e73;
    --accent-color: #0071e3;
    --accent-hover: #0077ed;
    --border-color: #e0e0e0;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    --container-width: 1100px;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

#page,
.site-main,
#primary {
    background-color: var(--bg-color);
}

p {
    font-size: 16px;
    margin-bottom: 1.25rem;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Header */
header {
    padding: 1.25rem 0;
    background: var(--bg-color);
    position: relative;
}

#masthead .logo img {
    height: 64px;
    width: auto;
    display: block;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color);
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.05em;
    line-height: 1;
}

@media (max-width: 768px) {
    #masthead .logo img {
        height: 56px;
    }

    .logo img {
        height: 44px;
    }
    .logo-text {
        font-size: 1.25rem;
    }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: none;
    transition: color 0.2s ease;
    opacity: 1;
}

nav a:hover {
    color: var(--text-color);
    opacity: 1;
}

/* Submenu Styles (Desktop) */
nav ul li {
    position: relative;
}

nav ul .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 8px 0;
    margin: 0;
    display: none;
    z-index: 1002;
    flex-direction: column;
    gap: 0; /* Prevents inheriting layout gap from main nav ul */
}



@media (min-width: 769px) {
    /* Nav creates its own stacking context above page content */
    #site-navigation {
        position: relative;
        z-index: 9999;
    }

    nav ul li:hover > .sub-menu {
        display: flex; /* Instant show only on desktop */
    }

    /* Nested (level-3) sub-menu: fly out to the right, not below */
    nav ul .sub-menu .sub-menu {
        top: -9px;
        left: 100%;
    }
}

nav ul .sub-menu li {
    width: 100%;
}

nav ul .sub-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 0.75rem; /* Smaller submenu font */
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    white-space: nowrap;
}

nav ul .sub-menu a:hover {
    background: var(--bg-color);
    color: var(--accent-color);
}

/* Burger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1002;
}

.menu-backdrop {
    display: none;
}

.menu-close {
    display: none;
}

.menu-container-inner {
    display: contents;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 span.accent {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero p {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    max-width: 750px;
    margin: 0 auto;
    color: #4b5563;
    font-weight: 400;
    line-height: 1.6;
}

/* Footer */
footer,
.site-footer {
    padding: 6rem 0 4rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
}

.footer-brand {
    margin-bottom: 2.5rem;
}

.footer-brand .logo img,
.site-footer .logo img {
    height: 56px;
    width: auto;
    display: block;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: #000;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    text-decoration: none;
    color: #4b5563;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--text-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header-inner {
        padding: 1rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        border: none;
        padding: 0;
        margin: 0;
        background: rgba(15, 23, 42, 0.35);
        z-index: 1000;
        cursor: pointer;
    }

    .main-navigation.active .menu-backdrop {
        display: block;
    }

    .main-navigation.active {
        position: relative;
        z-index: 10000;
    }

    .main-navigation .menu-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-color);
        padding: 0;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1002;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 2;
        width: 48px;
        height: 48px;
        border: 0;
        background: transparent;
        color: #09090b;
        font-size: 2.25rem;
        font-weight: 300;
        line-height: 1;
        padding: 0;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }

    .menu-container-inner {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        padding: 4.5rem 2.5rem 2rem;
        overflow-y: auto;
    }

    .main-navigation.active .menu-toggle {
        display: none;
    }

    .main-navigation.active .menu-container {
        right: 0;
    }

    body.admin-bar .main-navigation .menu-container {
        top: 46px;
        height: calc(100dvh - 46px);
        height: calc(100vh - 46px);
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    /* Submenu Styles (Mobile) */
    nav ul .sub-menu {
        position: static;
        display: none; /* Hide by default on mobile */
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0.5rem 0 0 1rem;
        margin: 0;
        min-width: 0;
        background: transparent;
        gap: 0; /* Prevents inheriting layout gap from main nav ul */
    }

    nav ul li.active-submenu > .sub-menu {
        display: block; /* Show when expanded */
    }

    .menu-item-has-children > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .menu-item-has-children > a::after {
        content: '+';
        flex: 0 0 1.5rem;
        font-size: 1.25rem;
        font-weight: 300;
        margin-left: 10px;
        color: var(--text-muted);
        text-align: center;
    }

    .menu-item-has-children.active-submenu > a::after {
        content: '−'; /* Minus character */
    }

    /* Scale down indicators for nested submenus */
    .sub-menu .menu-item-has-children > a::after {
        font-size: 1rem;
    }

    nav ul .sub-menu li {
        margin-bottom: 0.5rem;
    }

    /* Submenu Link Items (2nd level) */
    nav ul .sub-menu a {
        font-size: 0.95rem; /* Smaller submenu font */
        padding: 0.5rem 0;
        color: #6e6e73;
        display: block;
        width: 100%;
    }

    /* Nested Submenu Link Items (3rd level) */
    nav ul .sub-menu .sub-menu a {
        font-size: 0.85rem; /* Even smaller for nested items */
        color: #86868b;
    }

    nav a {
        font-size: 1.2rem; /* Balanced size for mobile main menu items */
        opacity: 1;
        text-transform: none;
        letter-spacing: -0.02em;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ==========================================================================
   Audiobrain Template System
   ========================================================================== */

.ab-page {
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.ab-container { max-width: var(--container-width); margin: 0 auto; padding: 0 25px; }
.ab-article-container { max-width: 760px; margin: 0 auto; padding: 0 25px; }

.ab-label {
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 1.5px; 
    color: var(--accent-color); 
    margin-bottom: 15px; 
    display: block;
}

/* Article Hero */
.ab-article-hero { padding: 80px 0 60px; border-bottom: 1px solid var(--border-color); }
.ab-article-hero h1 { 
    font-size: clamp(2rem, 4.5vw, 2.8rem); 
    line-height: 1.1; 
    letter-spacing: -0.03em; 
    margin: 0 0 20px 0; 
    font-weight: 700; 
}

.ab-article-meta { 
    font-size: 14px; 
    color: var(--text-muted); 
    display: flex; 
    flex-wrap: wrap; 
    gap: 16px; 
    align-items: center; 
    margin-bottom: 32px; 
}
.ab-article-meta a { color: var(--accent-color); text-decoration: none; }
.ab-meta-dot { width: 3px; height: 3px; background: var(--border-color); border-radius: 50%; display: inline-block; }

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

/* Buttons */
.ab-btn-apple {
    background: var(--accent-color); 
    color: #ffffff !important; 
    padding: 14px 32px;
    border-radius: 980px; 
    font-weight: 600; 
    font-size: 17px; 
    text-decoration: none;
    transition: background-color 0.2s ease; 
    display: inline-block;
    line-height: 1.3;
}


.ab-btn-apple-outline {
    background: transparent; 
    color: var(--accent-color) !important; 
    padding: 14px 32px;
    border-radius: 980px; 
    font-weight: 600; 
    font-size: 17px; 
    text-decoration: none;
    border: 2px solid var(--accent-color); 
    transition: all 0.2s ease; 
    display: inline-block;
    line-height: 1.3;
}


/* Article Body */
.ab-article-body { padding: 60px 0; border-bottom: 1px solid var(--border-color); }
.ab-article-body h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 50px 0 20px; }
.ab-article-body h3 { font-size: 1.1rem; font-weight: 600; margin: 30px 0 12px; }
.ab-article-body ul, .ab-article-body ol { padding-left: 22px; margin-bottom: 22px; }
.ab-article-body li { font-size: 16px; line-height: 1.6; margin-bottom: 10px; color: var(--text-color); }
.ab-article-body strong { font-weight: 600; }

.ab-step { 
    border-left: 3px solid var(--accent-color); 
    padding: 20px 25px; 
    margin: 25px 0; 
    background: #f9f9f9; 
    border-radius: 0 12px 12px 0; 
}
.ab-step-label { 
    font-size: 12px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1.2px; 
    color: var(--accent-color); 
    display: block; 
    margin-bottom: 8px; 
}
.ab-step p { margin: 0; font-size: 15px !important; color: var(--text-muted) !important; }

/* Tables */
.ab-table-wrap { overflow-x: auto; margin: 30px 0 40px; border: 1px solid var(--border-color); border-radius: 12px; }
.ab-table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ab-table-wrap th { 
    text-align: left; 
    font-size: 12px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.8px; 
    color: var(--text-muted); 
    padding: 15px 20px; 
    border-bottom: 1px solid var(--border-color); 
    background: #f9f9f9; 
}
.ab-table-wrap td { padding: 18px 20px; border-bottom: 1px solid var(--border-color); vertical-align: top; line-height: 1.6; }
.ab-table-wrap tr:last-child td { border-bottom: none; }

/* Grid Systems */
.ab-usecase-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    background: var(--bg-color); 
    border: 1px solid var(--border-color); 
    margin: 30px 0 40px; 
    border-radius: 12px; 
    overflow: hidden; 
}
.ab-usecase-item { 
    background: var(--bg-color); 
    padding: 32px 28px; 
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-right: -1px;
    margin-bottom: -1px;
}
.ab-usecase-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--text-color); }
.ab-usecase-item p { font-size: 15px !important; color: var(--text-muted) !important; margin: 0 !important; line-height: 1.6 !important; }

/* Sections */
.ab-cta-section { padding: 100px 0; background: var(--bg-color); border-bottom: 1px solid var(--border-color); text-align: center; }
.ab-cta-section h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; margin-bottom: 15px; }

.ab-faq-section { padding: 100px 0; }
.ab-faq-section h2 { font-size: clamp(1.75rem, 3.5vw, 2.3rem); letter-spacing: -0.02em; margin-bottom: 60px; text-align: center; }
.ab-faq-item { border-bottom: 1px solid var(--border-color); padding: 20px 0; margin: 0; }
.ab-faq-item:first-of-type { border-top: 1px solid var(--border-color); }
.ab-faq-item h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 !important;
    position: relative;
    padding-right: 35px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}
.ab-faq-item h3:hover {
    color: var(--ab-accent, #007aff) !important;
}
.ab-faq-item h3::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.2s ease, color 0.2s ease;
    color: var(--text-muted);
}
.ab-faq-item.active h3::after {
    content: '−';
    transform: translateY(-50%);
    color: var(--text-color, #1d1d1f);
}
.ab-faq-item p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0 !important;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 !important;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.ab-faq-item.active p {
    max-height: 500px;
    opacity: 1;
    margin-top: 15px !important;
}

.ab-screenshot { 
    width: 100%; 
    border-radius: 16px; 
    border: 1px solid var(--border-color); 
    margin: 40px 0; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); 
    display: block; 
}

@media (max-width: 850px) {
    .ab-usecase-grid { grid-template-columns: 1fr; }
    .ab-hero-btns { flex-direction: column; align-items: center; }
    .ab-article-hero { padding: 60px 0 40px; }
    .ab-btn-apple, .ab-btn-apple-outline {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Main Audiobrain Landing Page Styles */
.ab-hero {
    text-align: center;
    padding: 120px 20px;
    border-bottom: 1px solid var(--border-color);
}

.ab-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin: 0 0 20px 0;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.ab-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* Features Section */
.ab-features-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.ab-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.ab-feature-item {
    background: var(--bg-color);
    padding: 40px 35px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ab-feature-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 14px 0 8px 0;
    letter-spacing: -0.01em;
}

.ab-feature-item p {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 0 14px 0;
    line-height: 1.6;
}

.ab-feature-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    display: inline-block;
}

.ab-feature-icon {
    width: 32px;
    height: 32px;
    display: block;
    color: var(--accent-color);
}

.ab-learn-more-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--ab-border, #e5e7eb);
    font-size: 0.85rem;
}

.ab-learn-more-links span {
    font-weight: 700;
    color: var(--ab-text-muted, #6b7280);
    white-space: nowrap;
}

.ab-learn-more-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

/* Pricing Section */
.ab-pricing-section {
    padding: 100px 0;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.ab-price-card {
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    padding: 60px 50px;
    text-align: left;
    max-width: 480px;
    margin: 50px auto 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.ab-price-container {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 15px;
}

.ab-price-value {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
}

.ab-price-period {
    font-size: 1.1rem;
    color: #86868b;
    font-weight: 600;
}

/* AudioVector SaaS */
.av-hero {
    padding: 100px 20px 88px;
}

.av-hero-inner {
    max-width: 720px;
}

.av-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    margin: 0 0 24px 0;
    line-height: 1.08;
}

.av-hero .av-hero-lead {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 12px auto;
    line-height: 1.55;
}

.av-hero .av-hero-detail {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 36px auto;
    line-height: 1.5;
}

.av-hero-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.av-hero-btns .ab-btn-apple,
.av-hero-btns .ab-btn-apple-outline {
    min-width: 210px;
    text-align: center;
}

.av-hero .av-hero-legal-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.5;
    padding: 14px 20px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    white-space: nowrap;
}

.av-hero .av-hero-legal-note a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 600;
}

#example-output,
#pricing {
    scroll-margin-top: 100px;
}

@media (max-width: 600px) {
    .av-hero {
        padding: 72px 16px 64px;
    }

    .av-hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .av-hero-btns .ab-btn-apple,
    .av-hero-btns .ab-btn-apple-outline {
        min-width: 0;
        width: 100%;
    }

    .av-hero .av-hero-legal-note {
        white-space: normal;
        font-size: 0.78rem;
        padding: 12px 14px;
    }
}

.av-how-it-works {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.av-how-it-works h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.3rem);
    letter-spacing: -0.02em;
    margin-bottom: 48px;
}

.av-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: left;
}

.av-step-item {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 28px;
    background: var(--bg-color);
}

.av-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.av-step-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.av-step-item p {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.av-step-item a {
    color: var(--accent-color);
}

.av-json-example {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.av-json-example h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.3rem);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.av-json-intro {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1rem;
    line-height: 1.6;
}

.av-json-accordion {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.av-json-meta {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 8px;
}

.av-json-pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    max-height: 280px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
}

.av-json-item .av-json-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.av-json-item.active .av-json-panel {
    max-height: 360px;
    opacity: 1;
    margin-top: 15px;
}

.av-json-item-batch.active .av-json-panel {
    max-height: 480px;
}

.av-json-item-batch.active .av-json-pre {
    max-height: 420px;
}

.ab-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 50px auto 0 auto;
    text-align: left;
}

.ab-pricing-grid .ab-price-card {
    max-width: none;
    margin: 0;
    padding: 40px 32px;
}

.ab-price-card-featured {
    border-width: 2px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.av-price-sm {
    font-size: 3rem !important;
}

.av-price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.av-price-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 6px 0 6px 20px;
    position: relative;
    line-height: 1.5;
}

.av-price-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.av-pricing-sub {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0 auto;
}

.av-pricing-contact,
.av-pricing-terms {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 32px;
}

.av-pricing-contact a,
.av-pricing-terms a {
    color: var(--accent-color);
    font-weight: 600;
}

.av-specs-grid {
    grid-template-columns: repeat(5, 1fr);
}

.ab-specs-grid.av-specs-grid {
    grid-template-columns: repeat(5, 1fr);
}

.ab-specs-grid.av-specs-grid .ab-spec-item {
    padding: 36px 20px;
}

.ab-specs-grid.av-specs-grid .ab-spec-item h4 {
    font-size: 0.95rem;
}

.ab-specs-grid.av-specs-grid .ab-spec-item p {
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .ab-specs-grid.av-specs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .av-steps-grid {
        grid-template-columns: 1fr;
    }

    .ab-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .av-specs-grid,
    .ab-specs-grid.av-specs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .av-specs-grid,
    .ab-specs-grid.av-specs-grid {
        grid-template-columns: 1fr;
    }
}

/* Specs Table */
.ab-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-color);
}

.ab-spec-item {
    background: var(--bg-color);
    padding: 40px 25px;
}

@media (max-width: 850px) {
    .ab-specs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .ab-specs-grid {
        grid-template-columns: 1fr;
    }
}

/* Feature Templates Mobile Typography overrides */
@media (max-width: 768px) {
    .ab-article-hero h1 {
        font-size: 2rem !important;
    }
    .ab-article-hero .ab-label {
        font-size: 10px;
    }
    .ab-article-meta {
        font-size: 12px;
        gap: 10px;
        margin-bottom: 24px;
    }
    .ab-article-body {
        padding: 40px 0;
    }
    .ab-article-body p {
        font-size: 16px !important;
        line-height: 1.6;
    }
    .ab-article-body h2 {
        font-size: 1.5rem !important;
        margin: 40px 0 15px;
    }
    .ab-article-body h3 {
        font-size: 1.1rem !important;
        margin: 25px 0 10px;
    }
    .ab-article-body li {
        font-size: 16px !important;
        line-height: 1.6;
    }
    .ab-step p {
        font-size: 15px !important;
    }
    .ab-usecase-item p {
        font-size: 15px !important;
    }
    .ab-faq-item h3 {
        font-size: 1rem !important;
    }
    .ab-faq-item p {
        font-size: 16px !important;
        line-height: 1.6;
    }
}

/* Screenshots Gallery Grid & Lightbox */
.ab-screenshots-gallery-section {
    padding: 30px 0;
    clear: both;
}
.ab-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}
.ab-screenshot-thumb-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color, #e5e5e7);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-color);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ab-screenshot-thumb-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: var(--accent-color, #007aff);
}
.ab-screenshot-thumb-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.ab-screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.ab-screenshot-thumb-item:hover .ab-screenshot-img {
    transform: scale(1.02);
}
.ab-screenshot-overlay-zoom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #fff;
}
.ab-screenshot-thumb-item:hover .ab-screenshot-overlay-zoom {
    opacity: 1;
}

/* Lightbox Modal */
.ab-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}
.ab-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ab-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}
.ab-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.ab-lightbox-close:hover {
    opacity: 1;
}
.ab-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, opacity 0.2s;
    opacity: 0.7;
}
.ab-lightbox-nav:hover {
    background: rgba(255,255,255,0.25);
    opacity: 1;
}
.ab-lightbox-prev {
    left: -80px;
}
.ab-lightbox-next {
    right: -80px;
}

@media (max-width: 768px) {
    .ab-screenshots-grid {
        grid-template-columns: 1fr; /* 1 column per row on mobile */
        gap: 16px;
    }
    .ab-lightbox-prev {
        left: 10px;
        width: 40px;
        height: 40px;
        background: rgba(0,0,0,0.4);
    }
    .ab-lightbox-next {
        right: 10px;
        width: 40px;
        height: 40px;
        background: rgba(0,0,0,0.4);
    }
    .ab-lightbox-close {
        top: -45px;
        right: 10px;
    }
}

/* Responsive YouTube Embed styling */
.ab-video-section {
    padding: 30px 0 10px;
    clear: both;
}
.ab-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e5e5e7);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    background: #000;
}
.ab-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================================================
   PREMIUM LIGHT-MODE HOMEPAGE STYLING (MINIMAL & GRAYSCALE)
   ============================================================================ */

.home-premium-light {
    background-color: var(--bg-color);
    color: #18181b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.home-hero {
    padding: 180px 0 120px;
    text-align: center;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.home-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    margin-bottom: 24px;
}

.home-hero h1 {
    font-size: clamp(2.5rem, 6.5vw, 4.2rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -2px;
    color: #09090b;
    margin-bottom: 24px;
}

.home-hero h1 span.accent {
    color: #09090b;
    background: none;
    -webkit-text-fill-color: initial;
    font-weight: 500;
}

.home-hero-desc {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.6;
    color: #52525b;
    max-width: 700px;
    margin: 0 auto 40px;
}

.home-hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.home-btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: #09090b;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}



.home-btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    background: var(--bg-color);
    border: 1px solid #e4e4e7;
    color: #09090b;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}



/* Premium Layout Sections */
.home-section {
    padding: 120px 0;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.home-section-light-gray {
    background-color: var(--bg-color);
}

.home-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.home-grid.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-section-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.home-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #09090b;
    margin-bottom: 20px;
}

.home-content p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #52525b;
    margin-bottom: 30px;
}

.home-btn-action {
    color: #09090b;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #09090b;
    padding-bottom: 4px;
}



/* Product Image Mockups (Microsoft Style) */
.home-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.home-img-wrapper {
    width: 100%;
    max-width: 540px;
    border-radius: 12px;
    border: 1px solid #e4e4e7;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    background: var(--bg-cream-soft);
    display: flex;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-img-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.home-product-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Typographic Values Grid (Section 3) */
.home-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.home-pillar-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
}

.home-cta-band {
    padding-top: 100px;
    padding-bottom: 100px;
}

.home-values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.value-card {
    background: var(--bg-color);
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    padding: 24px;
    transition: all 0.3s ease;
}

.value-card:hover {
    background: var(--bg-color);
    border-color: #d4d4d8;
    transform: translateY(-2px);
}

.value-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    color: #27272a;
}

.value-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #09090b;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #52525b;
    margin: 0;
}

/* Responsive Front Page Rules */
@media (max-width: 850px) {
    .home-hero {
        padding: 48px 0 56px;
    }

    .home-hero h1 {
        margin-bottom: 16px;
    }

    .home-hero-desc {
        margin-bottom: 28px;
    }

    .home-section {
        padding: 64px 0;
    }

    .home-cta-band {
        padding-top: 64px;
        padding-bottom: 64px;
    }
    
    .home-hero-btns {
        flex-direction: column;
        gap: 12px;
    }
    
    .home-hero-btns a {
        width: 100%;
        text-align: center;
    }
    
    .home-grid {
        grid-template-columns: 1fr !important;
        gap: 50px;
        text-align: center;
    }
    
    .home-content {
        align-items: center;
    }
    
    .home-visual {
        order: -1; /* Place mockup/visual above text on mobile */
    }
    
    .home-values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-pillars-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
   WordPress Plugins & Wix Apps Templates
   ========================================================================== */

.plugins-page, .wix-apps-page {
    background-color: var(--bg-color);
    color: #1d1d1f;
}

.plugins-hero, .wix-hero {
    padding: 120px 0 80px;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.plugins-hero-grid, .wix-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: flex-start;
}

.plugins-hero-left, .wix-hero-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}

.plugins-hero-left h1, .wix-hero-left h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: #000000;
    margin: 0;
}

.plugins-btn-pill, .wix-btn-pill {
    display: inline-block;
    padding: 14px 32px;
    background: #000000;
    color: #ffffff !important;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    border-radius: 9999px;
    line-height: 1.3;
    transition: all 0.2s ease;
}

.plugins-btn-pill:hover, .wix-btn-pill:hover {
    background: #27272a;
    transform: translateY(-1px);
}

.plugins-hero-right, .wix-hero-right {
    padding-top: 10px;
}

.plugins-hero-right p, .wix-hero-right p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #52525b;
    margin: 0;
}

.plugins-content-section, .wix-content-section {
    padding: 80px 0;
}

@media (max-width: 850px) {
    .plugins-hero, .wix-hero {
        padding: 60px 0 40px;
    }
    .plugins-hero-grid, .wix-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .plugins-hero-left h1, .wix-hero-left h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        letter-spacing: -1px;
    }
    .plugins-hero-right p, .wix-hero-right p {
        font-size: 1rem;
    }
}

/* TMC Portal header block */
.tmc-mobile-menu-portal {
    display: none;
}

.tmc-header-portal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin-left: 16px;
}

.tmc-header-portal--desktop {
    padding-left: 20px;
    border-left: 1px solid var(--border-color);
}

.tmc-header-portal-main a {
    font-weight: 600;
    font-size: 0.875rem;
    color: inherit;
    text-decoration: none;
}

.tmc-header-portal-sub {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
}

.tmc-header-portal-sub a {
    color: #4285F4;
    text-decoration: none;
}

.tmc-header-portal-sub .tmc-portal-sep {
    margin: 0 5px;
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .tmc-header-portal--desktop {
        display: none;
    }

    .tmc-mobile-menu-portal {
        display: block;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-color);
    }

    .tmc-mobile-menu-section-label {
        margin: 0 0 1rem;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .tmc-mobile-menu-portal-links {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .tmc-mobile-menu-portal-links a {
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--text-color);
        text-decoration: none;
    }
}

