/* ThatWomansBooks.com - Marketing Site Styles */
/* Warm purple palette for book/collection lovers */

:root {
    /* UPDATED: Warm Purple Palette */
    --primary: #7B4B94;        /* Warm purple - main brand color */
    --primary-light: #9B6FB8;  /* Light purple - hover states */
    --primary-dark: #5A3470;   /* Dark purple - emphasis */
    --secondary: #A87CA8;      /* Mauve - secondary actions */
    --accent: #E6D5E6;         /* Light lavender - highlights */

    /* Neutrals (purple-tinted) */
    --dark: #2A1B3D;           /* Very dark purple-gray - text */
    --gray: #6C5B7B;           /* Purple-gray - secondary text */
    --light-gray: #F0E6F6;     /* Lavender tint - backgrounds */
    --white: #FDFCFE;          /* Slightly purple-tinted white */

    /* Semantic Colors */
    --success: #6B8E23;        /* Olive green - keep as is */
    --error: #B22222;          /* Firebrick - keep as is */

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --container-max: 1200px;
    --border-radius: 8px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px; /* Offset for sticky navbar */
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

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

/* Accessibility - Visually hidden class for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

/* Navigation */
.navbar {
    background: var(--white);
    border-bottom: 2px solid var(--light-gray);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.nav-brand .logo {
    height: 50px;
    width: auto;
    flex-shrink: 0;
}

.nav-brand .brand-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-brand:hover .brand-name {
    color: var(--primary-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    font-size: 1rem;
}

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

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

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: var(--spacing-md);
}

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

.badge {
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--light-gray);
}

.badge [data-lucide] {
    width: 16px;
    height: 16px;
    margin-right: 0.25rem;
}

.cta-group {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
}

.hero-note {
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
}

/* Lucide Icon Styles */
[data-lucide] {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 0.5rem;
    stroke: currentColor;
}

/* Values Section */
.values {
    padding: var(--spacing-lg) 0;
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.value-card {
    text-align: center;
    padding: var(--spacing-md);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.value-icon [data-lucide] {
    width: 48px;
    height: 48px;
    margin: 0;
    color: var(--primary);
}

.value-card h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

/* Features Section */
.features {
    padding: var(--spacing-lg) 0;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

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

.feature {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray);
}

.feature h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.feature h3 [data-lucide] {
    color: var(--primary);
    margin-right: 0.75rem;
}

/* Story Section */
.story {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.story-cta {
    font-weight: 600;
    color: var(--primary);
    margin-top: var(--spacing-md);
}

.story-note {
    font-size: 0.95rem;
    color: var(--gray);
    margin-top: var(--spacing-md);
    font-style: italic;
}

/* Beta Signup Section */
.signup {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.signup-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.signup h2 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.signup p {
    color: var(--light-gray);
    margin-bottom: var(--spacing-md);
}

.signup-form {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.signup-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.signup-form button {
    white-space: nowrap;
}

.signup-note {
    font-size: 0.9rem;
    color: var(--light-gray);
}

.form-message {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: var(--success);
    color: var(--white);
}

.form-message.error {
    background: var(--error);
    color: var(--white);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--light-gray);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    margin-right: var(--spacing-sm);
    vertical-align: middle;
}

.footer-section h3 {
    display: inline-block;
    vertical-align: middle;
}

.footer-section h3,
.footer-section h4 {
    color: var(--secondary);
    margin-bottom: var(--spacing-sm);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--light-gray);
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray);
}

/* Pricing Page Styles */
.pricing-hero {
    background: var(--light-gray);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--gray);
}

.pricing-tiers {
    padding: var(--spacing-lg) 0;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.tier-card {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tier-card.featured {
    border-color: var(--primary);
    border-width: 3px;
}

.tier-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--dark);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tier-header h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.tier-price {
    margin: var(--spacing-sm) 0;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.period {
    font-size: 1rem;
    color: var(--gray);
}

.tier-monthly {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: var(--spacing-sm);
}

.tier-limit {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.tier-features ul {
    list-style: none;
    text-align: left;
    margin-bottom: var(--spacing-md);
}

.tier-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

/* Comparison Table */
.comparison {
    padding: var(--spacing-lg) 0;
    background: var(--light-gray);
}

.comparison h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.comparison-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius);
}

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

th, td {
    padding: var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

th {
    font-weight: 600;
}

/* FAQ Section */
.faq {
    padding: var(--spacing-lg) 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.faq-item {
    background: var(--light-gray);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
}

.faq-item h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: var(--light-gray);
    text-align: center;
}

.cta-section h2 {
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: var(--spacing-md);
}

/* Responsive Design */

/* Medium screens */
@media (max-width: 1024px) {
    /* Footer - wrap Product and Company columns earlier */
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-logo {
        display: inline-block;
    }

    .footer-section h3 {
        display: inline-block;
    }
}

@media (max-width: 768px) {
    /* Navigation fixes */
    .container {
        padding: 0 var(--spacing-sm);
    }

    .navbar .container {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }

    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        font-size: 0.9rem;
    }

    .nav-menu li {
        flex-shrink: 0;
    }

    .nav-menu .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Footer - keep same as medium, already single column */
    .footer-logo {
        height: 50px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .cta-group {
        flex-direction: column;
    }

    .signup-form {
        flex-direction: column;
    }

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

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}
