:root {
    --bg-dark: #0f172a;
    --bg-sidebar: #1e293b;
    --panel-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-red: #ef4444;
    --focus-color: #ef4444;
    --glass-blur: blur(12px);
    --transition-speed: 0.3s;
    
    /* Spacing System */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    
    /* Typography System */
    --font-rsvp: clamp(2rem, 8vw, 4.5rem);
    --font-heading: clamp(1.2rem, 4vw, 1.4rem);
    --font-ui: clamp(0.9rem, 2vw, 1rem);
}

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

input, textarea, button, select {
    font-family: var(--font-custom, inherit);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

/* App Container */
.app-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar */
.sidebar {
    width: 280px;
    max-width: 85vw; /* Don't overtake full screen on small phones */
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease;
    z-index: 100;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar.closed {
    transform: translateX(-100%);
    position: absolute;
}

.sidebar-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.sidebar-content {
    padding: 20px 16px;
    flex: 1 0 auto;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.top-bar {
    height: 70px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand h1 {
    font-size: var(--font-heading);
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo {
    width: 38.4px;
    height: 38.4px;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Reader Section */
.reader-section {
    flex: 1;
    padding: clamp(10px, 3vw, 40px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: clamp(15px, 4vw, 30px);
    width: 100%;
    max-width: 900px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Input Styles */
#input-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

textarea {
    width: 100%;
    height: clamp(250px, 40vh, 400px);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--space-3);
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--font-ui);
    line-height: 1.6;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

textarea:focus {
    border-color: var(--accent-blue);
}

/* Reader Display Styles */
.rsvp-canvas {
    height: clamp(200px, 35vh, 300px);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-4);
    background: rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden; /* Prevent text spilling on tiny devices */
}

.focus-lines {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(80px, 15vw, 120px); /* Dynamic gap based on word size */
    z-index: 10;
    pointer-events: none;
}

.line {
    width: 3px; 
    height: 25px;
    background: var(--accent-blue); 
    opacity: 0.8;
}

.word-display {
    font-size: var(--font-rsvp);
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Consolas', 'Courier New', monospace;
    width: 100%;
    height: 100%;
    letter-spacing: 0.02em; /* Improve readability */
}

.prefix, .suffix {
    flex: 1; /* These occupy exactly half of the remaining space */
    display: block;
    white-space: nowrap;
}

.prefix {
    text-align: right;
    padding-right: 0.05em; /* Tiny gap for focus char visibility */
}

.suffix {
    text-align: left;
    padding-left: 0.05em;
}

.focus {
    color: var(--focus-color);
    flex: 0 0 auto;
    text-align: center;
    min-width: 0.6em; /* Ensure at least one char width */
}



.reader-progress {
    margin-bottom: 30px;
}

.progress-bar-bg {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: var(--accent-blue);
    transition: width 0.1s linear;
}

#progress-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.reader-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.wpm-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 150px;
}

.wpm-control label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Buttons - Ensuring 44px minimum touch targets */
.primary-btn, .action-btn.primary {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 48px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary-btn:hover, .action-btn.primary:hover {
    background: var(--accent-blue-hover);
}

.secondary-btn, .control-btn.secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secondary-btn:hover {
    background: var(--panel-bg);
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.icon-btn:hover {
    background: var(--panel-bg);
    color: var(--text-primary);
}

.control-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: var(--font-ui);
    min-width: 100px;
    cursor: pointer;
    background: var(--accent-blue);
    color: white;
    border: none;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s;
}

.modal.hidden {
    display: none;
    opacity: 0;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-body input {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    outline: none;
}

.modal-body p {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

.modal-body a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* Select Styling */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}

/* Ensure dropdown options have good contrast in all themes */
select option {
    background: #1e293b;
    color: #f1f5f9;
    padding: 8px 12px;
}

select:focus {
    border-color: var(--accent-blue) !important;
    outline: none;
}

.branding-footer {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Helpers */
.hidden {
    display: none !important;
}

/* --- Toggle Switch Component --- */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    transition: background 0.25s ease;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 3px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: transform 0.25s ease, background 0.25s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-blue);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(18px);
    background: #fff;
}

/* --- Skip button active / pressed state --- */
.control-btn.secondary:active,
.control-btn.secondary.pressing {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-blue);
    transform: scale(0.96);
    transition: transform 0.08s ease, background 0.08s ease;
}

.sidebar-info {
    margin-top: 15px; /* ensure separation from divider */
}

/* Reading List Items */
.reading-item {
    padding: 14px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    border: 1px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reading-item-content {
    flex: 1;
    min-width: 0;
}

.delete-reading-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
    opacity: 0.3;
    transition: opacity 0.2s, color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.delete-reading-btn:hover {
    opacity: 1;
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.reading-item:last-child {
    border-bottom-color: transparent;
}

.reading-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--border-color);
}

.reading-item.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
}

.reading-item h3 {
    font-size: 0.95rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reading-item p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Theme presets */
body.theme-light {
    --bg-dark: #f8fafc;
    --bg-sidebar: #f1f5f9;
    --panel-bg: rgba(0, 0, 0, 0.05);
    --border-color: rgba(0, 0, 0, 0.1);
    --text-primary: #0f172a;
    --text-secondary: #475569;
}

body.theme-sepia {
    --bg-dark: #f4ecd8;
    --bg-sidebar: #e8dfc7;
    --panel-bg: rgba(0, 0, 0, 0.03);
    --border-color: rgba(139, 115, 85, 0.2);
    --text-primary: #433422;
    --text-secondary: #705b43;
}

/* Focus Mode - True Full Screen */
body.focus-mode-active .sidebar,
body.focus-mode-active .top-bar,
body.focus-mode-active .reader-progress,
body.focus-mode-active .wpm-control,
body.focus-mode-active #reset-btn,
body.focus-mode-active #exit-reader-btn,
body.focus-mode-active #sidebar-toggle,
body.focus-mode-active .branding-footer,
body.focus-mode-active .ui-message-footer,
body.focus-mode-active #focus-mode-toggle,
body.focus-mode-active .focus-lines,
body.focus-mode-active .reader-controls {
    display: none !important;
}

body.focus-mode-active .main-content {
    background: var(--bg-dark);
}

body.focus-mode-active .reader-section {
    padding: 0 !important;
    align-items: stretch;
}

body.focus-mode-active .glass-panel {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.focus-mode-active #display-container {
    height: 100%;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
}

body.focus-mode-active .rsvp-canvas {
    border: none !important;
    background: transparent !important;
    height: 100% !important;
    flex: 1;
    margin-bottom: 0 !important;
}

/* Tap-to-pause overlay (mobile, shown only in focus mode) */
#focus-tap-overlay {
    display: none;
}

body.focus-mode-active #focus-tap-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* --- About page fix: prevent footer from covering content on mobile --- */
.about-section {
    padding-bottom: max(60px, env(safe-area-inset-bottom)) !important;
}

/* --- Media Queries for Responsiveness --- */

/* Tablet & Mobile Layout (< 1024px) */
@media screen and (max-width: 1024px) {
    .brand h1 {
        display: none; /* Icon only on medium/small */
    }
}

/* Mobile Specific (< 768px) */
@media screen and (max-width: 768px) {
    .app-container {
        position: relative;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        height: 100vh;
        z-index: 100;
    }

    .top-bar {
        padding: 0 var(--space-3);
    }
    
    .reader-controls {
        flex-direction: column;
    }
    
    .wpm-control {
        width: 100%;
    }
    
    .reader-controls button {
        width: 100%; /* Full width buttons for easy thumb tapping */
    }
    
    /* Ensure action row in input area stays wrapable */
    #input-container > div:nth-child(2) {
        flex-direction: column;
        gap: var(--space-3);
        align-items: stretch !important;
    }
    
    #text-stats {
        text-align: center;
    }
}

/* --- HUD Toast (on-screen feedback for play/pause, WPM, skip) --- */
.hud-toast {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: clamp(1.4rem, 6vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 14px 32px;
    border-radius: 18px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    white-space: nowrap;
}

.hud-toast.visible {
    opacity: 1;
}

/* --- Keyboard shortcut key pills in sidebar --- */
.kbd {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.78rem;
    font-family: 'Consolas', 'Courier New', monospace;
    color: var(--text-primary);
    line-height: 1.5;
}

/* ==========================================================================
   SAAS MARKETING PAGES (Landing, About, Features, etc.)
   ========================================================================== */

.marketing-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--bg-dark);
}

.marketing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 80px; /* Account for fixed nav */
}

/* --- Top Navigation --- */
.saas-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-speed);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 20px;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 1.1rem;
}

/* --- Hero Section --- */
.hero-section {
    padding: 80px 20px 40px;
    display: flex;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* --- Demo Section (Homepage MVP) --- */
.demo-section {
    padding: 0 20px 80px;
    display: flex;
    justify-content: center;
}

.demo-mockup {
    width: 100%;
    max-width: 800px;
    padding: 30px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* --- General Content Sections --- */
.content-section {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1200px;
}

.text-container {
    max-width: 800px;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

/* --- Features Grid --- */
.features-grid-section {
    padding: 80px 20px;
    background: rgba(255,255,255,0.02);
    display: flex;
    justify-content: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    transition: transform var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- Details / Accordion (FAQ) --- */
details > summary::-webkit-details-marker {
  display: none;
}

details > summary {
    list-style: none;
}

details[open] summary ~ * {
    animation: sweep .3s ease-in-out;
}

@keyframes sweep {
    0%    {opacity: 0; margin-top: -10px;}
    100%  {opacity: 1; margin-top: 15px;}
}

/* --- Footer --- */
.saas-footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color var(--transition-speed);
}

.footer-col a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.no-underline {
    text-decoration: none;
}

/* --- Marketing Responsive --- */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* --- Extension Mode --- */
body.extension-mode {
    background: transparent !important;
}

body.extension-mode .sidebar {
    display: none !important;
}

body.extension-mode .top-bar {
    display: none !important;
}

body.extension-mode .app-container {
    background: transparent !important;
}

body.extension-mode .main-content {
    background: transparent !important;
    justify-content: center;
    align-items: center;
}

body.extension-mode .reader-section {
    padding: 0;
    align-items: center;
    max-width: 900px;
    width: 100%;
}

body.extension-mode .glass-panel {
    background: rgba(15, 23, 42, 0.95); /* Deep dark background for readability */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}
