/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
   :root {
    color-scheme: light;
    /* Brand Colors extracted from Color.kt */
    --primary-color: #0F172A;
    --primary-light: #1E293B;
    --accent-color: #2962FF;
    --accent-hover: #1E4ED8;
    --accent-green: #059669;
    --accent-green-dark: #047857;
    
    /* Background & Surface */
    --bg-color: #FFFFFF;
    --surface-color: #F8FAFC;
    --border-color: #E2E8F0;
    
    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    
    /* Design Tokens */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-premium: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg-color: #000000;
    --surface-color: #121212;
    --border-color: #2D2D2D;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --shadow-premium: 0 10px 25px -5px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition), color var(--transition);
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon-wrapper {
    width: 48px;
    height: 48px;
    /* Apple Squircle approach */
    border-radius: 22%; 
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    width: 120%;
    height: 120%;
    object-fit: cover;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover, nav a.active {
    color: var(--accent-color);
}

.nav-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1;
}

.nav-home-link svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    position: relative;
    top: -1.5px;
}

.controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    color: var(--text-primary);
    transition: var(--transition);
}

.icon-btn:hover {
    background-color: var(--surface-color);
}

/* ==========================================================================
   Custom Dropdown (Premium)
   ========================================================================== */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 120px;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--surface-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.lang-btn:hover, .lang-btn:focus {
    border-color: var(--accent-color);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 100%;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-item {
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.lang-item:hover {
    background-color: var(--surface-color);
}

.lang-item.active {
    background-color: rgba(41, 98, 255, 0.08); /* light accent tint */
    color: var(--accent-color);
    font-weight: 600;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(41, 98, 255, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(41, 98, 255, 0.3);
}

.cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.badge-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.google-play-badge {
    height: 60px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.google-play-badge:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    text-align: center;
    padding: 5rem 1rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-mockup {
    margin-top: 2rem;
    height: 600px;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Hero Highlights Grid
   ========================================================================== */
.hero-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0 1rem;
    text-align: left;
}

@media (max-width: 768px) {
    .hero-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0 0.5rem;
    }
}

.highlight-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.highlight-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-hover);
}

.highlight-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.highlight-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.highlight-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ==========================================================================
   Phone Mockup Component
   ========================================================================== */
.phone-mockup {
    background-color: var(--surface-color);
    border: 8px solid var(--primary-light);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-premium);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: var(--primary-light);
    border-radius: 50%;
    z-index: 10;
}

.phone-mockup img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: 5;
    background-color: var(--surface-color);
}

/* ==========================================================================
   Z-Pattern Features
   ========================================================================== */
.z-features {
    padding: 1rem 5% 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.z-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 8rem;
}

.z-row:last-child {
    margin-bottom: 0;
}

.z-row.reverse {
    flex-direction: row-reverse;
}

.z-text {
    flex: 1;
}

.z-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.z-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.z-image {
    flex: 0 0 300px;
    height: 600px;
}

/* ==========================================================================
   Bento Box Grid
   ========================================================================== */
.bento-section {
    padding: 2rem 5% 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.bento-card {
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 3rem 3rem 0 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
}

.bento-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.bento-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.bento-card p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.125rem;
    line-height: 1.6;
}

.bento-image-wrapper {
    width: 100%;
    margin-top: auto;
    position: relative;
    bottom: -20px;
}

.bento-image-wrapper .phone-mockup {
    height: 400px;
    width: 80%;
    margin: 0 auto;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

/* ==========================================================================
   Full Bleed Banner
   ========================================================================== */
.full-bleed-banner {
    background: linear-gradient(135deg, #2a8577 0%, #4BBCAA 60%, #6dcfbe 100%);
    color: #ffffff;
    padding: 6rem 5% 0 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.full-bleed-banner h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 800;
}

.full-bleed-banner p {
    font-size: 1.25rem;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto 4rem auto;
    line-height: 1.6;
}

.full-bleed-image-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    bottom: -40px;
}

.full-bleed-banner .phone-mockup {
    height: 500px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-color: #334155;
    background-color: #0F172A;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

/* ==========================================================================
   FAQ Section (SEO & Rich Snippets)
   ========================================================================== */
.faq-section {
    padding: 6rem 5%;
    max-width: 900px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.faq-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.faq-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.faq-item.active {
    border-color: var(--accent-color);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 1.75rem;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 1.75rem;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Help Center (Documentation Layout)
   ========================================================================== */
.docs-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 5%;
    gap: 4rem;
}

.docs-sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 100px;
    height: calc(100vh - 140px);
    overflow-y: auto;
}

.docs-sidebar h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.docs-sidebar ul {
    list-style: none;
}

.docs-sidebar li {
    margin-bottom: 1rem;
}

.docs-nav ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    display: block;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    transition: var(--transition);
    border-left: 2px solid transparent;
    padding-left: 1rem;
    margin-left: -1rem;
}

.docs-nav ul li a:hover,
.docs-nav ul li a.active {
    color: var(--accent-color);
}

.docs-nav ul li a.active {
    border-left-color: var(--accent-color);
    font-weight: 600;
}

/* Document Content */
.docs-content {
    flex: 1;
    min-width: 0; /* Prevents flex blowout */
}

/* Scroll margin to prevent header overlap when jumping to anchors */
.docs-content section {
    margin-bottom: 4rem;
    scroll-margin-top: 140px;
}

.docs-content section > h2 {
    margin-bottom: 3rem;
}

.docs-header {
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.docs-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.docs-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.doc-section {
    margin-bottom: 5rem;
}

.doc-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.doc-item {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.doc-image-wrapper {
    margin-top: 1.5rem;
    position: relative;
    width: 100%;
    min-height: 250px;
    background-color: var(--bg-color);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.doc-image-placeholder {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    color: var(--text-secondary);
    font-size: 0.9rem;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--surface-color);
}

.doc-image {
    position: relative;
    z-index: 1;
    max-width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.doc-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.doc-item p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Remove the duplicate doc-image-placeholder class definition */

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    text-align: center;
    padding: 3rem 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    margin-top: auto;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .z-row, .z-row.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .docs-container {
        flex-direction: column;
    }
    
    .docs-sidebar {
        position: static;
        height: auto;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 2rem;
    }
}

/* ==========================================================================
   CMS Editor Mode Styles
   ========================================================================== */
body.editor-mode .editable-text {
    outline: 2px dashed rgba(41, 98, 255, 0.4);
    outline-offset: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: text;
}

body.editor-mode .editable-text:hover,
body.editor-mode .editable-text:focus {
    outline: 2px solid var(--accent-color);
    background-color: rgba(41, 98, 255, 0.05);
}

body.editor-mode .editable-image-zone {
    position: relative;
    cursor: copy;
}

body.editor-mode .editable-image-zone::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px dashed transparent;
    border-radius: inherit;
    transition: all 0.2s;
    pointer-events: none;
    z-index: 20;
}

body.editor-mode .editable-image-zone:hover::after {
    border-color: rgba(41, 98, 255, 0.5);
    background-color: rgba(41, 98, 255, 0.1);
}

body.editor-mode .editable-image-zone.drag-over::after {
    border-color: var(--accent-color);
    background-color: rgba(41, 98, 255, 0.3);
}

body.editor-mode .drop-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 25;
}

body.editor-mode .editable-image-zone:hover .drop-hint,
body.editor-mode .editable-image-zone.drag-over .drop-hint {
    opacity: 1;
}

/* Add Section Button */
.btn-add-section {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    box-shadow: var(--shadow-premium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 9999;
}

.btn-add-section:hover {
    transform: scale(1.1) rotate(90deg);
    background-color: var(--accent-hover);
}

/* Toast Notification */
#editor-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2ecc71;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    box-shadow: var(--shadow-premium);
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

#editor-toast.show {
    bottom: 2rem;
}

/* ==========================================================================
   CMS Block Builder Styles
   ========================================================================== */

/* CMS Inline Block Inserter */
.cms-insert-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    padding: 0.5rem 0;
    opacity: 0.15;
    transition: opacity 0.3s, transform 0.2s;
}

.cms-insert-bar:hover {
    opacity: 1;
}

.cms-insert-bar::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px dashed var(--accent-color);
    z-index: 1;
}

.cms-insert-buttons {
    position: relative;
    display: flex;
    gap: 0.5rem;
    background: var(--background-color);
    padding: 0 1rem;
    z-index: 2;
}

.btn-cms-insert {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cms-insert:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: rgba(41, 98, 255, 0.05);
    transform: translateY(-1px);
}

/* CMS Block Actions */
body.editor-mode .cms-block {
    position: relative;
    transition: box-shadow 0.2s;
}

body.editor-mode .cms-block:hover {
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.cms-block-actions {
    position: absolute;
    top: 0;
    right: 0;
    transform: translateY(-50%) translateX(10px);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 30;
}

body.editor-mode .cms-block:hover > .cms-block-actions {
    opacity: 1;
}

.btn-cms-delete {
    background-color: #e74c3c;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s, background-color 0.2s;
}

.btn-cms-delete:hover {
    background-color: #c0392b;
    transform: scale(1.1);
}

/* Sidebar CMS Actions */
.cms-sidebar-add-section {
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    border: 1px dashed var(--accent-color);
    border-radius: var(--radius-sm);
    color: var(--accent-color);
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    transition: all 0.2s;
}

.cms-sidebar-add-section:hover {
    background: rgba(41, 98, 255, 0.05);
    color: var(--accent-hover);
    border-color: var(--accent-hover);
}

body.editor-mode .docs-sidebar li {
    position: relative;
    padding-right: 2.5rem; /* Make space for delete & sub buttons */
}

.cms-sidebar-actions {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    gap: 0.25rem;
    z-index: 10;
}

body.editor-mode .docs-sidebar li:hover > .cms-sidebar-actions {
    opacity: 1;
}

.btn-cms-sidebar {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 2px 6px;
    transition: all 0.2s;
}

.btn-cms-sidebar:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* ==========================================================================
   Responsive Mobile Layouts (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    header {
        padding: 0.85rem 1rem;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .logo {
        font-size: 1.05rem;
        gap: 0.5rem;
    }

    .logo-icon-wrapper {
        width: 36px;
        height: 36px;
    }

    nav {
        gap: 0.5rem;
    }

    .controls {
        gap: 0.4rem;
        margin-left: 0;
    }

    .nav-home-text {
        display: none;
    }

    .nav-home-link svg {
        width: 24px;
        height: 24px;
    }

    .lang-btn {
        min-width: auto;
        padding: 0.4rem 0.65rem;
        font-size: 0.825rem;
        gap: 0.35rem;
    }

    .lang-btn span {
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero {
        padding: 3rem 1rem 2rem 1rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero h1 {
        font-size: 2.1rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.05rem;
        margin-bottom: 1.75rem;
    }

    .hero-mockup {
        margin-top: 2rem;
        height: 460px;
        width: 230px;
    }

    .z-features {
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    .z-row, .z-row.reverse {
        flex-direction: column !important;
        gap: 2rem;
        margin-bottom: 4rem;
        text-align: center;
    }

    .z-row:last-child {
        margin-bottom: 0;
    }

    .z-text {
        max-width: 100%;
    }

    .z-text h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .z-text p {
        font-size: 1rem;
    }

    .z-image {
        flex: 0 0 auto !important;
        width: 230px !important;
        height: 460px !important;
        min-height: auto !important;
        margin: 0 auto;
    }

    .bento-section {
        padding: 3rem 1rem;
        box-sizing: border-box;
    }

    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .bento-card {
        padding: 2rem 1.25rem 0 1.25rem;
        text-align: center;
        overflow: hidden;
    }

    .bento-card h2 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }

    .bento-card p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .bento-image-wrapper {
        margin-top: auto;
        position: relative;
        bottom: 0;
        width: 100%;
    }

    .bento-image-wrapper .phone-mockup {
        width: 210px !important;
        height: 260px !important;
        border-bottom: none !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        margin: 0 auto;
    }

    .full-bleed-banner {
        padding: 3.5rem 1rem 0 1rem;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .full-bleed-banner h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .full-bleed-banner p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .full-bleed-image-wrapper {
        position: relative;
        bottom: 0;
        width: 100%;
        margin: 0 auto;
    }

    .full-bleed-banner .phone-mockup {
        width: 210px !important;
        height: 260px !important;
        max-width: 100%;
        border-bottom: none !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        margin: 0 auto;
    }

    .faq-section {
        padding: 4rem 1.25rem 2rem 1.25rem;
    }

    .faq-header {
        margin-bottom: 2.5rem;
    }

    .faq-header h2 {
        font-size: 1.85rem;
    }

    .faq-header p {
        font-size: 0.95rem;
    }

    .faq-question {
        padding: 1.25rem 1.25rem;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1.25rem;
    }

    .faq-item.active .faq-answer {
        padding-bottom: 1.25rem;
    }

    .faq-answer p {
        font-size: 0.92rem;
    }

    footer {
        padding: 2rem 1rem;
        font-size: 0.85rem;
        text-align: center;
    }
}

