/* JMC - 04/14/2026 - Features page specific styles — light/dark theme support */

/* ============================================================
   Features-page CSS variables (extend root vars from style-v2.css)
   ============================================================ */
:root {
    --badge-bg:        rgba(255, 255, 255, 0.06);
    --badge-ring:      rgba(255, 255, 255, 0.1);
    --badge-pill-text: rgba(255, 255, 255, 0.6);
    --fig-dd:          rgba(255, 255, 255, 0.55);
    --bullets-border:  rgba(255, 255, 255, 0.08);
    --bullets-text:    rgba(255, 255, 255, 0.45);
    --mf-p:            rgba(255, 255, 255, 0.55);
    --mf-dd:           rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] {
    --badge-bg:        rgba(0, 0, 0, 0.04);
    --badge-ring:      rgba(0, 0, 0, 0.1);
    --badge-pill-text: #4b5563;
    --fig-dd:          #4b5563;
    --bullets-border:  rgba(0, 0, 0, 0.08);
    --bullets-text:    #6b7280;
    --mf-p:            #4b5563;
    --mf-dd:           #6b7280;
}

/* ============================================================
   Page Hero
   ============================================================ */
.features-hero {
    background: var(--bg-base);
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.features-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to bottom, transparent 0%, var(--hero-fade) 100%);
    pointer-events: none;
    z-index: 0;
}

.features-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
}

.features-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.features-hero p {
    font-size: 1.05rem;
    color: var(--text-body);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.features-hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.features-hero-link {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    color: var(--hero-link);
    text-decoration: none;
    transition: color 0.2s;
}

.features-hero-link:hover {
    color: var(--text-heading);
}

.features-hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 960px;
    height: 960px;
    z-index: -1;
    opacity: var(--glow-opacity);
    mask-image: radial-gradient(closest-side, white, transparent);
    -webkit-mask-image: radial-gradient(closest-side, white, transparent);
    pointer-events: none;
}

/* ============================================================
   Feature Badges (replaces subnav)
   ============================================================ */
.features-badges-wrap {
    background: var(--bg-base);
    padding: 32px 0 52px;
}

.features-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.feat-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--badge-bg);
    box-shadow: inset 0 0 0 1px var(--badge-ring);
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    color: var(--badge-pill-text);
    text-decoration: none;
    transition: all 0.2s;
}

.feat-badge:hover,
.feat-badge.active {
    background: rgba(71, 178, 228, 0.12);
    box-shadow: inset 0 0 0 1px rgba(71, 178, 228, 0.3);
    color: #47b2e4;
}

/* ============================================================
   Feature Detail Grid — 2-col icon-box layout
   ============================================================ */
.feature-grid-section {
    padding: 80px 0 88px;
    background: var(--bg-base);
}

.feat-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 72px;
    margin: 0;
    padding: 0;
}

.fig-item {
    position: relative;
    padding-left: 64px;
    scroll-margin-top: 80px;
}

.fig-icon-box {
    position: absolute;
    left: 0;
    top: 2px;
    width: 44px;
    height: 44px;
    background: #47b2e4;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fig-icon-box svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

.fig-item dt {
    font-family: "Inter", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
    line-height: 1.3;
    display: block;
}

.fig-item dd {
    font-size: 0.875rem;
    color: var(--fig-dd);
    line-height: 1.7;
    margin: 0 0 12px;
}

/* Show/hide toggle */
.feat-toggle {
    font-size: 0.8rem;
    font-weight: 600;
    color: #47b2e4;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.feat-toggle:hover {
    color: #73c5eb;
}

.feat-toggle .hide-label { display: none; }
.feat-toggle .show-label { display: inline; }

.feat-toggle[aria-expanded="true"] .hide-label { display: inline; }
.feat-toggle[aria-expanded="true"] .show-label { display: none; }

.feat-chevron {
    font-size: 0.75rem;
    transition: transform 0.25s;
}

.feat-toggle[aria-expanded="true"] .feat-chevron {
    transform: rotate(180deg);
}

/* Bullets inside collapse */
.feature-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--bullets-border);
}

.feature-bullets li {
    font-size: 0.8rem;
    color: var(--bullets-text);
    padding: 3px 0 3px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.feature-bullets li .bi-check2 {
    color: #47b2e4;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 2px;
}


/* ============================================================
   More Features Section
   ============================================================ */
.more-features-section {
    background: var(--bg-alt);
    padding: 80px 0 88px;
    border-top: 1px solid var(--divider);
}

.more-features-layout {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 64px;
    align-items: start;
}

.more-features-intro .mf-eyebrow {
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #47b2e4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.more-features-intro h2 {
    font-family: "Inter", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 20px;
}

.more-features-intro p {
    font-size: 0.9rem;
    color: var(--mf-p);
    line-height: 1.75;
}

.more-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 48px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mf-item {
    position: relative;
    padding-left: 28px;
}

.mf-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='%2347b2e4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.mf-item dt {
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 6px;
    display: block;
}

.mf-item dd {
    font-size: 0.835rem;
    color: var(--mf-dd);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
    .feat-icon-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .more-features-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .more-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 40px;
    }
}

@media (max-width: 575px) {
    .features-hero {
        padding: 110px 0 60px;
    }

    .features-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .feat-icon-grid {
        gap: 28px;
    }

    .fig-item {
        padding-left: 56px;
    }

    .fig-icon-box {
        width: 38px;
        height: 38px;
    }

    .more-features-grid {
        grid-template-columns: 1fr;
    }
}
