/* jkeywording_website.css - Modern Design System for jKeywording */

/* [260127][cc] Aligning with extension premium aesthetic */

:root {
    --primary-color: #635bff;
    --primary-hover: #0a2540;
    --background-color: #f7fafc;
    --card-background: #ffffff;
    --text-color: #1a1f36;
    --text-muted: #697386;
    --border-color: #e6e8eb;
    --success-color: #0ba95b;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    --container-max-width: 1000px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navbar */
header {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

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

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(99, 91, 255, 0.4);
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 4rem 0;
}

section h1, section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    scroll-margin-top: 100px; /* Account for sticky header */
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    position: relative;
    display: flex;
    flex-direction: column;
}


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

.feature-card p {
    font-size: 0.938rem;
    color: var(--text-muted);
}

/* Guide Section */
.guide-step {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.guide-step h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.guide-step p {
    text-align: center;
}

.guide-step img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: 1.5rem auto 0;
    display: block;
}

/* FAQ Styling */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-grid details {
    scroll-margin-top: 100px; /* Account for sticky header on anchor links like #faq-photo-context */
}

details {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

summary {
    padding: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

summary:hover {
    background-color: var(--background-color);
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
}

details[open] summary::after {
    content: '−';
}

.faq-content {
    padding: 1.25rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

.faq-content img {
    display: block;
    margin: 1rem auto;
    max-width: 100%;
    height: auto;
}

.faq-content p + p,
.faq-content ul + p {
    margin-top: 1rem;
}

.support-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.938rem;
}

.support-table th,
.support-table td {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.support-table th {
    background: var(--background-color);
    font-weight: 600;
    color: var(--text-color);
}

.support-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.support-table .check {
    color: var(--success-color);
    font-size: 1.1rem;
}

.support-table .cross {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.faq-content ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

/* Guide section divider (e.g. "How it works" block) */
.guide-section-divider {
    text-align: center;
    margin: 4rem 0;
}

.guide-section-divider p {
    margin-bottom: 2rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    background: white;
    text-align: center;
}

footer p {
    margin: 1rem 0;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

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