/* ============================================================
   FEATURES PAGE — Styles
   ============================================================ */

/* --- PAGE HERO --- */
.page-hero {
    padding: calc(var(--nav-height) + 6rem) clamp(1.5rem, 4vw, 4rem) 4rem;
    text-align: center;
}

.page-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.page-hero .section-label {
    justify-content: center;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 600;
    line-height: 0.92;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.page-hero-desc {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

/* --- SHOWCASE GRID --- */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 5vw, 6rem);
    align-items: center;
}

.showcase-grid.reverse .showcase-content {
    order: 2;
}

.showcase-grid.reverse .showcase-visual {
    order: 1;
}

/* --- FEATURE LIST --- */
.feature-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.feature-check {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
    margin-top: 1px;
}

.feature-list-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- SHOWCASE CARDS --- */
.showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2rem;
    overflow: hidden;
}

/* Dashboard Preview */
.dashboard-preview {
    padding: 2.5rem;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.dash-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
}

.dash-period {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
}

.dash-value {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.dash-change {
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.dash-change.positive {
    color: #6BBF7A;
}

.dash-chart {
    height: 80px;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.dash-chart svg {
    width: 100%;
    height: 100%;
}

.dash-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.dash-cat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.dash-cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Document Preview */
.docs-preview {
    padding: 1rem;
}

.doc-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1rem;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.doc-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.doc-row + .doc-row {
    border-top: 1px solid var(--border-subtle);
}

.doc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.doc-icon.pdf {
    background: var(--ember-dim);
    color: var(--ember);
}

.doc-icon.img {
    background: var(--gold-dim);
    color: var(--gold);
}

.doc-info {
    flex: 1;
    min-width: 0;
}

.doc-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-meta {
    font-size: 0.72rem;
    color: var(--text-tertiary);
}

.doc-badge {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    background: rgba(107, 191, 122, 0.12);
    color: #6BBF7A;
    flex-shrink: 0;
}

.doc-badge.warn {
    background: rgba(230, 160, 60, 0.12);
    color: #E6A03C;
}

/* --- CATEGORIES GRID --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.category-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.4s var(--ease-smooth);
}

.category-tile:hover {
    border-color: var(--gold-dim);
    transform: translateY(-4px);
}

.cat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.category-tile h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.category-tile p {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

/* --- EXTRAS GRID --- */
.extras-grid {
    margin-top: 3rem;
}

.extra-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.4s var(--ease-smooth);
}

.extra-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.extra-num {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    line-height: 1;
}

.extra-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: var(--gold);
}

.extra-text {
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

/* --- CTA (from home) --- */
.cta-section {
    padding: clamp(6rem, 14vh, 12rem) clamp(1.5rem, 4vw, 4rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
    pointer-events: none;
}

.cta-inner { position: relative; z-index: 2; }

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 600;
    line-height: 0.95;
    margin-bottom: 1.5rem;
}

.cta-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid.reverse .showcase-content,
    .showcase-grid.reverse .showcase-visual {
        order: unset;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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