/* Financial Fitness & Digital Products Page */

.ff-hero {
    background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 50%, #2D6A56 100%);
    color: white;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.ff-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.ff-hero .container {
    position: relative;
    z-index: 1;
}

.ff-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.ff-hero h1 {
    color: white;
    font-size: clamp(2rem, 5vw, 3.25rem);
    max-width: 720px;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.ff-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.125rem;
    max-width: 580px;
    margin-bottom: 2rem;
}

.ff-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.ff-stat {
    text-align: left;
}

.ff-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--soft-gold);
}

.ff-stat-label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

/* Pricing */
.ff-pricing {
    padding: 80px 0;
    background: var(--bg-light);
}

.ff-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 3rem;
}

.ff-plan-card {
    background: white;
    border-radius: 16px;
    padding: 32px 28px;
    border: 2px solid var(--border-light);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.ff-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.ff-plan-card.featured {
    border-color: var(--primary-green);
    box-shadow: 0 8px 30px rgba(27, 77, 62, 0.15);
}

.ff-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--soft-gold);
    color: var(--charcoal-dark);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 50px;
    white-space: nowrap;
}

.ff-plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ff-plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
    margin: 1rem 0 0.25rem;
}

.ff-plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.ff-plan-original {
    font-size: 0.9375rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.ff-plan-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.ff-plan-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.ff-plan-features li {
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ff-plan-features li::before {
    content: '✓';
    color: var(--primary-green);
    font-weight: 700;
    flex-shrink: 0;
}

/* Product Cards */
.ff-products {
    padding: 80px 0;
}

.ff-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 3rem;
}

.ff-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

.ff-product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.ff-product-header {
    padding: 28px 28px 20px;
    position: relative;
}

.ff-product-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: var(--bg-light);
}

.ff-product-card.locked .ff-product-body {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
    max-height: 120px;
    overflow: hidden;
}

.ff-product-lock-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(255,255,255,0.95) 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 24px;
    z-index: 2;
}

.ff-lock-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.ff-product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.ff-product-subtitle {
    font-size: 0.8125rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.ff-product-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.ff-product-meta {
    display: flex;
    gap: 16px;
    padding: 16px 28px;
    background: var(--bg-light);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.ff-product-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ff-product-actions {
    padding: 20px 28px 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ff-product-actions .btn {
    flex: 1;
    min-width: 140px;
}

.ff-unlocked-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

/* Fitness Suite Group */
.ff-suite-banner {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
    border-radius: 20px;
    padding: 40px;
    color: white;
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.ff-suite-banner h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.ff-suite-banner p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.ff-suite-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 2rem;
}

.ff-suite-mini {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.ff-suite-mini:hover {
    background: rgba(255,255,255,0.15);
}

.ff-suite-mini .icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.ff-suite-mini .name {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.ff-suite-mini.completed {
    border-color: var(--soft-gold);
}

.ff-suite-mini.completed::after {
    content: '✓';
    display: block;
    font-size: 0.6875rem;
    color: var(--soft-gold);
    margin-top: 4px;
}

/* Assessment Modal */
.ff-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ff-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.ff-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.ff-modal-overlay.active .ff-modal {
    transform: scale(1);
}

.ff-modal.wide {
    max-width: 900px;
}

.ff-modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}

.ff-modal-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

.ff-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.ff-modal-close:hover {
    background: var(--border-light);
}

.ff-modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.ff-modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Progress */
.ff-progress-wrap {
    margin-bottom: 2rem;
}

.ff-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.ff-progress-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 50px;
    overflow: hidden;
}

.ff-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--sage));
    border-radius: 50px;
    transition: width 0.4s ease;
    width: 0%;
}

.ff-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.ff-section-letter {
    width: 28px;
    height: 28px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.ff-question {
    margin-bottom: 1.75rem;
}

.ff-question-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.ff-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ff-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9375rem;
}

.ff-option:hover {
    border-color: var(--primary-green-light);
    background: rgba(27, 77, 62, 0.03);
}

.ff-option.selected {
    border-color: var(--primary-green);
    background: rgba(27, 77, 62, 0.06);
}

.ff-option input {
    accent-color: var(--primary-green);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ff-yesno-group {
    display: flex;
    gap: 12px;
}

.ff-yesno-btn {
    flex: 1;
    padding: 14px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.ff-yesno-btn:hover {
    border-color: var(--primary-green-light);
}

.ff-yesno-btn.selected.yes {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
}

.ff-yesno-btn.selected.no {
    border-color: var(--border-medium);
    background: var(--bg-light);
}

.ff-form-field {
    margin-bottom: 1.25rem;
}

.ff-form-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--charcoal);
}

.ff-form-field input,
.ff-form-field select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: var(--transition);
}

.ff-form-field input:focus,
.ff-form-field select:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* Checklist */
.ff-checklist-category {
    margin-bottom: 2rem;
}

.ff-checklist-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
}

.ff-checklist-cat-header h4 {
    margin: 0;
    font-size: 1rem;
}

.ff-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
    border-bottom: 1px solid var(--bg-light);
}

.ff-checklist-item input {
    accent-color: var(--primary-green);
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.ff-checklist-item.checked span {
    color: var(--primary-green);
}

.ff-checklist-progress {
    position: sticky;
    top: 0;
    background: white;
    padding: 16px 0;
    margin-bottom: 1rem;
    z-index: 1;
}

.ff-checklist-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

/* Results */
.ff-results {
    text-align: center;
    padding: 1rem 0;
}

.ff-score-ring {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.ff-score-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.ff-score-ring circle {
    fill: none;
    stroke-width: 10;
}

.ff-score-ring .bg {
    stroke: var(--bg-light);
}

.ff-score-ring .fill {
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.ff-score-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ff-score-value .number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.ff-score-value .of {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.ff-result-level {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ff-result-message {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.ff-result-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 2rem 0;
    text-align: left;
}

.ff-breakdown-item {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 16px;
}

.ff-breakdown-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.ff-breakdown-item .score {
    font-size: 1.125rem;
    font-weight: 700;
}

.ff-email-note {
    background: rgba(201, 169, 98, 0.12);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 0.875rem;
    color: var(--charcoal);
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Dashboard */
.ff-dashboard {
    padding: 2rem 0;
}

.ff-dashboard-grid {
    display: grid;
    gap: 16px;
    margin: 2rem 0;
}

.ff-dash-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-light);
    border-radius: 12px;
}

.ff-dash-row.header {
    background: transparent;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 8px 20px;
}

.ff-dash-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ff-dash-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
}

.ff-dash-status {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.ff-wbi-card {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    border-radius: 20px;
    padding: 32px;
    color: white;
    text-align: center;
    margin-top: 2rem;
}

.ff-wbi-score {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--soft-gold);
}

.ff-wbi-level {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0.5rem 0 1.5rem;
}

.ff-wbi-progress {
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    height: 12px;
    overflow: hidden;
    margin: 1rem 0;
}

.ff-wbi-progress-fill {
    height: 100%;
    background: var(--soft-gold);
    border-radius: 50px;
    transition: width 1s ease;
}

.ff-wbi-next {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
}

/* Unlock Modal */
.ff-unlock-form {
    display: grid;
    gap: 1rem;
}

.ff-plan-select {
    display: grid;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.ff-plan-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.ff-plan-option:hover,
.ff-plan-option.selected {
    border-color: var(--primary-green);
    background: rgba(27, 77, 62, 0.04);
}

.ff-plan-option input {
    accent-color: var(--primary-green);
}

.ff-plan-option-info {
    flex: 1;
}

.ff-plan-option-info strong {
    display: block;
    font-size: 0.9375rem;
}

.ff-plan-option-info span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.ff-plan-option-price {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.125rem;
}

.ff-demo-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
}

/* Goal check */
.ff-goal-grid {
    display: grid;
    gap: 12px;
}

.ff-goal-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
}

.ff-goal-item.active {
    border-color: var(--primary-green);
    background: rgba(27, 77, 62, 0.04);
}

.ff-goal-item input[type="number"] {
    width: 120px;
    padding: 8px 10px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.875rem;
}

/* Animations */
@keyframes ff-fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.ff-animate-in {
    animation: ff-fadeIn 0.4s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .ff-hero {
        padding: 120px 0 60px;
    }

    .ff-suite-banner {
        grid-template-columns: 1fr;
        padding: 28px;
    }

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

    .ff-dash-row {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .ff-dash-row.header {
        display: none;
    }

    .ff-modal {
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        margin-top: auto;
    }

    .ff-modal-overlay.active {
        align-items: flex-end;
        padding: 0;
    }

    .ff-product-grid {
        grid-template-columns: 1fr;
    }

    .ff-yesno-group {
        flex-direction: column;
    }
}

/* Emailed Report Preview Accordion */
.ff-opinion-details[open] .chevron {
    transform: rotate(180deg);
}
.ff-opinion-summary::-webkit-details-marker {
    display: none;
}
.ff-opinion-summary {
    list-style: none;
}
