/* BookShelves Website Styles */

:root {
    --primary-color: #007AFF;
    --primary-dark: #005BBB;
    --secondary-color: #5856D6;
    --text-color: #1D1D1F;
    --text-secondary: #6E6E73;
    --bg-color: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --border-color: #D2D2D7;
    --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: rgba(255, 255, 255, 0.95);
    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 {
    font-size: 1.5rem;
}

.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: #f5f5f7;
    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-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;
}

/* 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-muted);
    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 */
@media (max-width: 1100px) 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;
    }
}

/* 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;
}

.download-badges-footer {
    justify-content: center;
    gap: 1rem;
    margin: 3rem 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: #f5f5f7;
    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 rgba(0, 0, 0, 0.15);
}

.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 rgba(0, 0, 0, 0.15);
    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: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.book-open-link {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: underline;
    margin-top: 0.75rem;
}

.book-open-link:hover {
    color: var(--link-color, #007aff);
}

.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-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

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

.book-cta .download-badges .badge-link img {
    height: 32px;
}

@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;
    }

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

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

/* Breadcrumbs */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    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 rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s ease;
}

.book-card:hover .book-card-cover img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.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 rgba(0, 0, 0, 0.12);
    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) {
    .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-muted);
    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;
    }
}

/* 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 rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s ease;
}

.author-book-item:hover img {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.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 rgba(0, 0, 0, 0.12);
    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 rgba(0, 0, 0, 0.3);
}

.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: rgba(0, 122, 255, 0.03);
}

/* 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: rgba(0, 122, 255, 0.03);
}

.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: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 16px;
    z-index: 1000;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.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: #6b7280;
    border-color: #d1d5db;
}

.cookie-btn-secondary:hover {
    background: #f9fafb;
    color: var(--text-color);
}

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

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

.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: #6b7280;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 4px;
}

.cookie-modal-close:hover {
    background: #f3f4f6;
    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: #d1d5db;
    transition: 0.2s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    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 rgba(0, 0, 0, 0.08);
    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;
}
