/* Command Book Site Styles */

/* ==========================================
   Sticky Footer Layout
   ========================================== */

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Main content wrapper grows to push footer down */
.site-content {
    flex: 1 0 auto;
}

/* Footer stays at bottom */
.footer {
    flex-shrink: 0;
}

/* ==========================================
   Navbar
   ========================================== */

/* Make navbar burger lines match the warning/yellow color */
.navbar.is-dark .navbar-burger span {
    background-color: hsl(44, 100%, 77%);
}

/* Align nav link text with the larger brand text baseline */
.navbar-menu .navbar-start .navbar-item {
    padding-top: 0.7rem;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero-gradient {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f1624 50%, #1a1a2e 100%);
}

.hero-title {
    font-size: 2.75rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.hero-screenshot img {
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Hero stacked layout (centered, wide screenshot) */
.hero-stacked {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-stacked .hero-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
}

/* Reduce top padding to bring title closer to top */
.hero.is-medium.hero-gradient .hero-body {
    padding-top: 4rem;
}

/* Keep each phrase together - wraps as complete units on wider screens */
.hero-phrase {
    white-space: nowrap;
    display: inline;
}

/* Allow text to wrap on narrow mobile screens */
@media screen and (max-width: 480px) {
    .hero-phrase {
        white-space: normal;
    }
}

.hero-screenshot-wide {
    width: 90%;
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.hero-screenshot-wide img {
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Hero button refinements */
.hero .button.is-warning {
    font-weight: 600;
}

.hero .button.is-outlined {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.hero .button.is-outlined:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   Problem Section
   ========================================== */

.problem-section {
    padding: 5rem 1.5rem;
}

.problem-section .content p {
    margin-bottom: 1.25rem;
}

/* ==========================================
   Solution Section
   ========================================== */

.solution-section {
    padding: 4rem 1.5rem;
}

/* ==========================================
   Feature Sections
   ========================================== */

.feature-section {
    padding: 5rem 1.5rem;
}

.feature-screenshot img {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-screenshot:hover img {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.feature-section h3 {
    letter-spacing: -0.01em;
}

.feature-section code {
    background-color: transparent;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Keyboard shortcuts preview */
.shortcuts-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shortcuts-preview .tag {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

.shortcuts-preview kbd {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    font-weight: 600;
    background: none;
    box-shadow: none;
    margin-right: 0.5em;
}

/* Color features tags */
.color-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* ==========================================
   CLI Terminal Preview
   ========================================== */

.cli-terminal-preview {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    background: #1e1e2e;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cli-terminal-preview:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.cli-terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #181825;
}

.cli-terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.cli-terminal-dot.red { background: #ff5f57; }
.cli-terminal-dot.yellow { background: #febc2e; }
.cli-terminal-dot.green { background: #28c840; }

.cli-terminal-title {
    flex: 1;
    text-align: center;
    color: #6c7086;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 42px; /* compensate for dots on left */
}

.cli-terminal-body {
    margin: 0;
    padding: 1rem 1.25rem;
    font-family: "SF Mono", "Fira Code", "Cascadia Code", "JetBrains Mono", Menlo, monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #cdd6f4;
    background: #1e1e2e;
    overflow-x: hidden;
    border-radius: 0;
    box-shadow: none;
}

.cli-prompt { color: #a6e3a1; font-weight: 600; }
.cli-cmd { color: #89b4fa; font-weight: 600; }
.cli-header { color: #cba6f7; font-weight: 700; }
.cli-dim { color: #6c7086; }
.cli-title { color: #f9e2af; font-weight: 700; }
.cli-run { color: #a6e3a1; font-weight: 600; }
.cli-url { color: #89b4fa; text-decoration: underline; }

@media screen and (max-width: 480px) {
    .cli-terminal-body {
        font-size: 0.65rem;
        padding: 0.75rem 1rem;
    }
}

/* ==========================================
   Native macOS Section
   ========================================== */

.native-section {
    padding: 3rem 1.5rem;
}

.native-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.native-icon {
    color: #333;
}

/* ==========================================
   Pricing Section
   ========================================== */

.pricing-section {
    padding: 5rem 1.5rem;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card-featured {
    border: 2px solid hsl(44, 100%, 50%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.pricing-amount {
    margin-bottom: 0.5rem;
}

.pricing-amount .price {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.02em;
}

.pricing-note {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: #444;
}

.pricing-features li i {
    margin-right: 0.75rem;
}

/* Pricing columns - stack earlier on narrow screens */
@media screen and (max-width: 960px) {
    .pricing-section .pricing-columns.columns {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-section .pricing-columns .column {
        flex: none;
        width: 100%;
        max-width: 420px;
    }
}

/* ==========================================
   Final CTA Section
   ========================================== */

.final-cta {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
}

/* Feature reverse layout - image on right, text on left */
@media screen and (min-width: 769px) {
    .feature-reverse {
        flex-direction: row-reverse;
    }
}

/* ==========================================
   Responsive adjustments
   ========================================== */

@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stacked .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
    .hero-stacked .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-screenshot {
        margin-top: 2rem;
    }
    
    .hero-screenshot-wide {
        width: 100%;
        margin-bottom: 1.25rem;
    }
    
    .feature-section {
        padding: 3rem 1.5rem;
    }
    
    .feature-screenshot {
        margin-bottom: 2rem;
    }
    
    .order-1-mobile {
        order: 1;
    }
    
    .order-2-mobile {
        order: 2;
    }
    
    .pricing-amount .price {
        font-size: 2.5rem;
    }
    
    .native-card {
        padding: 1.5rem;
    }
    
    .native-card .columns {
        display: block;
        text-align: center;
    }
    
    .native-card .column.is-narrow {
        margin-bottom: 1rem;
    }
}

@media screen and (min-width: 769px) {
    .hero.is-medium .hero-body {
        padding: 6rem 3rem;
    }
}

/* ==========================================
   Card hover effects (general)
   ========================================== */

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Footer styling */
.footer {
    background-color: #f5f5f5;
    padding: 2rem 1.5rem;
}

.footer .footer-email {
    color: #000000;
    font-weight: bold;
}

.footer .footer-email:hover {
    color: #000000;
    text-decoration: underline;
}

.footer .footer-copyright {
    font-size: 0.8em;
}

/* ==========================================
   Documentation Section
   ========================================== */

/* Docs sidebar links */
.docs .menu-list a {
    color: #404654;
}

.docs .menu-list a:hover {
    color: #2a2e3a;
}

.docs .menu-list a.is-active {
    background-color: #404654;
    color: white;
}

/* Docs content headings */
.docs .content h1,
.docs .content h2,
.docs .content h3,
.docs .content h4,
.docs .content h5,
.docs .content h6 {
    color: #404654;
}

/* Docs content links */
.docs .content a {
    color: #3273dc;
    text-decoration: underline;
    text-decoration-color: rgba(50, 115, 220, 0.4);
    text-underline-offset: 2px;
    font-weight: 500;
}

.docs .content a:hover {
    color: #2160c4;
    text-decoration-color: rgba(33, 96, 196, 0.8);
}

/* Content typography */
.content h1, .content h2, .content h3 {
    margin-top: 1.5em;
}

.content h1:first-child,
.content h2:first-child,
.content h3:first-child {
    margin-top: 0;
}

/* Code blocks */
.content pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

.content code {
    background-color: transparent;
    color: #ff3860;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

/* Breadcrumb spacing */
.breadcrumb {
    margin-bottom: 1.5rem;
}

/* Docs breadcrumb colors */
.docs .breadcrumb a {
    color: #404654;
    font-weight: 500;
}

.docs .breadcrumb a:hover {
    color: #2a2e3a;
}

.docs .breadcrumb li.is-active a {
    color: #404654;
}

/* Docs page - tighter layout for more content space */
.docs .section {
    padding: 1.5rem 1rem;
}

.docs .container.is-fluid {
    padding-left: 1rem;
    padding-right: 1.5rem;
}

/* Docs index - clickable topic boxes */
.docs .content a.docs-topic-box,
.docs .content a.docs-topic-box:hover {
    text-decoration: none;
    color: inherit;
}

.docs-topic-box {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.docs-topic-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.docs-topic-box .title {
    color: #363636;
    transition: color 0.2s ease;
}

.docs-topic-box:hover .title {
    color: #3273dc;
}

/* Icon alignment in buttons */
.button .icon:first-child:not(:last-child) {
    margin-right: 0.25em;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .hero .title.is-1 {
        font-size: 2rem;
    }

    .hero .subtitle.is-3 {
        font-size: 1.25rem;
    }
}

/* Hot Reload Toggle Styles */
.hot-reload-toggle-container {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) scale(0.625);
    transform-origin: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hot-reload-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    margin-left: -8px;
    transition: color 0.2s ease;
}

.hot-reload-close:hover {
    color: #333;
}

.hot-reload-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.toggle-text {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.toggle-status {
    color: #4CAF50;
    font-size: 13px;
    font-weight: 600;
    min-width: 32px;
    text-align: left;
}

/* iOS-style Toggle Switch */
.ios-toggle {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
}

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

.ios-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 31px;
}

.ios-slider:before {
    position: absolute;
    content: "";
    height: 27px;
    width: 27px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ios-toggle input:checked + .ios-slider {
    background-color: #4CAF50;
}

.ios-toggle input:checked + .ios-slider:before {
    transform: translateX(20px);
}

.ios-toggle input:not(:checked) ~ .toggle-status {
    color: #999;
}

/* Hover effects */
.hot-reload-toggle-container:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.ios-slider:hover {
    opacity: 0.9;
}

/* ==========================================
   Documentation Search Styles
   ========================================== */

.docs-search-section {
    max-width: 100%;
}

/* Clear icon styling */
#docs-search-clear {
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#docs-search-clear:hover {
    color: #f14668;
}

/* Show clear icon when input has focus or value */
.docs-search-section .control.has-icons-right input:focus ~ #docs-search-clear,
.docs-search-section .control.has-icons-right input:not(:placeholder-shown) ~ #docs-search-clear {
    opacity: 1;
}

/* Search results container */
.docs-search-results {
    margin-top: 1.5rem;
}

.search-results-count {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

/* Individual search result */
.search-result {
    padding: 1.25rem 0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result:hover {
    background-color: #fafafa;
}

.search-result .title a {
    color: #3273dc;
    text-decoration: none;
}

.search-result .title a:hover {
    text-decoration: underline;
}

/* Search matches within a result */
.search-matches {
    margin-top: 0.5rem;
}

.search-match {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding: 0;
    gap: 0.75rem;
}

.search-match-icon {
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: #999;
    font-size: 0.875rem;
}

.search-match-context {
    line-height: 1.6;
    color: #4a5568;
}

/* Highlighted search terms */
.search-match mark {
    background: #ffeb3b;
    padding: 0.1em 0.2em;
    border-radius: 2px;
    font-weight: 600;
}

.search-result .title mark {
    background: #ffeb3b;
    padding: 0.1em 0.2em;
    border-radius: 2px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .docs-search-section {
        padding: 0.5rem;
    }

    .search-match {
        gap: 0.5rem;
    }
}

/* Docs page title sizing for mobile */
@media screen and (max-width: 480px) {
    .docs .title.is-1 {
        font-size: 2rem;
    }
    
    .docs .subtitle.is-4 {
        font-size: 1rem;
    }
}

/* ==========================================
   FAQ Page Styles
   ========================================== */

.faq-page .hero-gradient {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f1624 50%, #1a1a2e 100%);
}

/* FAQ Navigation */
.faq-nav-section {
    padding: 2rem 1.5rem;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.faq-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.faq-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 8px;
    color: #4a4a4a;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.faq-nav-item:hover {
    background: #363636;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq-nav-item i {
    font-size: 0.85rem;
}

/* FAQ Content */
.faq-content-section {
    padding: 3rem 1.5rem 5rem;
}

.faq-category {
    margin-bottom: 3rem;
    scroll-margin-top: 2rem;
}

.faq-category:last-child {
    margin-bottom: 0;
}

/* FAQ Global Controls */
.faq-global-controls {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    padding-top: 0.5rem;
}

.faq-global-controls .button,
.expand-section {
    transition: all 0.2s ease;
}

.faq-global-controls .button:hover,
.expand-section:hover {
    background-color: #363636;
    color: white;
}

/* FAQ Category Header */
.faq-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 1.5rem;
}

.faq-category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-category-title i {
    font-size: 1.1rem;
}

/* FAQ Item */
.faq-item {
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #363636;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #fafafa;
}

.faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    flex-shrink: 0;
    color: #999;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer > * {
    padding: 0 1.5rem;
}

.faq-answer > *:first-child {
    padding-top: 0;
}

.faq-answer > *:last-child {
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: #4a4a4a;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 0.75rem 0 0.75rem 1.5rem;
    color: #4a4a4a;
    list-style-type: disc;
}

.faq-answer ol {
    margin: 0.75rem 0 0.75rem 1.5rem;
    color: #4a4a4a;
    list-style-type: decimal;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.faq-answer code {
    background-color: transparent;
    color: #ff3860;
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.faq-answer kbd {
    display: inline-block;
    padding: 0.2em 0.5em;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    font-size: 0.85em;
    font-weight: 600;
    color: #363636;
    background-color: #f5f5f5;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.faq-answer .table {
    margin: 1rem 0;
    font-size: 0.95rem;
}

.faq-answer .table kbd {
    font-size: 0.8em;
}

/* Responsive FAQ */
@media screen and (max-width: 768px) {
    .faq-nav {
        gap: 0.5rem;
    }

    .faq-nav-item {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-answer > * {
        padding: 0 1.25rem;
    }

    .faq-category-title {
        font-size: 1.1rem;
    }

    .faq-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .faq-global-controls {
        justify-content: flex-start;
        padding-top: 0.25rem;
    }
}

/* ==========================================
   Dark Mode Overrides
   ========================================== */

/* In dark mode, Bulma inverts text colors globally.
   These sections have white/light backgrounds that don't invert,
   so we need to keep the text dark for proper contrast. */
@media (prefers-color-scheme: dark) {
    /* Override Bulma CSS variables for box link hover */
    :root {
        --bulma-box-link-hover-border-color: #6cacff;
        --bulma-link-h: 213;
        --bulma-link-s: 100%;
        --bulma-link-l: 71%;
    }

    /* Native macOS card - white background needs dark text */
    .native-card .title,
    .native-card strong {
        color: #363636;
    }

    /* Pricing section - light background needs dark text */
    .pricing-section .title,
    .pricing-section strong {
        color: #363636;
    }

    /* Feature sections with light backgrounds need dark strong text */
    .feature-section.has-background-white-ter strong,
    .feature-section.has-background-white-ter .title {
        color: #363636;
    }

    /* Pricing page sections with light backgrounds need dark titles */
    .pricing-page .has-background-white-ter .title {
        color: #363636;
    }

    /* Solution section - light background */
    .solution-section .title {
        color: #363636;
    }

    /* Final CTA section */
    .final-cta .title {
        color: #363636;
    }

    /* General text color for light-background sections */
    .footer,
    .footer p,
    .pricing-section,
    .pricing-section p,
    .native-card,
    .native-card p,
    .solution-section,
    .solution-section p,
    .final-cta,
    .final-cta p,
    .feature-section.has-background-white-ter,
    .feature-section.has-background-white-ter p {
        color: #4a4a4a;
    }

    /* Links on light-background sections need darker color in dark mode */
    /* Exclude buttons so they keep their default styling */
    .footer a:not(.button),
    .pricing-section a:not(.button),
    .native-card a:not(.button),
    .solution-section a:not(.button),
    .final-cta a:not(.button),
    .feature-section.has-background-white-ter a:not(.button) {
        color: #3273dc;
    }

    /* Headings on dark backgrounds need more contrast */
    .docs .content h1,
    .docs .content h2,
    .docs .content h3,
    .docs .content h4,
    .docs .content h5,
    .docs .content h6 {
        color: #ccc;
    }

    /* Docs sidebar menu - needs lighter text in dark mode */
    .docs .menu-list a,
    .docs .menu-label,
    .docs .breadcrumb a,
    .docs .breadcrumb li.is-active a {
        color: #ccc;
    }

    .docs .menu-list a:hover,
    .docs .breadcrumb a:hover {
        color: #fff;
    }

    /* Docs search results - lighter text and links in dark mode */
    .search-results-count {
        color: #999;
    }

    .search-result .title a {
        color: #6cacff;
    }

    .search-result .title a:hover {
        color: #8fc1ff;
    }

    .search-match-context,
    .search-match-icon {
        color: #ccc;
    }

    /* Docs topic boxes - keep hover same color in dark mode */
    .docs-topic-box .title,
    .docs-topic-box:hover .title {
        color: #6cacff;
    }

    /* Search results - darker hover background in dark mode */
    .search-result:hover {
        background-color: #2a2a2a;
    }

    /* Feature sections with dark backgrounds - lighten text colors */
    /* Note: !important needed to override Bulma's !important on these classes */
    .feature-section:not(.has-background-white-ter) .has-text-grey-dark {
        color: #ccc !important;
    }

    .feature-section:not(.has-background-white-ter) .has-text-grey {
        color: #9a9a9a !important;
    }

    /* Keyboard shortcut tags - darker in dark mode */
    .feature-section:not(.has-background-white-ter) .tag.is-light {
        background-color: #3a3a3a;
        color: #ccc;
    }

    /* FAQ page dark mode overrides */
    .faq-nav-section {
        background: #2a2a2a;
        border-bottom-color: #444;
    }

    .faq-nav-item {
        background: #3a3a3a;
        color: #ccc;
        box-shadow: none;
    }

    .faq-nav-item:hover {
        background: #4a4a4a;
        color: white;
    }

    .faq-item {
        background: #2a2a2a;
        border-color: #444;
    }

    .faq-question {
        color: #e0e0e0;
    }

    .faq-question:hover {
        background-color: #333;
    }

    .faq-icon {
        color: #888;
    }

    .faq-answer p,
    .faq-answer ul,
    .faq-answer ol,
    .faq-answer li {
        color: #ccc;
    }

    .faq-answer strong {
        color: #e0e0e0;
    }

    .faq-answer kbd {
        background-color: #3a3a3a;
        border-color: #555;
        color: #e0e0e0;
    }

    .faq-category-header {
        border-bottom-color: #444;
    }

    .faq-category-title {
        color: #e0e0e0;
    }
}
