/* Bookkeeping-OCR Marketing Site Stylesheet */
/* Version: 3.0.0 */
/* GnuCash-inspired layout with modern gradient aesthetic */

/* ===========================
   CSS Variables & Color Palette
   =========================== */
:root {
    --primary-blue: #0066CC;
    --accent-green: #00AA44;
    --dark-blue: #001A4D;
    --light-bg: #F5F8FC;
    --white: #FFFFFF;
    --dark-text: #1A1A2E;
    --gray-text: #666666;
    --border-gray: #DDDDDD;
    --hover-blue: #0052A3;
    --success-green: #00CC55;
    --warning-orange: #FF9900;
    --error-red: #CC0000;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--dark-text);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--dark-blue);
}

h2 {
    font-size: 2rem;
    color: var(--dark-blue);
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

h4 {
    font-size: 1.25rem;
}

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

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

a:hover {
    color: var(--hover-blue);
    text-decoration: underline;
}

/* ===========================
   Layout Structure (GnuCash-inspired)
   =========================== */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--dark-blue);
    color: var(--white);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.logo:hover {
    color: var(--accent-green);
    text-decoration: none;
}

/* Navigation */
.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-green);
    text-decoration: none;
}

.nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Main Content Area */
.content-wrapper {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--white);
    padding: 2rem 1rem;
    border-right: 1px solid var(--border-gray);
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--dark-blue);
}

.sidebar ul {
    list-style: none;
    margin-bottom: 2rem;
}

.sidebar ul li {
    margin-bottom: 0.5rem;
}

.sidebar ul li a {
    color: var(--dark-text);
    font-size: 0.9rem;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar ul li a:hover {
    background: var(--light-bg);
    color: var(--primary-blue);
    text-decoration: none;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    background: var(--white);
    overflow-y: auto;
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--white);
    font-size: 0.9rem;
}

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

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    border-radius: 8px;
    margin-bottom: 3rem;
}

.hero__notice {
    color: var(--error-red);
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.hero__notice a {
    color: inherit;
    text-decoration: underline;
    font-weight: 700;
}

.hero__notice-blink {
    animation: hero-blink 1.2s steps(1, end) infinite;
}

@keyframes hero-blink {
    50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__notice-blink { animation: none; }
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero__tagline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--white) !important;
}

/* Ensure white text inside any hero block, including lower CTA hero */
.hero .hero__tagline { color: var(--white) !important; }
.hero h2, .hero p { color: var(--white) !important; }

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

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    min-width: 44px;
    min-height: 44px;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 170, 68, 0.3);
}

.btn-primary:hover {
    background: var(--success-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 170, 68, 0.4);
    text-decoration: none;
}

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

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

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

/* ===========================
   Value Propositions (3-column grid)
   =========================== */
.value-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

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

.value-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.value-card__description {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* ===========================
   Features Grid
   =========================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.feature-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.feature-card__title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.feature-card__description {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* ===========================
   Feature Sections (Detailed Pages)
   =========================== */
.feature-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-gray);
}

.feature-section:last-child {
    border-bottom: none;
}

.feature-section__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-section__icon {
    font-size: 2rem;
    color: var(--primary-blue);
}

.feature-section__description {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin-bottom: 1rem;
}

.feature-list__item {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list__item:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

/* ===========================
   Pricing Cards
   =========================== */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.pricing-card--popular {
    border-color: var(--accent-green);
    box-shadow: 0 4px 16px rgba(0, 170, 68, 0.2);
}

.pricing-card--popular:before {
    content: "⭐ Most Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-green);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card__badge {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pricing-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.pricing-card__price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.pricing-card__duration {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.pricing-card__features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-card__features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-bg);
}

.pricing-card__subtext {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-top: 1rem;
}

/* ===========================
   Pricing Table
   =========================== */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
}

.pricing-table__header {
    background: var(--dark-blue);
    color: var(--white);
}

.pricing-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.pricing-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-gray);
}

.pricing-table tr:hover {
    background: var(--light-bg);
}

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

/* ===========================
   Video Section
   =========================== */
.video-section {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.video-embed {
    max-width: 560px;
    margin: 2rem auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.video-embed iframe {
    width: 100%;
    height: 315px;
    border: none;
}

/* ===========================
   FAQ Sections
   =========================== */
.faq-category {
    margin-bottom: 2rem;
}

.faq-category__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-blue);
    color: var(--dark-blue);
}

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

details {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

details:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-blue);
    user-select: none;
    outline: none;
}

summary:hover {
    color: var(--primary-blue);
}

details[open] summary {
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

details p {
    color: var(--dark-text);
    line-height: 1.8;
}

/* ===========================
   Download Steps
   =========================== */
.download-steps {
    margin: 2rem 0;
}

.step {
    background: var(--white);
    border-left: 4px solid var(--primary-blue);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step__number {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 700;
    margin-right: 1rem;
}

.step__content h3 {
    display: inline-block;
    margin: 0 0 1rem 0;
}

/* ===========================
   System Requirements
   =========================== */
.system-requirements {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.requirements-list {
    list-style: none;
}

.requirements-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.requirements-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* ===========================
   Troubleshooting
   =========================== */
.troubleshooting {
    margin: 2rem 0;
}

.troubleshooting__item {
    margin-bottom: 1rem;
}

/* ===========================
   Support Options
   =========================== */
.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.support-option {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
    text-align: center;
}

.support-option__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.support-option__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark-blue);
}

.support-option__description {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* ===========================
   Contact Form
   =========================== */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-blue);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-button {
    width: 100%;
    padding: 1rem;
    background: var(--accent-green);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-button:hover {
    background: var(--success-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 170, 68, 0.3);
}

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-gray);
    }

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

    .hero__title {
        font-size: 2rem;
    }

    .hero__tagline {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .pricing-cards,
    .features,
    .value-props {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }

    .main-content {
        padding: 1rem;
    }

    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}
