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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2d3748;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.guide-nav {
    display: flex;
    justify-content: center;
    padding: 20px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.guide-logo {
    height: 36px;
    width: auto;
    border-radius: 22.37%;
}

/* Main Container */
.guide-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    line-height: 1.7;
}

/* Header */
.guide-header {
    text-align: center;
    margin-bottom: 48px;
}

.guide-header h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #1a202c;
}

@media (max-width: 640px) {
    .guide-header h1 {
        font-size: 28px;
    }
}

.guide-header .subtitle {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .guide-header .subtitle {
        font-size: 16px;
    }
}

/* Table of Contents */
.guide-toc {
    background: #f7fafc;
    border-left: 4px solid #007AFF;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 48px;
}

.guide-toc h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a202c;
}

.guide-toc ol {
    margin-left: 20px;
}

.guide-toc li {
    margin-bottom: 8px;
    color: #2d3748;
}

.guide-toc a {
    color: #007AFF;
    text-decoration: none;
}

.guide-toc a:hover {
    text-decoration: underline;
}

/* Guide Sections */
.guide-section {
    margin-bottom: 56px;
}

.guide-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a202c;
    scroll-margin-top: 20px;
}

.guide-section h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: #2d3748;
}

.guide-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 12px;
    color: #2d3748;
}

.guide-section p {
    font-size: 17px;
    line-height: 1.8;
    color: #2d3748;
    margin-bottom: 20px;
}

.guide-section ul,
.guide-section ol {
    margin: 20px 0 20px 24px;
}

.guide-section li {
    font-size: 17px;
    line-height: 1.7;
    color: #2d3748;
    margin-bottom: 12px;
}

.guide-section strong {
    font-weight: 700;
    color: #1a202c;
}

.guide-section em {
    font-style: italic;
    color: #4a5568;
}

/* Highlight Boxes */
.highlight-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 28px 0;
}

.highlight-box h4 {
    margin-top: 0;
    color: #856404;
}

.blue-box {
    background: #e6f2ff;
    border-left: 4px solid #007AFF;
    border-radius: 8px;
    padding: 20px;
    margin: 28px 0;
}

.blue-box h4 {
    color: #0051d5;
    margin-top: 0;
}

/* CTA Cards */
.cta-card {
    background: linear-gradient(135deg, #007AFF 0%, #0051d5 100%);
    color: #fff;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    margin: 48px 0;
}

.cta-card h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 12px;
}

.cta-card p {
    color: rgba(255,255,255,0.95);
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.cta-card .cta-button {
    background: #fff;
    color: #007AFF;
    font-size: 17px;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-card .cta-button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Links */
.inline-link {
    color: #007AFF;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,122,255,0.3);
}

.inline-link:hover {
    border-bottom-color: #007AFF;
}

/* Phase Cards */
.phase-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.phase-card h4 {
    margin-top: 0;
    color: #007AFF;
}

/* Week Breakdown */
.week-breakdown {
    background: #f7fafc;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.week-breakdown h4 {
    margin-top: 0;
    color: #2d3748;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 16px;
}

th {
    background: #f7fafc;
    padding: 12px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    color: #1a202c;
}

td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

/* Quotes */
.quote {
    border-left: 4px solid #cbd5e0;
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: #4a5568;
}

/* FAQ Section */
.faq-section {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
}

.faq-item {
    margin-bottom: 32px;
}

.faq-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.faq-item p {
    font-size: 17px;
    line-height: 1.7;
    color: #2d3748;
}

/* Sticky Footer CTA */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #007AFF 0%, #0051d5 100%);
    padding: 16px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    text-align: center;
}

.sticky-footer p {
    color: #fff;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
}

.sticky-footer .cta-button {
    background: #fff;
    color: #007AFF;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sticky-footer .cta-button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Footer */
.footer {
    border-top: 1px solid #e2e8f0;
    padding: 40px 20px 100px;
    text-align: center;
    color: #718096;
}

.footer-links {
    margin-bottom: 16px;
}

.footer-link {
    color: #007AFF;
    text-decoration: none;
    margin: 0 16px;
    font-size: 14px;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-text {
    font-size: 14px;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 640px) {
    .guide-container {
        padding: 24px 16px 80px;
    }

    .guide-section h2 {
        font-size: 24px;
    }

    .guide-section h3 {
        font-size: 20px;
    }

    .guide-section p,
    .guide-section li {
        font-size: 16px;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 8px;
    }

    .cta-card {
        padding: 24px 20px;
    }

    .cta-card h3 {
        font-size: 20px;
    }
}
