/* Unified features section with pill-style audience toggle */
.split-features {
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 7rem 5% 6rem;
    align-items: flex-start;
    overflow: visible;
    background: var(--bg-color);
    transition: background-color 0.35s ease;
}

.split-features-shell {
    width: min(1100px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
    position: relative;
    margin: 0 auto;
}

.feature-hash-anchor {
    position: absolute;
    top: -5.25rem;
    left: 0;
    width: 0;
    height: 0;
}

/* Toggle component */
.features-toggle-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem;
    border-radius: 999px;
    background: var(--card-bg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: border-color 0.25s ease, background-color 0.25s ease;
    border: 1px solid var(--border-color);
}

.features-toggle-btn {
    border: 0;
    outline: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 0.7rem 1.5rem;
    min-width: 124px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.features-toggle-btn:hover {
    color: var(--text-color);
}

/* Agent Active */
.split-features:not([data-active-feature="business"]) .features-toggle-btn[data-target="agent"].active {
    color: #333333;
    background: #bce9b4; /* Light green shade */
}

[data-theme="dark"] .split-features:not([data-active-feature="business"]) .features-toggle-btn[data-target="agent"].active {
    color: #000000;
    background: #89c77e;
}

/* Business Active */
.split-features[data-active-feature="business"] .features-toggle-btn[data-target="business"].active {
    color: #333333;
    background: #c3e2f0; /* Light blue shade */
}

[data-theme="dark"] .split-features[data-active-feature="business"] .features-toggle-btn[data-target="business"].active {
    color: #000000;
    background: #8abfd9;
}

/* Big Title */
.dynamic-features-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dynamic-features-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: var(--text-color);
}

.dynamic-features-header .static-text {
    color: var(--text-muted);
}

.dynamic-features-header .dynamic-text {
    display: none;
}

.dynamic-features-header .dynamic-text.active {
    display: inline-block;
}

/* Colored text based on active feature */
.split-features:not([data-active-feature="business"]) .dynamic-text.agent-text.active {
    color: #65AA51; /* Agent green */
}

.split-features[data-active-feature="business"] .dynamic-text.business-text.active {
    color: #1d5a78; /* Business blue */
}

/* Panels */
.features-panels {
    width: 100%;
    display: grid;
}

.features-panel {
    grid-area: 1 / 1;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
}

.features-panel.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.features-panel.is-entering {
    animation: panelEnter 350ms ease forwards;
}

.features-panel.is-exiting {
    animation: panelExit 250ms ease forwards;
}

@keyframes panelEnter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes panelExit {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}
