﻿/* ********** */
/* FEATURES PAGE - Now / Latest / Coming soon columns + Wingman navy */
/* ********** */

:root {
    --features-navy: #1a365d;
    --features-navy-mid: #243b6b;
    --features-navy-text: #c5d4e8;
    --features-navy-heading: #d6e4f5;
    --features-gold: #c9a227;
}

@keyframes featuresPriceIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes featuresPriceGlow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), 0 0 0 0 rgba(102, 153, 204, 0.2);
    }

    50% {
        box-shadow: 0 8px 24px rgba(102, 153, 204, 0.18), 0 0 0 4px rgba(102, 153, 204, 0.12);
    }
}

@keyframes featuresWingmanBurst {
    0%, 100% {
        transform: translate(-50%, -40%) scale(0.55) rotate(0deg);
        opacity: 0.55;
    }

    50% {
        transform: translate(-50%, -40%) scale(1.05) rotate(18deg);
        opacity: 0.95;
    }
}

@keyframes featuresWingmanPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.35), inset 0 0 24px rgba(201, 162, 39, 0.08);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(201, 162, 39, 0), inset 0 0 36px rgba(201, 162, 39, 0.16);
    }
}

.features-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    background: var(--white, #fff);
    border: 1px solid var(--back-bdr-grey, #e0e0e0);
    border-radius: 12px;
    padding: 20px 22px;
    margin: 0 0 28px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    opacity: 0;
    animation: featuresPriceIn 0.7s ease forwards, featuresPriceGlow 3.2s ease-in-out 0.7s infinite;
}

.features-price-copy {
    flex: 1 1 240px;
    min-width: 0;
}

.features-price-label {
    margin: 0 0 4px 0;
    font-family: var(--font-family-h1);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sys-blue);
}

.features-price-amount {
    margin: 0 0 4px 0;
    font-family: var(--font-family-h1);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--font-color-base);
    line-height: 1.2;
}

.features-price-amount span {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.65;
}

.features-price-note {
    margin: 0;
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--font-color-base);
    opacity: 0.75;
}

.features-price-actions {
    flex: 0 0 auto;
}

.features-timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    align-items: stretch;
}

.features-panel {
    display: flex;
    flex-direction: column;
    background: var(--white, #fff);
    border: 1px solid var(--back-bdr-grey, #e0e0e0);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    min-width: 0;
}

.features-panel-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--back-bdr-grey, #e0e0e0);
    background: linear-gradient(135deg, rgba(102, 153, 204, 0.1) 0%, rgba(102, 153, 204, 0.02) 100%);
}

.features-panel-now .features-panel-header {
    border-top: 4px solid var(--sys-blue);
}

.features-panel-latest .features-panel-header {
    border-top: 4px solid var(--sys-green, #669966);
    background: linear-gradient(135deg, rgba(102, 153, 102, 0.1) 0%, rgba(102, 153, 102, 0.02) 100%);
}

.features-panel-next {
    background: var(--features-navy);
    border-color: var(--features-navy-mid);
    box-shadow: 0 8px 28px rgba(26, 54, 93, 0.28);
}

.features-panel-next .features-panel-header {
    background: linear-gradient(135deg, rgba(36, 59, 107, 0.9) 0%, rgba(26, 54, 93, 0.95) 100%);
    border-bottom-color: rgba(201, 162, 39, 0.35);
    border-top: 4px solid var(--features-gold);
}

.features-panel-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: var(--font-family-h1);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--sys-blue);
    color: var(--white, #fff);
}

.features-panel-latest .features-panel-tag {
    background: var(--sys-green, #669966);
}

.features-panel-next .features-panel-tag {
    background: var(--features-gold);
    color: var(--features-navy);
}

.features-panel-heading {
    margin: 0;
    font-family: var(--font-family-h1);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--font-color-base);
}

.features-panel-next .features-panel-heading {
    color: #ffffff;
}

.features-panel-sub {
    margin: 0;
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--font-color-base);
    opacity: 0.75;
}

.features-panel-next .features-panel-sub {
    color: var(--features-navy-text);
    opacity: 1;
}

.features-panel-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 6px 18px 18px 18px;
}

.features-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--back-bdr-grey, #e0e0e0);
}

.features-item:last-child {
    border-bottom: none;
}

.features-panel-next .features-item {
    border-bottom-color: rgba(197, 212, 232, 0.18);
}

.features-item-title {
    display: block;
    margin: 0 0 8px 0;
    font-family: var(--font-family-h1);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--font-color-base);
}

.features-panel-next .features-item-title {
    color: #ffffff;
}

.features-item-text {
    margin: 0;
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--font-color-base);
    opacity: 0.85;
}

.features-panel-next .features-item-text {
    color: var(--features-navy-text);
    opacity: 1;
}

.features-wingman {
    position: relative;
    overflow: hidden;
    margin: 12px 0 10px 0;
    padding: 16px;
    border-radius: 10px;
    background: var(--features-navy-mid);
    border: 1px solid rgba(201, 162, 39, 0.45);
    animation: featuresWingmanPulse 2.8s ease-out infinite;
}

.features-wingman-burst {
    position: absolute;
    top: 18%;
    left: 50%;
    width: 220%;
    aspect-ratio: 1;
    pointer-events: none;
    z-index: 0;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(201, 162, 39, 0.42) 0deg 8deg,
        transparent 8deg 22deg
    );
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.75) 0%, transparent 62%);
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.75) 0%, transparent 62%);
    animation: featuresWingmanBurst 4.5s ease-in-out infinite;
}

.features-wingman-burst::after {
    content: '';
    position: absolute;
    inset: 28%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.35) 0%, transparent 70%);
}

.features-wingman-content {
    position: relative;
    z-index: 1;
}

.features-wingman-kicker {
    margin: 0 0 6px 0;
    font-family: var(--font-family-h1);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--features-gold);
}

.features-wingman-title {
    margin: 0 0 8px 0;
    font-family: var(--font-family-h1);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.features-wingman-lead {
    margin: 0 0 10px 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--features-navy-heading);
}

.features-wingman-text {
    margin: 0 0 12px 0;
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--features-navy-text);
}

.features-wingman-text strong {
    color: #ffffff;
    font-weight: 700;
}

.features-wingman-example {
    margin: 0 0 12px 0;
    padding: 10px 12px;
    border-left: 3px solid var(--features-gold);
    background: rgba(26, 54, 93, 0.55);
    border-radius: 0 8px 8px 0;
    font-size: var(--font-size-base);
    line-height: 1.7;
    font-style: italic;
    color: var(--features-navy-heading);
}

.features-wingman-list {
    margin: 0;
    padding-left: 20px;
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--features-navy-text);
}

.features-wingman-list li + li {
    margin-top: 6px;
}

@media (max-width: 980px) {
    .features-timeline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .features-price-actions {
        width: 100%;
    }

    .features-price-actions .green-button {
        width: 100%;
        justify-content: center;
    }

    .features-panel-header,
    .features-panel-body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .features-wingman {
        padding: 14px;
    }

    .features-wingman-title {
        font-size: 1.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .features-price,
    .features-wingman,
    .features-wingman-burst {
        animation: none;
    }

    .features-price {
        opacity: 1;
    }
}
