/* BookShelves Website Styles */

:root {
    --primary-color: #007AFF;
    --primary-dark: #005BBB;
    --secondary-color: #5856D6;
    --text-color: #1D1D1F;
    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --text-muted: #8E8E93;
    --bg-color: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --bg-translucent: rgba(255, 255, 255, 0.95);
    --border-color: #D2D2D7;
    --shadow-color: rgba(0, 0, 0, 0.15);
    --shadow-color-light: rgba(0, 0, 0, 0.12);
    --shadow-color-strong: rgba(0, 0, 0, 0.2);
    --shadow-color-subtle: rgba(0, 0, 0, 0.1);
    --overlay-color: rgba(0, 0, 0, 0.5);
    --hover-highlight: rgba(0, 122, 255, 0.03);
    --active-highlight: rgba(0, 122, 255, 0.08);
    --control-bg: #d1d5db;
    --control-fg: white;
    --control-text: #6b7280;
    --control-bg-hover: #f3f4f6;
    --control-bg-subtle: #f9fafb;
    --max-width: 1200px;
    --spacing: 1rem;
    --border-radius: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding: 2rem 0;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
    margin-top: 2.5rem;
}

h3 {
    font-size: 1.75rem;
    margin-top: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    background-color: var(--bg-translucent);
    backdrop-filter: saturate(180%) blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.navbar-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
}

.logo-text {
    font-size: 1.5625rem;
}

.navbar-menu {
    display: flex;
    gap: 1.28rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    background: var(--bg-secondary);
    color: var(--text-color);
    padding: 3rem 0 3rem;
    text-align: center;
}

.hero h1 {
    color: var(--text-color);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero .lead {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--text-secondary);
}

.hero-quote {
    margin-top: 1.75rem;
    margin-bottom: 0;
}

.hero-quote p {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.hero-quote-source {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.hero-quote-stars {
    color: #FF9500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Feedback page (fp-142n) — CTAs rendered inline inside the
   standard content-page article (no hero), matching the FAQ /
   guides / contact page conventions. Buttons are App Store-badge
   black to align with the download badges on the homepage rather
   than the unused Apple-system-blue default of .btn-primary. */
.feedback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}
.feedback-actions .btn-primary,
.feedback-actions .btn-primary:link,
.feedback-actions .btn-primary:visited {
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
}
.feedback-actions .btn-primary:hover {
    background-color: #1a1a1a;
    color: #fff;
    text-decoration: none;
}
.feedback-actions .btn-secondary,
.feedback-actions .btn-secondary:link,
.feedback-actions .btn-secondary:visited {
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
}
.feedback-actions .btn-secondary:hover {
    background-color: #000;
    color: #fff;
    text-decoration: none;
}
.feedback-userjot-note {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    margin-top: 2rem;
}
.feedback-userjot-note summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
}
/* Force the closed disclosure to truly hide its content. Modern
   Chromium uses content-visibility for details which leaves the
   inner paragraph laid-out (and visible to text scrapers / a11y
   trees) — explicit display:none is the only way to guarantee
   no UserJot mention above the fold when collapsed. */
.feedback-userjot-note:not([open]) > *:not(summary) {
    display: none;
}
.feedback-userjot-note p {
    margin: 0.75rem 0 0;
    line-height: 1.7;
}

/* Content */
.content {
    padding: 3rem 0;
}

.page {
    max-width: 900px;
}

.page-content {
    line-height: 1.8;
}

.page-content h2 {
    margin-top: 3rem;
}

.page-content h3 {
    margin-top: 2rem;
}

.page-content ul,
.page-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content code {
    background-color: var(--bg-secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.9em;
}

.page-content pre {
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin-bottom: 1rem;
}

.page-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-left: 0;
    color: var(--text-secondary);
    font-style: italic;
}

.page-meta {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.footer-content {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.footer-links-product a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-links-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
}

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

.footer-links .separator {
    color: var(--text-secondary);
    user-select: none;
    font-size: 0.8rem;
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0.25rem 0;
}

.copyright {
    color: var(--text-secondary);
}

.disclaimer {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* App Store Badge */
.app-store-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: black;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.app-store-badge:hover {
    background-color: #333;
    text-decoration: none;
}

/* Responsive - Tablet (covers iPad landscape ~1180-1194 CSS px) */
@media (max-width: 1279px) and (min-width: 769px) {
    .container {
        padding: 0 2.5rem;
    }

    .hero-screenshots {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-menu {
        gap: 0.64rem;
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .hero .lead {
        font-size: 1.25rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 4rem;
    margin: 3rem 0;
}

.feature-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--text-color);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-content {
    flex: 1;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

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

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--bg-secondary);
    padding: 4rem 0;
}

.testimonials-heading {
    text-align: center;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 2.5rem;
}

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

.testimonial-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.testimonial-stars {
    color: #FF9500;
    font-size: 1rem;
    letter-spacing: 1px;
}

.testimonial-quote {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 0;
    flex: 1;
}

.testimonial-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.testimonial-flag {
    margin-right: 0.25rem;
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-section {
        padding: 3rem 0;
    }
}

/* Home Page Sections */
.home-sections {
    max-width: 780px;
    margin: 0 auto;
}

.home-sections h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.home-sections p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.home-sections a {
    font-weight: 500;
}

/* Download Badges */
.download-badges {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.download-badges-main {
    justify-content: center;
    gap: 1.5rem;
}

.download-badges-hero {
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.footer-cta {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 3rem 0 0 0;
}

.download-badges-footer {
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0 0 0;
}

.badge-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.badge-link:hover {
    transform: scale(1.05);
}

.badge-link img {
    display: block;
    width: auto;
}

.download-badges:not(.download-badges-hero):not(.download-badges-footer) .badge-link img {
    height: 50px;
}

.download-badges-footer .badge-link img {
    height: 60px;
}

@media (max-width: 768px) {
    .download-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* Social Icon Links */
.email-link,
.bluesky-link,
.mastodon-link,
.instagram-link,
.pinterest-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    transition: all 0.2s ease;
}

.email-link svg,
.bluesky-link svg,
.mastodon-link svg,
.instagram-link svg,
.pinterest-link svg {
    display: block;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.email-link:hover svg {
    color: var(--primary-color);
}

.bluesky-link:hover svg {
    color: #1185fe;
}

.mastodon-link:hover svg {
    color: #6364ff;
}

.instagram-link:hover svg {
    color: #E1306C;
}

.pinterest-link:hover svg {
    color: #E60023;
}

.email-link:hover,
.bluesky-link:hover,
.mastodon-link:hover,
.instagram-link:hover,
.pinterest-link:hover {
    text-decoration: none;
}

/* Hero Screenshots Gallery */
.hero-screenshots {
    background: var(--bg-secondary);
    padding: 2rem 1rem 4rem;
}

.hero-screenshots .screenshots-gallery {
    max-width: 1200px;
    margin: 0 auto;
}

.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: center;
}

.screenshots-gallery img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    transition: transform 0.2s ease;
}

.screenshots-gallery img:hover {
    transform: scale(1.02);
}

@media (max-width: 1024px) {
    .screenshots-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshots-gallery img:nth-child(3) {
        display: none;
    }
}

@media (max-width: 640px) {
    .screenshots-gallery {
        grid-template-columns: 1fr;
    }

    .screenshots-gallery img:nth-child(2),
    .screenshots-gallery img:nth-child(3) {
        display: none;
    }

    .hero-screenshots {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Book Landing Page */
.book-landing {
    max-width: 900px;
}

.book-hero-section {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.book-cover {
    flex-shrink: 0;
    width: 250px;
}

.book-cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.book-cover-placeholder {
    width: 100%;
    aspect-ratio: 2 / 3;
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
    gap: 0.75rem;
}

.book-cover-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.book-cover-author {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 400;
}

.book-info {
    flex: 1;
    min-width: 0;
}

.book-info h1 {
    font-size: 2.25rem;
    margin-bottom: 0.25rem;
}

.book-author {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.book-author a {
    color: var(--text-secondary);
    text-decoration: none;
}

.book-author a:hover {
    color: var(--primary-color);
}

.book-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.book-subject-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-secondary);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.book-description {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.book-description p {
    color: var(--text-color);
}

.book-cta {
    margin-top: 2.5rem;
    padding: 2.5rem 2.5rem;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    text-align: center;
}

.book-cta-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.book-cta-divider::before,
.book-cta-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.book-cta .download-badges {
    margin: 0;
    justify-content: center;
}

.book-cta .download-badges:not(.download-badges-hero):not(.download-badges-footer) .badge-link img {
    height: 56px;
}

@media (max-width: 768px) {
    .book-hero-section {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .book-cover {
        width: 200px;
    }

    .book-info {
        text-align: center;
    }

    .book-info h1 {
        font-size: 1.75rem;
    }

    .book-subjects {
        justify-content: center;
    }
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

/* Books Listing Page */
.books-listing {
    max-width: 1000px;
    margin: 0 auto;
}

.books-listing h1 {
    margin-bottom: 0.5rem;
}

.books-listing-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

.author-bio {
    margin-bottom: 2rem;
    max-width: 700px;
}

.author-bio-dates {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.author-bio-text {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.books-browse-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.books-browse-links-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.book-nav + .books-browse-links-footer {
    margin-top: 1.5rem;
}

.books-browse-links a {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: var(--bg-secondary);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.books-browse-links a:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 2rem 1.5rem;
    margin-bottom: 3rem;
}

.book-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s ease;
}

.book-card:hover {
    transform: translateY(-4px);
    text-decoration: none;
}

.book-card-cover {
    margin-bottom: 0.75rem;
}

.book-card-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 12px var(--shadow-color-light);
    transition: box-shadow 0.2s ease;
}

.book-card:hover .book-card-cover img {
    box-shadow: 0 4px 20px var(--shadow-color-strong);
}

.book-card-cover-placeholder {
    width: 100%;
    aspect-ratio: 2 / 3;
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    box-shadow: 0 2px 12px var(--shadow-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.book-card-cover-placeholder span {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.book-card-info h2 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.2rem 0;
    line-height: 1.3;
    color: var(--text-color);
}

.book-card-author {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.books-listing-cta {
    text-align: center;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
}

.books-listing-cta p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 0.75rem;
    }
}

/* Book Navigation (prev/next) — full width below hero */
.book-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.book-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--text-color);
    max-width: 45%;
}

.book-nav-link:hover {
    text-decoration: none;
}

.book-nav-link:hover .book-nav-title {
    color: var(--primary-color);
}

.book-nav-next {
    text-align: right;
    margin-left: auto;
}

.book-nav-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.book-nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.book-nav-placeholder {
    flex: 1;
}

@media (max-width: 768px) {
    .book-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .book-nav-link {
        max-width: 100%;
    }

    .book-nav-next {
        text-align: left;
    }
}

/* Book Page - Feature Highlights */
.book-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 2.5rem 0;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: 12px;
}

.book-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

svg.book-feature-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-top: 1px;
}

.book-feature strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.book-feature span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Book Page - CTA Headline */
.book-cta-headline {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.book-cta-subtext {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Book Page - Related Books */
.book-related-section {
    margin: 2.5rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.book-related-section h2 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.book-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem 1.25rem;
}

.book-related-grid .book-card-info h3 {
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}

.book-related-grid .book-card-author {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.book-related-more {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.book-related-more:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .book-features {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .book-related-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 1.25rem 0.75rem;
    }
}

/* Authors Page */
.authors-letter-index {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.authors-letter-index a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 6px;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.authors-letter-index a:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.authors-letter-group h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-color);
}

.author-entry {
    margin-bottom: 1.5rem;
}

.author-name {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.author-name a {
    color: var(--text-color);
    text-decoration: none;
}

.author-name a:hover {
    color: var(--primary-color);
}

.author-books {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.author-book-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    width: 100px;
    transition: transform 0.2s ease;
}

.author-book-item:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.author-book-item img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px var(--shadow-color-light);
    transition: box-shadow 0.2s ease;
}

.author-book-item:hover img {
    box-shadow: 0 4px 16px var(--shadow-color-strong);
}

.author-book-placeholder {
    width: 100px;
    height: 150px;
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    box-shadow: 0 2px 8px var(--shadow-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    text-align: center;
}

.author-book-placeholder span {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.author-book-title {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .author-book-item {
        width: 80px;
    }

    .author-book-item img {
        width: 80px;
        height: 120px;
    }

    .author-book-placeholder {
        width: 80px;
        height: 120px;
    }
}

/* Comparison / Alternative Pages */
.hero-comparison {
    padding: 3rem 0 2.5rem;
}

.comparison-page {
    max-width: 900px;
}

.comparison-page .page-content h3 {
    margin-top: 2rem;
}

.comparison-page .page-content ul,
.comparison-page .page-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.comparison-page .page-content li {
    margin-bottom: 0.5rem;
}

.comparison-page .page-content p {
    line-height: 1.8;
}

.comparison-hero-image {
    width: 100%;
    border-radius: var(--border-radius);
    margin: 1rem 0 2rem;
    box-shadow: 0 4px 20px var(--shadow-color-strong);
}

.comparison-page .page-content figure {
    margin: 0;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.comparison-table thead th {
    background-color: var(--bg-secondary);
    padding: 0.875rem 1.25rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.comparison-table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.comparison-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.comparison-table tbody td {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.comparison-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.comparison-table tbody tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

.comparison-table tbody tr:hover {
    background-color: var(--hover-highlight);
}

/* Comparison CTA */
.comparison-cta {
    text-align: center;
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.comparison-cta h2 {
    margin-top: 0;
}

.comparison-cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.comparison-cta .download-badges {
    justify-content: center;
}

/* Trademark Notice */
.comparison-trademark {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.comparison-trademark p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
    line-height: 1.6;
}

/* Alternatives List Page */
.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.alternative-card {
    display: block;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s ease;
}

.alternative-card:hover {
    background-color: var(--bg-secondary);
    text-decoration: none;
}

.alternative-card h2 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

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

.alternative-card-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .alternatives-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 0.625rem 0.75rem;
    }
}

/* Guide Featured Card */
.guide-featured {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s ease;
}

.guide-featured:hover {
    background-color: var(--bg-secondary);
    text-decoration: none;
}

.guide-featured-image {
    flex: 0 0 45%;
    overflow: hidden;
}

.guide-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-featured-content {
    flex: 1;
    padding: 2rem 2rem 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.guide-featured-content h2 {
    font-size: 1.5rem;
    margin: 0 0 0.75rem 0;
    color: var(--text-color);
}

.guide-featured-summary {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.guide-featured-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Guide Card Image */
.guide-card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Guides & Support Grid */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.guide-card {
    display: block;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s ease;
}

.guide-card:hover {
    background-color: var(--bg-secondary);
    text-decoration: none;
}

.guide-card h2 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

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

.guide-card-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Guide Single Page */
.guide-page {
    max-width: 900px;
}

.hero-guide {
    padding: 3rem 0 2.5rem;
}

.guide-page .page-content h3 {
    margin-top: 2rem;
}

.guide-page .page-content ul,
.guide-page .page-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.guide-page .page-content li {
    margin-bottom: 0.5rem;
}

.guide-page .page-content p {
    line-height: 1.8;
}

.guide-page .page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.guide-page .page-content thead th {
    background-color: var(--bg-secondary);
    padding: 0.875rem 1.25rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.guide-page .page-content thead th:first-child {
    border-radius: 8px 0 0 0;
}

.guide-page .page-content thead th:last-child {
    border-radius: 0 8px 0 0;
}

.guide-page .page-content tbody td {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.guide-page .page-content tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.guide-page .page-content tbody tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

.guide-page .page-content tbody tr:hover {
    background-color: var(--hover-highlight);
}

.guide-cta {
    text-align: center;
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.guide-cta h2 {
    margin-top: 0;
}

.guide-cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.guide-cta .download-badges {
    justify-content: center;
}

.guide-lastmod {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2rem;
    margin-bottom: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.guide-page .guide-hero-image {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.guide-page .page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.guide-page .page-content figure {
    margin: 2rem 0;
    text-align: center;
}

.guide-page .page-content figure img {
    margin: 0;
}

.guide-page .page-content figcaption {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

.book-entry {
    margin-bottom: 2.5rem;
}

.book-entry-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.book-entry-title a {
    color: var(--text-color);
    text-decoration: none;
}

.book-entry-title a:hover {
    color: var(--primary-color);
}

.book-entry-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 0 1.25rem 0 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.book-cover-thumb {
    width: 90px;
    min-width: 90px;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.book-entry-card p {
    margin: 0;
    padding: 1rem 0;
    line-height: 1.65;
}

.book-entry a {
    color: var(--text-color);
    text-decoration: none;
}

.book-entry a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .guide-featured {
        flex-direction: column;
        gap: 0;
    }

    .guide-featured-image {
        flex: none;
        height: 200px;
    }

    .guide-featured-content {
        padding: 1.5rem;
    }

    .guide-featured-content h2 {
        font-size: 1.25rem;
    }

    .guides-grid {
        grid-template-columns: 1fr;
    }

    .guide-page .page-content table {
        font-size: 0.85rem;
    }

    .guide-page .page-content thead th,
    .guide-page .page-content tbody td {
        padding: 0.625rem 0.75rem;
    }
}

/* Feature Badge (Pro) */
.badge-pro {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    vertical-align: middle;
    margin-left: 0.5rem;
    position: relative;
    top: -1px;
    background-color: #EDE7F6;
    color: #5856D6;
}

/* Pricing line in hero */
.hero-pricing {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    margin-bottom: 0;
    letter-spacing: 0.01em;
}

.hero-pricing a {
    color: inherit;
    text-decoration: none;
}

.hero-pricing a:hover {
    color: var(--text-color);
}

.hero-pricing .separator {
    margin: 0 0.5rem;
    opacity: 0.4;
}

/* FAQ Page */
.faq-page {
    max-width: 740px;
}

.faq-item {
    margin-bottom: 2.5rem;
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

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

/* Features Page */
.features-page {
    padding: 1rem 0 0;
}

.features-section {
    margin-bottom: 5rem;
}

.features-section h2 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 0;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 4rem;
    margin: 1.5rem 0 0;
}

.feature-row {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.feature-row .feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-row .feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--text-color);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 1.125rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.feature-text p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .features-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.features-cta {
    text-align: center;
    padding: 3rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.features-cta h2 {
    margin-top: 0;
}

.features-cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.features-cta .download-badges {
    justify-content: center;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-translucent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 16px;
    z-index: 1000;
    box-shadow: 0 -4px 6px -1px var(--shadow-color-subtle);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
}

.cookie-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

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

.cookie-btn-secondary {
    background: transparent;
    color: var(--control-text);
    border-color: var(--control-bg);
}

.cookie-btn-secondary:hover {
    background: var(--control-bg-subtle);
    color: var(--text-color);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-color);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-content {
    background: var(--bg-color);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px var(--shadow-color-subtle);
}

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

.cookie-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--control-text);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 4px;
}

.cookie-modal-close:hover {
    background: var(--control-bg-hover);
    color: var(--text-color);
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-category {
    margin-bottom: 24px;
}

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

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cookie-category h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.cookie-category p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--control-bg);
    transition: 0.2s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--control-fg);
    transition: 0.2s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: var(--primary-color);
}

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

input:disabled + .cookie-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border-color);
}

.cookie-modal-footer .cookie-btn {
    width: 100%;
    justify-content: center;
    display: flex;
}

/* Cookie Banner Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cookie-banner-actions {
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }

    .cookie-modal {
        padding: 10px;
    }

    .cookie-category-header {
        gap: 12px;
    }
}

/* Press Kit Page */
.press-page {
    max-width: 740px;
}

.press-page h2 {
    font-size: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
}

.press-page h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.press-page p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.press-page blockquote {
    border-left: 3px solid var(--border-color);
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    background-color: var(--bg-secondary);
    border-radius: 0 8px 8px 0;
}

.press-page blockquote p {
    color: var(--text-color);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.press-page ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.press-page li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.4rem;
}

.press-page li strong {
    color: var(--text-color);
}

.press-factsheet {
    margin: 1rem 0 2rem;
}

.press-factsheet table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.press-factsheet td {
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.press-factsheet td:first-child {
    width: 140px;
    white-space: nowrap;
}

.press-downloads {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.press-download-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.press-download-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px var(--shadow-color-subtle);
    text-decoration: none;
    transform: translateY(-2px);
}

.press-download-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.press-download-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--text-color);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.press-download-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.press-download-info strong {
    font-size: 1rem;
    font-weight: 600;
}

.press-download-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .press-downloads {
        grid-template-columns: 1fr;
    }
}

/* Contact Page */
.contact-page {
    max-width: 740px;
}

.contact-page h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.contact-page p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Release Notes */
.release-notes {
    max-width: 740px;
}

.release-version {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.release-version:first-child {
    padding-top: 0;
}

.release-version:last-child {
    border-bottom: none;
}

.release-notes .release-version h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    padding-bottom: 0;
    border-bottom: none;
    color: var(--text-color);
}

.release-notes .page-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.release-notes .page-content li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.release-notes .page-content li:last-child {
    margin-bottom: 0;
}

.release-notes .page-content li strong {
    color: var(--text-color);
}

.release-notes .page-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-color);
}

.release-notes .page-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Smart Banner (custom, for non-Safari browsers) */
.smartbanner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 12px 0 6px;
    background: var(--bg-primary, #f8f8f8);
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

.smartbanner__exit {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: #8e8e93;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 28px;
    text-align: center;
}

.smartbanner__exit:hover {
    color: var(--text-primary, #333);
}

.smartbanner__icon {
    flex-shrink: 0;
    margin: 0 10px 0 4px;
}

.smartbanner__icon img {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    box-shadow: 0 0 0 0.5px var(--shadow-color-subtle);
}

.smartbanner__info {
    flex: 1;
    min-width: 0;
    margin-right: 10px;
    line-height: 1.25;
}

.smartbanner__info__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #000);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smartbanner__info__author {
    font-size: 11px;
    color: #8e8e93;
    margin-top: 1px;
}

.smartbanner__info__price {
    font-size: 10px;
    color: #8e8e93;
    margin-top: 1px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.smartbanner__button {
    flex-shrink: 0;
    display: inline-block;
    min-width: 60px;
    padding: 5px 14px;
    border-radius: 100px;
    background: #007aff;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.smartbanner__button:hover {
    background: #0066d6;
    color: #fff;
    text-decoration: none;
}

.smartbanner__button:active {
    background: #004eb5;
}

.smartbanner-visible body {
    margin-top: 64px;
}

.smartbanner-visible .site-header {
    top: 64px;
}

/* Documentation Pages (/docs/) */
/* Docs pages are wider than the rest of the site (1440px against --max-width's 1200px). The extra
   room goes to the sidebar, "On this page" and the gaps; the text column keeps its reading width.
   The header widens with them so the logo stays in line with the sidebar. */
.docs-page {
    --docs-max-width: 1440px;
}

.docs-page .site-header .container {
    max-width: var(--docs-max-width);
}

.docs-layout {
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
    max-width: var(--docs-max-width, var(--max-width));
    margin: 0 auto;
    padding: 2rem var(--spacing);
    min-height: calc(100vh - 200px);
}

.docs-sidebar {
    width: 272px;
    flex-shrink: 0;
    position: sticky;
    top: 96px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 0.25rem;
}

.docs-sidebar-home {
    display: block;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    border-radius: 6px;
    text-decoration: none;
}

.docs-sidebar-home:hover {
    background-color: var(--bg-secondary);
    text-decoration: none;
}

.docs-sidebar-home.active {
    color: var(--primary-dark);
    background-color: var(--active-highlight);
}

.docs-sidebar-section {
    margin-bottom: 0.5rem;
}

.docs-sidebar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.docs-sidebar-title::-webkit-details-marker {
    display: none;
}

.docs-sidebar-title::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
    margin-right: 0.15rem;
}

.docs-sidebar-section[open] > .docs-sidebar-title::after {
    transform: rotate(45deg);
}

.docs-sidebar-title:hover {
    background-color: var(--bg-secondary);
}

.docs-sidebar-links {
    list-style: none;
    margin: 0.125rem 0 0.5rem 0.75rem;
    padding: 0 0 0 0.5rem;
    border-left: 1px solid var(--border-color);
}

.docs-sidebar-links li {
    margin: 0;
}

.docs-sidebar-links a {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
    line-height: 1.4;
}

.docs-sidebar-links a:hover {
    color: var(--text-color);
    background-color: var(--bg-secondary);
    text-decoration: none;
}

.docs-sidebar-links a.active {
    color: var(--primary-dark);
    background-color: var(--active-highlight);
    font-weight: 500;
}

.docs-content {
    flex: 1;
    min-width: 0;
    /* Docs use a documentation type scale, smaller than the marketing pages: 16px text, 700px
       column, about 96 characters per line (measured 2026-09-23). */
    max-width: 700px;
    font-size: 1rem;
}

.docs-content .page-content {
    line-height: 1.7;
}

.docs-content h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.docs-content .page-content h2,
.docs-overview h2 {
    font-size: 1.5rem;
    line-height: 1.3;
}

.docs-content .page-content h2 {
    margin-top: 2.5rem;
}

.docs-content .page-content h3 {
    font-size: 1.2rem;
    line-height: 1.35;
    margin-top: 1.75rem;
}

.docs-content .description {
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.docs-content .page-content h2,
.docs-content .page-content h3 {
    scroll-margin-top: 100px;
}

/* The App Store smart banner pushes the sticky header down 64px (.smartbanner-visible .site-header). */
@media (min-width: 769px) {
    .smartbanner-visible .docs-sidebar,
    .smartbanner-visible .docs-toc {
        top: 160px;
        max-height: calc(100vh - 170px);
    }
}

.smartbanner-visible .docs-content .page-content h2,
.smartbanner-visible .docs-content .page-content h3 {
    scroll-margin-top: 164px;
}

/* Tables (layouts/docs/_markup/render-table.html wraps each one in .docs-table) */
.docs-table {
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.docs-table table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.5;
}

.docs-table th {
    padding: 0.6rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.docs-table td {
    padding: 0.7rem 1rem;
    vertical-align: top;
    border-top: 1px solid var(--border-color);
}

.docs-table tbody tr:first-child td {
    border-top: none;
}

.docs-table td:first-child {
    font-weight: 500;
}

.docs-table td kbd {
    white-space: nowrap;
}

/* Cover badges drawn by the cover-badge shortcode */
.cover-badge {
    display: block;
    border-radius: 3px;
}

.docs-table td:has(> .cover-badge) {
    width: 1%;
    vertical-align: middle;
}

.docs-content .page-content kbd {
    display: inline-block;
    min-width: 1.4em;
    padding: 0.05rem 0.4rem;
    font-family: inherit;
    font-size: 0.85em;
    text-align: center;
    color: var(--text-color);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-bottom-width: 2px;
    border-radius: 5px;
}

/* Breadcrumbs */
.docs-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.docs-breadcrumbs a {
    color: var(--text-secondary);
}

.docs-breadcrumbs a:hover {
    color: var(--primary-color);
}

/* Notes ("> [!NOTE]" in docs Markdown, layouts/docs/_markup/render-blockquote.html) render as
   ordinary paragraphs with a bold "Note:" lead-in, so they need no styles of their own. */

/* "On this page" */
.docs-toc {
    width: 232px;
    flex-shrink: 0;
    position: sticky;
    top: 96px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.docs-toc-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.docs-toc #TableOfContents > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--border-color);
}

.docs-toc #TableOfContents li {
    margin: 0;
}

.docs-toc #TableOfContents a {
    display: block;
    padding: 0.25rem 0 0.25rem 0.75rem;
    margin-left: -1px;
    border-left: 2px solid transparent;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.docs-toc #TableOfContents a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.docs-toc #TableOfContents a.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 500;
}

.docs-toc #TableOfContents ul ul {
    list-style: none;
    padding: 0;
    border-left: none;
}

.docs-toc #TableOfContents ul ul a {
    padding-left: 1.5rem;
    font-size: 0.775rem;
}

/* Search */
.docs-search {
    position: relative;
    margin-bottom: 1rem;
}

.docs-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.docs-search-field {
    position: relative;
}

.docs-search-icon {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.docs-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.75rem 0.55rem 2.1rem;
    font: inherit;
    font-size: 0.9rem;
    color: var(--text-color);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    -webkit-appearance: none;
    appearance: none;
}

.docs-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--active-highlight);
}

.docs-search-results {
    position: absolute;
    z-index: 50;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    min-width: 280px;
    max-height: 60vh;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 24px var(--shadow-color);
    text-align: left;
}

.docs-search-results li {
    margin: 0;
}

.docs-search-results a {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
}

.docs-search-results a:hover,
.docs-search-results li[aria-selected="true"] a {
    background-color: var(--active-highlight);
    text-decoration: none;
}

.docs-search-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.docs-search-section {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.docs-search-snippet {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.docs-search-empty {
    padding: 0.6rem 0.65rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Platform pills */
.docs-pill {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.1rem 0.5rem;
    border-radius: 100px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    vertical-align: baseline;
}

.docs-pill-macos {
    background-color: #E8E8ED;
    color: #1D1D1F;
}

.docs-pill-ios {
    background-color: #E3F2FD;
    color: #1565C0;
}

.docs-pill-ipados {
    background-color: #EDE7F6;
    color: #5856D6;
}

.docs-pill-android {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.docs-pill-windows {
    background-color: #E3F2FD;
    color: #0078D4;
}

/* Platform pills sit on their own line under the article title. */
.docs-pills {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin: 0 0 1.25rem 0;
}

.docs-pills-inline {
    display: inline-flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Docs prev/next navigation */
.docs-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 3rem;
}

.docs-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    max-width: 48%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: border-color 0.15s ease;
}

.docs-nav-link:hover {
    border-color: var(--primary-color);
    text-decoration: none;
}

.docs-nav-link:hover .docs-nav-title {
    color: var(--primary-color);
}

.docs-nav-next {
    text-align: right;
    margin-left: auto;
}

.docs-nav-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.docs-nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.docs-nav-placeholder {
    flex: 1;
}

.docs-footer-meta {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.docs-lastmod,
.docs-help {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
}

/* Docs home (/docs/): section overview in the article layout */
.docs-overview h2 {
    scroll-margin-top: 100px;
    margin-top: 2.5rem;
    margin-bottom: 0.25rem;
}

.smartbanner-visible .docs-overview h2 {
    scroll-margin-top: 164px;
}

.docs-overview-section:first-child h2 {
    margin-top: 2rem;
}

.docs-section-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}

.docs-overview-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.docs-overview-list li {
    margin: 0 0 0.9rem 0;
}

.docs-overview-list a {
    font-weight: 500;
}

.docs-overview-desc {
    margin: 0.15rem 0 0 0;
    font-size: 0.925rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Mobile sidebar toggle */
.docs-sidebar-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    margin-bottom: 1rem;
    width: 100%;
}

/* "On this page" gives way first, so the text column keeps its width on smaller laptops. */
@media (max-width: 1320px) {
    .docs-toc {
        display: none;
    }

    .docs-layout {
        justify-content: flex-start;
    }
}

/* Match the header's side padding (.container) so the sidebar lines up with the logo. */
@media (max-width: 1279px) and (min-width: 769px) {
    .docs-layout {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media (max-width: 768px) {
    .docs-layout {
        flex-direction: column;
        gap: 0;
        padding: 1rem 1.5rem 2rem;
    }

    .docs-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 1rem;
        padding-bottom: 0.25rem;
        padding-right: 0;
    }

    .docs-sidebar-toggle {
        display: flex;
    }

    .docs-sidebar-nav {
        display: none;
    }

    .docs-sidebar-nav.open {
        display: block;
        padding-bottom: 0.75rem;
    }

    .docs-content {
        max-width: 100%;
    }

    .docs-content h1 {
        font-size: 1.9rem;
    }

    .docs-nav {
        flex-direction: column;
        gap: 0.75rem;
    }

    .docs-nav-link {
        max-width: 100%;
    }

    .docs-nav-next {
        text-align: left;
    }
}

/* Dark Mode - system preference (no explicit toggle set) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary-color: #0A84FF;
        --primary-dark: #409CFF;
        --secondary-color: #7D7AFF;
        --text-color: #F5F5F7;
        --text-primary: #F5F5F7;
        --text-secondary: #98989D;
        --text-muted: #636366;
        --bg-color: #1C1C1E;
        --bg-secondary: #2C2C2E;
        --bg-translucent: rgba(28, 28, 30, 0.95);
        --border-color: #38383A;
        --shadow-color: rgba(0, 0, 0, 0.35);
        --shadow-color-light: rgba(0, 0, 0, 0.3);
        --shadow-color-strong: rgba(0, 0, 0, 0.5);
        --shadow-color-subtle: rgba(0, 0, 0, 0.25);
        --overlay-color: rgba(0, 0, 0, 0.7);
        --hover-highlight: rgba(10, 132, 255, 0.08);
        --active-highlight: rgba(10, 132, 255, 0.15);
        --control-bg: #48484A;
        --control-fg: #F5F5F7;
        --control-text: #98989D;
        --control-bg-hover: #3A3A3C;
        --control-bg-subtle: #2C2C2E;
    }

    :root:not([data-theme="light"]) .smartbanner { background: #2C2C2E; }
    :root:not([data-theme="light"]) .smartbanner__exit { color: #98989D; }
    :root:not([data-theme="light"]) .smartbanner__info__author,
    :root:not([data-theme="light"]) .smartbanner__info__price { color: #98989D; }
    :root:not([data-theme="light"]) .smartbanner__button { background: #0A84FF; }
    :root:not([data-theme="light"]) .smartbanner__button:hover { background: #409CFF; }
    :root:not([data-theme="light"]) .smartbanner__button:active { background: #0A84FF; }
    :root:not([data-theme="light"]) .badge-pro { background-color: #312C4A; color: #7D7AFF; }
    :root:not([data-theme="light"]) .docs-pill-macos { background-color: #38383A; color: #E8E8ED; }
    :root:not([data-theme="light"]) .docs-pill-ios { background-color: #1A3A5C; color: #64B5F6; }
    :root:not([data-theme="light"]) .docs-pill-ipados { background-color: #2D2654; color: #B39DDB; }
    :root:not([data-theme="light"]) .docs-pill-android { background-color: #1B3A1F; color: #81C784; }
    :root:not([data-theme="light"]) .docs-pill-windows { background-color: #1A3A5C; color: #64B5F6; }
    :root:not([data-theme="light"]) .feedback-actions .btn-primary,
    :root:not([data-theme="light"]) .feedback-actions .btn-primary:link,
    :root:not([data-theme="light"]) .feedback-actions .btn-primary:visited { background-color: #F5F5F7; color: #1C1C1E; border-color: #F5F5F7; }
    :root:not([data-theme="light"]) .feedback-actions .btn-primary:hover { background-color: #E5E5E7; }
    :root:not([data-theme="light"]) .feedback-actions .btn-secondary,
    :root:not([data-theme="light"]) .feedback-actions .btn-secondary:link,
    :root:not([data-theme="light"]) .feedback-actions .btn-secondary:visited { color: #F5F5F7; border-color: #F5F5F7; }
    :root:not([data-theme="light"]) .feedback-actions .btn-secondary:hover { background-color: #F5F5F7; color: #1C1C1E; }
}

/* Dark Mode - explicit toggle */
:root[data-theme="dark"] {
    --primary-color: #0A84FF;
    --primary-dark: #409CFF;
    --secondary-color: #7D7AFF;
    --text-color: #F5F5F7;
    --text-primary: #F5F5F7;
    --text-secondary: #98989D;
    --text-muted: #636366;
    --bg-color: #1C1C1E;
    --bg-secondary: #2C2C2E;
    --bg-translucent: rgba(28, 28, 30, 0.95);
    --border-color: #38383A;
    --shadow-color: rgba(0, 0, 0, 0.35);
    --shadow-color-light: rgba(0, 0, 0, 0.3);
    --shadow-color-strong: rgba(0, 0, 0, 0.5);
    --shadow-color-subtle: rgba(0, 0, 0, 0.25);
    --overlay-color: rgba(0, 0, 0, 0.7);
    --hover-highlight: rgba(10, 132, 255, 0.08);
    --active-highlight: rgba(10, 132, 255, 0.15);
    --control-bg: #48484A;
    --control-fg: #F5F5F7;
    --control-text: #98989D;
    --control-bg-hover: #3A3A3C;
    --control-bg-subtle: #2C2C2E;
}

[data-theme="dark"] .smartbanner { background: #2C2C2E; }
[data-theme="dark"] .smartbanner__exit { color: #98989D; }
[data-theme="dark"] .smartbanner__info__author,
[data-theme="dark"] .smartbanner__info__price { color: #98989D; }
[data-theme="dark"] .smartbanner__button { background: #0A84FF; }
[data-theme="dark"] .smartbanner__button:hover { background: #409CFF; }
[data-theme="dark"] .smartbanner__button:active { background: #0A84FF; }
[data-theme="dark"] .badge-pro { background-color: #312C4A; color: #7D7AFF; }
[data-theme="dark"] .docs-pill-macos { background-color: #38383A; color: #E8E8ED; }
[data-theme="dark"] .docs-pill-ios { background-color: #1A3A5C; color: #64B5F6; }
[data-theme="dark"] .docs-pill-ipados { background-color: #2D2654; color: #B39DDB; }
[data-theme="dark"] .docs-pill-android { background-color: #1B3A1F; color: #81C784; }
[data-theme="dark"] .docs-pill-windows { background-color: #1A3A5C; color: #64B5F6; }
[data-theme="dark"] .feedback-actions .btn-primary,
[data-theme="dark"] .feedback-actions .btn-primary:link,
[data-theme="dark"] .feedback-actions .btn-primary:visited { background-color: #F5F5F7; color: #1C1C1E; border-color: #F5F5F7; }
[data-theme="dark"] .feedback-actions .btn-primary:hover { background-color: #E5E5E7; }
[data-theme="dark"] .feedback-actions .btn-secondary,
[data-theme="dark"] .feedback-actions .btn-secondary:link,
[data-theme="dark"] .feedback-actions .btn-secondary:visited { color: #F5F5F7; border-color: #F5F5F7; }
[data-theme="dark"] .feedback-actions .btn-secondary:hover { background-color: #F5F5F7; color: #1C1C1E; }

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
