/* ==================================================
   FONTS
   ================================================== */
@import url('https://fonts.googleapis.com/css?family=Lato&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');

/* ==================================================
   CSS VARIABLES (matching main app)
   ================================================== */
:root {
    /* Base color palette */
    --purple-gray-mid: #d6ccdb;
    --purple-gray-light: #f3f0f4;
    --purple-gray-dark: #9f88aa;
    --bluish-contrast: #ccd8db;

    /* Semantic color mappings */
    --color-page-bg: var(--purple-gray-mid);
    --color-page-text: #1f2937;
    --color-header-bg: var(--purple-gray-mid);
    --color-header-text: #1f2937;
    --color-card-large-bg: var(--purple-gray-light);
    --color-card-large-text: #1f2937;
    --color-card-small-bg: #ffffff;
    --color-card-small-text: #1f2937;
    --color-btn-primary-bg: var(--purple-gray-dark);
    --color-btn-primary-text: #ffffff;
    --color-btn-primary-hover: #8a76a3;
    --color-btn-secondary-bg: #9ca3af;
    --color-btn-secondary-text: #ffffff;
    --color-btn-secondary-hover: #6b7280;
}

/* ==================================================
   RESET & BASE STYLES
   ================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Montserrat, Lato, Arial, Helvetica, sans-serif;
    background-color: var(--color-page-bg);
    color: var(--color-page-text);
    line-height: 1.6;
}

/* ==================================================
   LAYOUT
   ================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .main-content {
        padding: 3rem 0;
    }
}

/* ==================================================
   HEADER
   ================================================== */
.site-header {
    background-color: var(--color-header-bg);
    border-bottom: 1px solid #000000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
}

@media (min-width: 768px) {
    .site-header {
        padding: 1rem 2rem;
    }
}

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

.logo-link {
    display: block;
    line-height: 0;
}

.logo {
    height: 2rem;
    width: auto;
}

@media (min-width: 768px) {
    .logo {
        height: 3rem;
    }
}

.main-nav {
    display: none;
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        gap: 1rem;
        align-items: center;
    }
}

.nav-link {
    color: var(--color-header-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: opacity 0.2s;
    border-radius: 0.5rem;
}

.nav-link:hover {
    opacity: 0.8;
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
    font-weight: 600;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.hamburger-icon {
    width: 1.5rem;
    height: 1.5rem;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0 0;
}

.mobile-nav.active {
    display: flex;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

/* ==================================================
   BUTTONS
   ================================================== */
.btn-primary {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--color-btn-primary-bg);
    color: var(--color-btn-primary-text);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

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

.btn-secondary {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--color-btn-secondary-bg);
    color: var(--color-btn-secondary-text);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

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

/* ==================================================
   CARDS (matching main app)
   ================================================== */
.card-large {
    background-color: var(--color-card-large-bg);
    color: var(--color-card-large-text);
    border: 1px solid #000000;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .card-large {
        padding: 2rem;
    }
}

.card-small {
    background-color: var(--color-card-small-bg);
    color: var(--color-card-small-text);
    border: 1px solid #000000;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* Card grid for quick links */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================================================
   TYPOGRAPHY
   ================================================== */
h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    h2 {
        font-size: 2rem;
    }
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    h3 {
        font-size: 1.5rem;
    }
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

pre {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

pre code {
    background: none;
    padding: 0;
}

strong {
    font-weight: 600;
}

a {
    color: var(--color-btn-primary-bg);
    text-decoration: underline;
}

a:hover {
    opacity: 0.8;
}

/* ==================================================
   FOOTER
   ================================================== */
.site-footer {
    background-color: var(--color-card-large-bg);
    border-top: 1px solid #000000;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-nav {
        justify-content: flex-end;
    }
}

.footer-nav a {
    color: var(--color-page-text);
    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* ==================================================
   PAGE-SPECIFIC STYLES
   ================================================== */

/* Hero section */
.hero {
    text-align: center;
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

.hero p {
    font-size: 1.125rem;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.25rem;
    }
}

/* Steps/numbered sections */
.steps-container {
    counter-reset: step;
}

.step-section {
    counter-increment: step;
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2rem;
}

.step-section::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--color-btn-primary-bg);
    color: var(--color-btn-primary-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.step-section h3 {
    margin-top: 0;
}

/* FAQ accordion */
.faq-item {
    margin-bottom: 0.75rem;
}

.faq-question {
    background-color: var(--color-card-small-bg);
    border: 1px solid #000000;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: var(--color-card-large-bg);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.2s;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    display: none;
    padding: 1rem;
    background-color: var(--color-card-large-bg);
    border: 1px solid #000000;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    margin-top: -0.5rem;
}

.faq-item.active .faq-answer {
    display: block;
}

/* FAQ category headers */
.faq-category {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.faq-category h2 {
    border-bottom: 2px solid var(--color-btn-primary-bg);
    padding-bottom: 0.5rem;
}

/* Screenshot/image styles */
.screenshot {
    max-width: 100%;
    height: auto;
    border: 1px solid #000000;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Alert boxes */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.alert-info {
    background-color: #e0f2fe;
    border-color: #0ea5e9;
    color: #0c4a6e;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: #f59e0b;
    color: #78350f;
}

.alert-success {
    background-color: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.alert strong {
    display: block;
    margin-bottom: 0.5rem;
}

/* Quick links section */
.quick-links {
    margin-top: 3rem;
}

.quick-link-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quick-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.15);
}

.quick-link-card h3 {
    margin-top: 0;
}

/* Table of contents */
.toc {
    background-color: var(--color-card-large-bg);
    border: 1px solid #000000;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc h2 {
    margin-top: 0;
    font-size: 1.25rem;
}

.toc ul {
    margin-left: 1rem;
}

.toc a {
    text-decoration: none;
}

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

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

.mt-large {
    margin-top: 3rem;
}

.mb-large {
    margin-bottom: 3rem;
}

/* ==================================================
   CONTACT FORM
   ================================================== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

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

.required {
    color: #dc2626;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #000000;
    border-radius: 8px;
    font-family: Montserrat, Lato, Arial, Helvetica, sans-serif;
    font-size: 1rem;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple-gray-dark);
    box-shadow: 0 0 0 3px rgba(159, 136, 170, 0.2);
}

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

.btn-large {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
}
