/* ================================================
   Specimen Website - Elegant Typography Theme
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
    /* Warm Color Palette - Inspired by Logo */
    --color-primary: #5c2626;          /* Deep burgundy from logo */
    --color-primary-dark: #421616;      /* Darker burgundy */
    --color-primary-light: #7a3d3d;     /* Lighter burgundy */
    --color-secondary: #2d2420;         /* Warm charcoal */
    
    --color-text: #3d3330;              /* Warm dark brown */
    --color-text-muted: #6d5d56;        /* Muted warm brown */
    --color-text-light: #9a8a82;        /* Light warm brown */
    
    --color-bg: #faf8f5;                /* Warm off-white */
    --color-bg-cream: #f4efe5;          /* Cream from logo */
    --color-bg-warm: #f0ebe3;           /* Slightly darker cream */
    --color-bg-dark: #2d2420;           /* Warm dark */
    
    --color-border: #e5ddd4;            /* Warm border */
    --color-border-light: #efe9e2;      /* Light border */
    
    --color-accent-gold: #c4a574;       /* Elegant gold accent */
    --color-success: #5a7a5a;           /* Muted green */
    --color-warning: #b8860b;           /* Warm gold */
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
    --font-sans: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows - Warm tinted */
    --shadow-sm: 0 1px 2px 0 rgba(45, 36, 32, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(45, 36, 32, 0.08), 0 2px 4px -2px rgba(45, 36, 32, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(45, 36, 32, 0.08), 0 4px 6px -4px rgba(45, 36, 32, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(45, 36, 32, 0.1), 0 8px 10px -6px rgba(45, 36, 32, 0.05);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ================================================
   Reset & Base Styles
   ================================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

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

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

/* Elegant headings with serif font */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.2;
    font-weight: 600;
    color: var(--color-secondary);
    letter-spacing: -0.01em;
}

h1 { 
    font-size: 3.5rem; 
    font-weight: 500;
}
h2 { 
    font-size: 2.5rem; 
    font-weight: 500;
}
h3 { 
    font-size: 1.5rem; 
    font-weight: 600;
}
h4 { 
    font-size: 1.25rem; 
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-md);
}

ul, ol {
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: var(--spacing-sm);
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--color-bg-warm);
    padding: 0.125em 0.5em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

kbd {
    font-family: var(--font-mono);
    font-size: 0.75em;
    background: var(--color-bg-cream);
    padding: 0.25em 0.5em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 0 var(--color-border);
}

/* ================================================
   Layout
   ================================================ */

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

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-header h2 {
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Elegant divider */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--spacing-2xl) 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
}

.divider-ornament {
    padding: 0 var(--spacing-lg);
    color: var(--color-primary);
    font-size: 1.25rem;
}

/* ================================================
   Navigation
   ================================================ */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--color-secondary);
    letter-spacing: -0.02em;
}

.nav-logo:hover {
    color: var(--color-secondary);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-links a {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

.nav-cta {
    background: var(--color-primary);
    color: var(--color-bg-cream) !important;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.nav-cta:hover {
    background: var(--color-primary-dark);
    color: white !important;
}

/* ================================================
   Buttons
   ================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
}

.btn-ghost:hover {
    color: var(--color-primary);
    background: var(--color-bg-warm);
}

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

.hero {
    padding: var(--spacing-4xl) 0 var(--spacing-3xl);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: var(--color-bg-cream);
    color: var(--color-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-lg);
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--color-border);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
    font-weight: 500;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-note {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.hero-image {
    margin-top: var(--spacing-3xl);
    position: relative;
}

.hero-screenshot {
    border-radius: var(--radius-xl);
}

/* Screenshot Placeholder */
.screenshot-placeholder {
    background: linear-gradient(145deg, var(--color-bg-cream), var(--color-bg-warm));
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.screenshot-placeholder span {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
}

.screenshot-placeholder p {
    font-size: 0.875rem;
    margin-top: var(--spacing-sm);
    margin-bottom: 0;
}

.screenshot-placeholder.large {
    min-height: 500px;
}

/* ================================================
   Features Section
   ================================================ */

.features {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg-cream);
}

@media (min-width: 769px) {
    .features {
        margin-top: -117px;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-bg-cream), var(--color-bg-warm));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--color-border);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.feature-card h3 {
    font-family: var(--font-serif);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

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

/* ================================================
   Screenshots Section
   ================================================ */

.screenshots {
    padding: var(--spacing-4xl) 0;
}

.screenshots-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
}

.screenshot-item {
    text-align: center;
}

.screenshot-caption {
    margin-top: var(--spacing-md);
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ================================================
   Comparison Section
   ================================================ */

.comparison {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg-cream);
}

.comparison-table {
    overflow-x: auto;
    margin-top: var(--spacing-2xl);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
    padding: var(--spacing-lg);
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

.comparison-table th {
    background: var(--color-bg-warm);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table td {
    font-size: 0.9375rem;
}

.comparison-table td.highlight {
    background: rgba(92, 38, 38, 0.03);
    color: var(--color-primary);
    font-weight: 500;
}

.comparison-table th.highlight {
    color: var(--color-primary);
    background: rgba(92, 38, 38, 0.08);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .check {
    color: var(--color-success);
    font-weight: 600;
}

.comparison-table .cross {
    color: var(--color-text-light);
}

/* ================================================
   Screenshots Carousel Section
   ================================================ */

.screenshots {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg);
    overflow: hidden;
}

.carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-container {
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    padding: 0 var(--spacing-md);
    opacity: 0.4;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-slide .screenshot-placeholder {
    min-height: 520px;
    box-shadow: var(--shadow-xl);
}

.carousel-caption {
    text-align: center;
    margin-top: var(--spacing-lg);
    font-size: 1rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: all var(--transition-base);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.carousel-btn-prev {
    left: -24px;
}

.carousel-btn-next {
    right: -24px;
}

@media (max-width: 1100px) {
    .carousel-btn-prev {
        left: var(--spacing-md);
    }
    .carousel-btn-next {
        right: var(--spacing-md);
    }
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.carousel-dot:hover {
    border-color: var(--color-primary-light);
}

.carousel-dot.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.2);
}

/* ================================================
   Download Section
   ================================================ */

.download {
    padding: var(--spacing-4xl) 0;
}

.download-card {
    background: var(--color-bg-dark);
    color: white;
    padding: var(--spacing-4xl);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(92, 38, 38, 0.3), transparent 60%);
    pointer-events: none;
}

.download-card > * {
    position: relative;
    z-index: 1;
}

.download-card h2 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: 2.5rem;
}

.download-card > p {
    color: var(--color-text-light);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-2xl);
}

.download-options {
    display: flex;
    gap: var(--spacing-xl);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.download-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    min-width: 280px;
    position: relative;
    transition: all var(--transition-base);
}

.download-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.download-option.featured {
    background: rgba(92, 38, 38, 0.2);
    border-color: var(--color-primary-light);
}

.download-option .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent-gold);
    color: var(--color-secondary);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.download-option h3 {
    color: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.download-option .price {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 500;
    color: white;
    margin-bottom: var(--spacing-lg);
}

.download-option ul {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.download-option li {
    color: rgba(255, 255, 255, 0.7);
    padding-left: var(--spacing-lg);
    position: relative;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9375rem;
}

.download-option li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent-gold);
}

.download-note {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ================================================
   Footer
   ================================================ */

.footer {
    background: var(--color-bg-warm);
    padding: var(--spacing-4xl) 0 var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-3xl);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-2xl);
}

/* Enhanced Footer Brand Section - Side-by-side layout */
.footer-brand {
    max-width: 400px;
}

.footer-brand-top {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    display: inline-block;
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.footer-logo:hover {
    transform: translateY(-2px);
}

.footer-logo-icon {
    width: 64px;
    height: 64px;
    display: block;
}

.footer-brand-text {
    flex: 1;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.2;
}

.footer-description {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    font-style: italic;
}

.footer-love {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.6;
}

.footer-love a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base);
}

.footer-love a:hover {
    border-bottom-color: var(--color-primary);
}

/* Footer Links */
.footer-links {
    display: flex;
    gap: var(--spacing-3xl);
    flex-wrap: wrap;
}

.footer-column h4 {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color var(--transition-base);
}

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

/* Footer Bottom */
.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    margin-bottom: var(--spacing-xs);
}

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

.footer-note {
    font-size: 0.75rem !important;
    color: var(--color-text-light) !important;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-md);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-2xl);
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    /* Stack vertically on mobile */
    .footer-brand-top {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .footer-logo {
        display: block;
        text-align: center;
    }
    
    .footer-logo-icon {
        margin: 0 auto;
    }
    
    .footer-brand-text {
        text-align: center;
    }
    
    .footer-love {
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        gap: var(--spacing-xl);
    }
    
    .footer-column {
        text-align: center;
    }
}


/* ================================================
   Help Page Styles
   ================================================ */

.help-hero {
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.help-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at bottom left, rgba(196, 165, 116, 0.15), transparent 60%);
    pointer-events: none;
}

.help-hero h1 {
    color: white;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.help-hero p {
    opacity: 0.9;
    font-size: 1.125rem;
    position: relative;
}

.help-content {
    padding: var(--spacing-4xl) 0;
}

.help-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--spacing-3xl);
}

@media (max-width: 900px) {
    .help-layout {
        grid-template-columns: 1fr;
    }
    
    .help-sidebar {
        order: 1;
    }
}

.help-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.help-nav h4 {
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.help-nav h4:first-child {
    margin-top: 0;
}

.help-nav a {
    display: block;
    color: var(--color-text);
    padding: var(--spacing-xs) 0;
    font-size: 0.9375rem;
    border-left: 2px solid transparent;
    padding-left: var(--spacing-md);
    margin-left: calc(var(--spacing-md) * -1);
    transition: all var(--transition-fast);
}

.help-nav a:hover {
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

.help-article {
    margin-bottom: var(--spacing-3xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid var(--color-border);
}

.help-article:last-child {
    border-bottom: none;
}

.help-article h2 {
    margin-bottom: var(--spacing-lg);
}

.help-article h3 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.help-note,
.help-tip,
.help-warning {
    background: var(--color-bg-cream);
    border-left: 3px solid var(--color-primary);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--spacing-lg) 0;
}

.help-note strong,
.help-tip strong {
    color: var(--color-primary);
}

.help-tip {
    border-left-color: var(--color-success);
}

.help-tip strong {
    color: var(--color-success);
}

.help-warning {
    border-left-color: var(--color-warning);
}

.help-warning strong {
    color: var(--color-warning);
}

.shortcuts-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.shortcuts-table th,
.shortcuts-table td {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

.shortcuts-table th {
    background: var(--color-bg-cream);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.shortcuts-table tr:last-child td {
    border-bottom: none;
}

.faq-item {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--color-bg-cream);
    border-radius: var(--radius-md);
}

.faq-item h3 {
    margin-bottom: var(--spacing-sm);
    margin-top: 0;
    font-size: 1.125rem;
}

.faq-item p {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.contact-options {
    display: flex;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    margin: var(--spacing-xl) 0;
}

.contact-option {
    background: var(--color-bg-cream);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    flex: 1;
    min-width: 250px;
    border: 1px solid var(--color-border);
}

.contact-option h3 {
    margin-bottom: var(--spacing-sm);
    margin-top: 0;
}

.contact-option p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

/* Issue severity colors */
strong.error { color: #b54040; }
strong.warning { color: var(--color-warning); }
strong.info { color: var(--color-primary); }

/* ================================================
   Responsive Design
   ================================================ */

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .download-options {
        flex-direction: column;
        align-items: center;
    }
    
    .download-option {
        width: 100%;
        max-width: 350px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   Animations
   ================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}


/* ================================================
   Legal Pages - Additional Styles for Privacy & Terms
   ================================================ */

/* Legal Document Container */
.legal-document {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg);
    min-height: calc(100vh - 80px);
}

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

/* Legal Page Title */
.legal-document h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.legal-updated {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--color-border);
}

/* Introduction Section */
.legal-intro {
    background: var(--color-bg-cream);
    border-left: 4px solid var(--color-primary);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
    border-radius: var(--radius-md);
}

.legal-intro p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text);
    margin: 0;
}

/* Legal Sections */
.legal-section {
    margin-bottom: var(--spacing-2xl);
}

.legal-section h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-xl);
    line-height: 1.3;
}

.legal-section h3 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

/* Lists in Legal Documents */
.legal-section ul {
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    list-style-type: disc;
}

.legal-section ul li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-sm);
}

.legal-section ul li strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Contact Box */
.legal-contact {
    background: var(--color-bg-warm);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    margin-top: var(--spacing-md);
}

.legal-contact p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.legal-contact strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Links in Legal Documents */
.legal-document a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base);
}

.legal-document a:hover {
    border-bottom-color: var(--color-primary);
}

/* Emphasis Text */
.legal-section strong {
    font-weight: 600;
    color: var(--color-text);
}

/* Responsive Design for Legal Pages */
@media (max-width: 768px) {
    .legal-document {
        padding: var(--spacing-2xl) 0;
    }
    
    .legal-container {
        padding: 0 var(--spacing-md);
    }
    
    .legal-document h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.125rem;
    }
    
    .legal-intro {
        padding: var(--spacing-md);
    }
    
    .legal-section ul {
        margin-left: var(--spacing-md);
    }
}

/* Print Styles for Legal Documents */
@media print {
    .nav,
    .footer {
        display: none;
    }
    
    .legal-document {
        padding: 0;
    }
    
    .legal-section {
        page-break-inside: avoid;
    }
    
    .legal-document h1 {
        color: #000;
    }
    
    .legal-section h2 {
        color: #000;
        page-break-after: avoid;
    }
    
    .legal-document a {
        color: #000;
        text-decoration: underline;
    }
}