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

/* Base Typography and Colors */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1f36;
    color: #e2e8f0;
    line-height: 1.8;
    padding: 2rem;
}

/* Container Layouts */
.container {
    max-width: 800px;
    margin: 0 auto;
}

.container.narrow {
    max-width: 600px;
}

.container.centered {
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Typography */
h1 {
    color: #60a5fa;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

h1.large {
    font-size: 3rem;
    font-weight: 600;
}

h2 {
    color: #93c5fd;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

h2.spaced {
    margin: 2.5rem 0 1.5rem 0;
}

h3 {
    color: #60a5fa;
    margin: 2rem 0 1rem 0;
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
    color: #cbd5e1;
}

/* Common Components */
.logo {
    margin-bottom: 2rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
}

.tagline {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.subtitle {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.description {
    color: #64748b;
    margin-bottom: 3rem;
}

.updated {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* Store Badges */
.store-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.store-badge {
    height: 48px;
    width: auto;
    opacity: 0.5;
    transition: all 0.2s;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.store-badge.active {
    opacity: 1;
    cursor: pointer;
    filter: none;
}

.store-badge:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

.store-badge.active:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

@media (max-width: 480px) {
    .store-badge {
        height: 40px;
    }
}

/* Navigation Links */
.links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.links a {
    color: #60a5fa;
    text-decoration: none;
    transition: all 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.links a:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #93c5fd;
}

/* Back Button */
.back {
    display: inline-block;
    margin-top: 3rem;
    color: #60a5fa;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 8px;
    transition: all 0.2s;
}

.back:hover {
    background: rgba(96, 165, 250, 0.2);
    color: #93c5fd;
}

/* FAQ Styles (Support Page) */
.faq-item {
    margin-bottom: 1rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(30, 41, 59, 0.7);
}

.question {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.25rem 3rem 1.25rem 1.25rem;
    cursor: pointer;
    position: relative;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    transition: color 0.2s ease;
}

.faq-item:not(.collapsed) .question {
    color: #60a5fa;
}

.question::after {
    content: '';
    position: absolute;
    right: 1.25rem;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.faq-item.collapsed .question::after {
    transform: rotate(-90deg);
}

.answer {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.75;
    padding: 0.5rem 1.25rem 1.5rem 1.25rem;
    max-height: 500px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.collapsed .answer {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Contact Section (Support Page) */
.contact-section {
    background: rgba(96, 165, 250, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.contact-section p {
    margin-bottom: 0.5rem;
}

.contact-methods {
    margin-top: 1rem;
}

.contact-methods a {
    color: #60a5fa;
    text-decoration: none;
    transition: all 0.2s;
}

.contact-methods a:hover {
    color: #93c5fd;
}

/* Store Section (Support Page) */
.store-section {
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.store-section .store-badges {
    margin: 1.5rem 0 0 0;
}

.beta-note {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Warning Box (Delete Account Page) */
.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.warning-box h3 {
    color: #fca5a5;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box p {
    color: #fed7d7;
    margin-bottom: 0.75rem;
}

.warning-box ul {
    color: #fed7d7;
    margin-left: 1.5rem;
}

/* Method Box (Delete Account Page) */
.method {
    background: rgba(96, 165, 250, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.method h3 {
    color: #93c5fd;
    margin-bottom: 1rem;
}

.method p {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

/* Note Box (Delete Account Page) */
.note {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Page-specific body overrides */
body.homepage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Inline link styles */
a.inline-link {
    color: #60a5fa;
    text-decoration: none;
    transition: all 0.2s;
}

a.inline-link:hover {
    color: #93c5fd;
}