/* About page — themed to match app and add a subtle wow factor */
:root {
    --hero-gradient: linear-gradient(90deg, #ff4444, #32cd32);
}

/* Allow scrolling on About page (main.css sets body overflow:hidden for app) */
html,
body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    user-select: text;
    -webkit-user-select: text;
}

/* Full-bleed animated canvas background */
#about-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-canvas);
    pointer-events: none;
    background: var(--bg-primary);
}

/* Foreground container */
.about-container {
    position: relative;
    z-index: var(--z-overlay);
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px 48px;
    color: var(--text-primary);
    font-family: var(--font-family-primary);
}

/* Hero */
.about-hero {
    text-align: left;
    margin-bottom: 32px;
}

.about-hero h1 {
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-hero .mark-minus {
    color: var(--accent-red);
}

.about-hero .mark-plus {
    color: var(--accent-green);
}

.about-hero .brand {
    color: var(--text-primary);
}

.about-hero .subtitle {
    color: var(--text-secondary);
    margin-top: 8px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn {
    display: inline-block;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: var(--font-size-sm);
    border: 1px solid var(--border-default);
    text-decoration: none;
    transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
    background: var(--accent-green);
    color: var(--text-on-accent);
    border-color: var(--accent-green);
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
}

.btn-ghost:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* Cards */
.card {
    background: rgba(33, 33, 33, 0.9);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 16px 0;
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-md);
}

.card h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
}

.two-col {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
}

@media (max-width: 860px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.feature-list li {
    margin: 8px 0;
    border-left: 3px solid var(--accent-blue);
    padding-left: 10px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-content: start;
}

.pill {
    border: 1px solid var(--border-default);
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    font-size: var(--font-size-sm);
}

.pill .minus {
    color: var(--accent-red);
    margin-right: 6px;
}

.pill .plus {
    color: var(--accent-green);
    margin-right: 6px;
}

.grid-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 1024px) {
    .grid-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .grid-features {
        grid-template-columns: 1fr;
    }
}

.feature {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 16px;
    background: rgba(25, 25, 25, 0.8);
    transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.feature:hover {
    transform: translateY(-2px);
    border-color: var(--accent-blue);
    background: rgba(30, 30, 30, 0.9);
}

.glyph {
    font-family: var(--font-family-mono);
    font-size: 22px;
}

.glyph.minus {
    color: var(--accent-red);
}

.glyph.plus {
    color: var(--accent-green);
}

.about-footer {
    display: flex;
    justify-content: center;
    margin: 20px 0 12px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .feature:hover {
        transform: none;
    }
}