﻿/* Complete Stylesheet - Landing + Test Pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary: #1a4d2e;
    --primary-light: #2d6a4f;
    --accent: #d4a574;
    --text-dark: #2b2b2b;
    --text-light: #5a5a5a;
    --bg-cream: #faf8f5;
    --bg-white: #ffffff;
    --border: #e8e3db;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text-dark);
    background: var(--bg-cream);
    line-height: 1.6;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.progress-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border);
    background: var(--bg-cream);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.progress-chip__label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: var(--primary);
}

.progress-chip__count strong {
    color: var(--primary);
}

.progress-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.progress-btn {
    border: 1px solid var(--border);
    background: var(--bg-white);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.progress-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.progress-btn--ghost {
    background: transparent;
}

.progress-panel {
    position: absolute;
    top: 120%;
    right: 0;
    width: 280px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 1rem;
    display: none;
    z-index: 200;
}

.progress-panel--open {
    display: block;
}

.progress-panel h4 {
    margin: 0 0 0.5rem;
    font-family: 'Crimson Pro', serif;
    color: var(--primary);
    font-size: 1rem;
}

.progress-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.progress-panel__item {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-cream);
}

.progress-panel__title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.progress-panel__meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.24s ease, filter 0.24s ease;
    transform-origin: center;
}

body.home-at-top .logo img {
    transform: scale(1.15);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--bg-cream);
    color: var(--text-dark);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-dark);
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ===== LANDING PAGE SECTIONS ===== */
.features {
    padding: 4rem 0;
    background: var(--bg-white);
    position: relative;
    z-index: 10;
}

.section-title {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 1.5rem;
    background: var(--bg-cream);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent);
    transition: height 0.4s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.feature-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    margin-top: 0;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.tests-section {
    padding: 3rem 0;
    background: var(--bg-cream);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* Elegant signature-like line animation */
.signature-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.tests-section > .container {
    position: relative;
    z-index: 2;
}

.tests-stamp {
    position: fixed;
    top: 120px;
    right: 24px;
    z-index: 120;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    background: #fff7ee;
    border: 2px solid rgba(212, 165, 116, 0.5);
    color: #5c3a16;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(212, 165, 116, 0.18);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    width: 260px;
    text-align: center;
}

@media (max-width: 768px) {
    .tests-stamp {
        top: 92px;
        right: 16px;
        padding: 0.55rem 0.9rem;
        font-size: 0.72rem;
    }
}

.tests-stamp strong {
    color: var(--primary);
    font-size: 0.9rem;
}

.tests-stamp__action {
    flex-basis: 100%;
    border: 1px solid rgba(26, 77, 46, 0.35);
    background: rgba(26, 77, 46, 0.1);
    color: var(--primary);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tests-stamp__action:hover {
    background: rgba(26, 77, 46, 0.16);
}

.tests-stamp__more {
    background: rgba(212, 165, 116, 0.14);
    border-color: rgba(212, 165, 116, 0.45);
    color: #5f3b16;
}

.tests-stamp__more:hover {
    background: rgba(212, 165, 116, 0.22);
}

.tests-stamp__userid {
    flex-basis: 100%;
    margin-top: 0.2rem;
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
    color: #6b4b28;
    word-break: break-all;
}

.payment-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 24, 20, 0.4);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.payment-drawer-overlay.is-open {
    opacity: 1;
}

.payment-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100%;
    background: #ffffff;
    border-left: 1px solid var(--border);
    box-shadow: -18px 0 36px rgba(0, 0, 0, 0.18);
    padding: 1.1rem 1rem 1.4rem;
    transform: translateX(104%);
    transition: transform 0.22s ease;
    overflow-y: auto;
}

.payment-drawer-overlay.is-open .payment-drawer {
    transform: translateX(0);
}

.payment-drawer__close {
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-dark);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
}

.payment-drawer__title {
    margin: 0.7rem 0 0.35rem;
    font-family: 'Crimson Pro', serif;
    color: var(--primary);
    font-size: 1.6rem;
}

.payment-drawer__desc {
    margin: 0 0 0.9rem;
    color: var(--text-light);
}

.payment-drawer__actions {
    display: grid;
    gap: 0.8rem;
}

.payment-drawer__labels {
    margin-top: 0.6rem;
    display: grid;
    gap: 0.4rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.dashboard-info {
    margin: 0.9rem 0 1.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-white);
    box-shadow: 0 12px 26px rgba(26, 77, 46, 0.08);
    position: relative;
}

.dashboard-info .section-title {
    margin-bottom: 0.75rem;
    text-align: left;
    font-size: 1.9rem;
}

.dashboard-info__row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.6rem 0;
}

.dashboard-info__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(26, 77, 46, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.dashboard-info p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.dashboard-info p strong {
    color: var(--primary);
}


.tests-taken-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-light);
}

.tests-taken-list li + li {
    margin-top: 0.4rem;
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.test-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.test-card--taken {
    opacity: 0.6;
    filter: grayscale(40%);
    cursor: not-allowed;
    pointer-events: none;
}

.test-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.test-tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.test-card h4 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.test-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.test-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.test-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.test-status {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.3rem 0.7rem;
    background: rgba(26, 77, 46, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cta-section {
    padding: 8rem 0;
    background: var(--primary);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-light {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
    border: 2px solid white;
}

.cta-button-light:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.test-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.badge--article {
    background: rgba(26, 77, 46, 0.1);
    color: var(--primary);
    border: 1px solid rgba(26, 77, 46, 0.25);
}

.video-badge-btn {
    font-family: inherit;
    cursor: pointer;
}

.video-badge-btn:hover {
    opacity: 0.8;
}

.badge--group {
    display: none;
}

.ribbon {
    position: absolute;
    top: 1rem;
    right: -0.6rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px 6px 6px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: rotate(3deg);
    z-index: 3;
}

/* ===== TEAM SECTION ===== */
.team-section {
    padding: 4rem 0;
    background: radial-gradient(circle at 20% 20%, rgba(212, 165, 116, 0.18), transparent 36%), 
                radial-gradient(circle at 80% 10%, rgba(26, 77, 46, 0.12), transparent 32%),
                linear-gradient(180deg, #f6f3ec 0%, #f2f7f3 45%, #eef6f1 100%);
    position: relative;
    z-index: 10;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-cream);
    cursor: pointer;
    transition: all 0.25s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.team-card--lead {
    grid-column: span 2;
}

.team-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    margin-left: 0.5rem;
    border-radius: 999px;
    background: rgba(26, 77, 46, 0.12);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.team-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 12px;
}

.team-card--lead .team-photo {
    width: 84px;
    height: 84px;
}

.team-photo-img {
    object-fit: cover;
    background: none;
    margin-top: 8px;
}

.team-name {
    margin: 0 0 0.2rem;
    color: var(--primary);
    font-family: 'Crimson Pro', serif;
    font-size: 1.2rem;
}

.team-role {
    margin: 0 0 0.35rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.team-snippet,
.team-bio {
    margin: 0;
    color: var(--text-light);
    line-height: 1.5;
}

.team-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 300;
    animation: fadeIn 0.3s ease;
}

.team-modal--open {
    display: block;
}

.team-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.team-modal__dialog {
    position: relative;
    max-width: 640px;
    margin: 8vh auto 0;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    animation: slideUp 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.team-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* Video Modal */
.team-modal__dialog--video {
    max-width: 800px;
    padding: 1.5rem;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-top: 1rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Video Card */
.video-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.video-card .video-caption {
    font-family: 'Crimson Pro', serif;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-light);
    margin-top: 0.75rem;
    padding-left: 0.25rem;
}

.video-card .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    z-index: 1;
}

.video-card .video-container--wistia {
    padding-bottom: 0;
}

.video-card .video-container--wistia wistia-player {
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.video-card .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Category Filter Buttons */
.category-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--border);
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Work Sans', sans-serif;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn--active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    position: relative;
    z-index: 10;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

#footer-modal-body {
    white-space: pre-line;
    line-height: 1.65;
    color: var(--text-dark);
    max-height: 60vh;
    overflow-y: auto;
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    position: relative;
}

.footer-modal-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0.75rem 0 1rem;
    border: 2px solid #efe7de;
}

#footer-modal-title {
    color: var(--primary);
    font-family: 'Crimson Pro', serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

#footer-modal-body::-webkit-scrollbar {
    width: 8px;
}

#footer-modal-body::-webkit-scrollbar-track {
    background: #f2ede6;
    border-radius: 8px;
}

#footer-modal-body::-webkit-scrollbar-thumb {
    background: #cbb49b;
    border-radius: 8px;
}

#footer-modal-body::-webkit-scrollbar-thumb:hover {
    background: #b99b7d;
}

#footer-modal-body::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 1.25rem;
    bottom: 1.25rem;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), rgba(212, 165, 116, 0.2));
    border-radius: 999px;
}

#footer-modal-body strong {
    display: inline-block;
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.footer h4 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
}

.footer-panels {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-panel {
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.32), rgba(212, 165, 116, 0.12));
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    text-align: left;
    cursor: pointer;
    width: 100%;
    font: inherit;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.footer-panel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.footer-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-color: var(--accent);
}

.footer-panel:hover::before {
    transform: scaleY(1);
}

.footer-panel h5 {
    margin: 0;
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    color: var(--accent);
}

.footer-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-logo {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    vertical-align: text-bottom;
}

/* ===== TEST PAGE STYLES ===== */
.test-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.test-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}


.test-header h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.test-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
}

.test-instructions {
    background: var(--bg-cream);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
}

.test-instructions h3 {
    font-family: 'Crimson Pro', serif;
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.test-instructions p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.test-taken-notice {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(26, 77, 46, 0.08);
    border-left: 3px solid var(--primary);
    border-radius: 6px;
    color: var(--primary);
    font-weight: 600;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 10px;
    margin: 2rem 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Questions Container */
#questions-container {
    margin: 2rem 0;
}

.question-card {
    background: var(--bg-cream);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.question-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.1);
}

.question-card.question-answered {
    opacity: 0.75;
    box-shadow: inset 0 0 0 1px rgba(26, 77, 46, 0.2);
}

.question-number {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.question-text {
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.option-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-label:hover {
    border-color: var(--accent);
    background: rgba(212, 165, 116, 0.05);
}

.option-label input[type="radio"] {
    margin-top: 0.2rem;
    cursor: pointer;
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.option-label span {
    color: var(--text-dark);
    line-height: 1.5;
}

.option-label.selected {
    background: rgba(26, 77, 46, 0.05);
    border-color: var(--primary);
}

.option-label.selected span {
    color: var(--primary);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 77, 46, 0.2);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--border);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
}

.btn-success:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.chart-toggle.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.test-navigation {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.test-form {
    margin-top: 2rem;
}

/* Results Page */
.result-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.result-score {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.result-score h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.result-score p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.result-details {
    background: var(--bg-cream);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.result-details h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-family: 'Crimson Pro', serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 0.8rem 0;
    }

    .nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .nav-brand {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .nav-brand .logo {
        order: 1;
    }

    .nav-toggle {
        display: inline-flex;
        order: 2;
    }

    .progress-chip {
        display: none;
        order: 3;
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.5rem;
        padding: 0.25rem 0.6rem;
        font-size: 0.82rem;
    }

    .progress-actions {
        display: none;
        order: 4;
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
        margin-top: 0.4rem;
    }

    .nav.nav--open .progress-chip {
        display: inline-flex;
    }

    .nav.nav--open .progress-actions {
        display: flex;
    }

    .nav-links {
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border);
    }

    .nav.nav--open .nav-links {
        display: flex;
    }

    .features-grid,
    .tests-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .test-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .test-header h1 {
        font-size: 1.5rem;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .test-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .team-card--lead {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .features-grid,
    .tests-grid {
        gap: 1.5rem;
    }

    .feature-card,
    .test-card {
        padding: 1.5rem;
    }

    .test-container {
        border-radius: 4px;
    }

    .option-label {
        padding: 0.8rem;
        gap: 0.8rem;
    }
}
/* ===== PAGE SECTIONS ===== */
.page-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESULTS PAGE ===== */
.result-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-cream);
    border-radius: 8px;
    border: 2px solid var(--accent);
}

.result-box--full {
    grid-template-columns: 1fr;
}

/* Chart tooltip */
#factors-chart {
    position: relative;
}

.chart-tooltip {
    position: absolute;
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-dark);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    pointer-events: none;
    white-space: nowrap;
    z-index: 5;
}

.result-symbol {
    color: var(--primary);
    font-weight: 700;
    margin-right: 0.5rem;
}

.factor-note {
    margin: 0.5rem 0 1.25rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.highlight-marker {
    position: relative;
    padding: 0 0.15em;
    font-weight: 700;
    z-index: 0;
}

.highlight-marker::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.05em;
    height: 0.55em;
    width: 0%;
    background: rgba(255, 222, 89, 0.8);
    z-index: -1;
    animation: markerSwipe 2.6s ease-in-out forwards;
    border-radius: 4px;
}

@keyframes markerSwipe {
    0% { width: 0%; }
    100% { width: 100%; }
}

.result-score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-family: 'Crimson Pro', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.score-max {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.result-interpretation {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-interpretation h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.result-interpretation p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

.result-answers {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.result-answers h3 {
    font-family: 'Crimson Pro', serif;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.result-row {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-white);
    margin: 1.5rem 0;
    overflow: hidden;
}

.result-row__summary {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    background: #fbfaf7;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "head toggle"
        "flags toggle";
    gap: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
}

.result-row__summary::-webkit-details-marker {
    display: none;
}

.result-row__head {
    grid-area: head;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.6rem 1rem;
}

.result-row__title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
}

.result-row__meta {
    color: var(--text-light);
    font-size: 0.95rem;
}

.result-row__flags {
    grid-area: flags;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.result-row__actions {
    grid-area: toggle;
    align-self: start;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.status-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(26, 77, 46, 0.3);
    background: rgba(26, 77, 46, 0.08);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-action:hover {
    background: rgba(26, 77, 46, 0.14);
    transform: translateY(-1px);
}

.row-toggle,
.row-delete {
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--primary);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.row-toggle:hover,
.row-delete:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.row-delete {
    border: 1px solid rgba(244, 67, 54, 0.3);
    background: rgba(244, 67, 54, 0.08);
    color: #c62828;
}

.row-delete:hover {
    background: rgba(244, 67, 54, 0.16);
    border-color: rgba(244, 67, 54, 0.5);
    box-shadow: 0 4px 10px rgba(198, 40, 40, 0.14);
}

.status-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #f3efe8;
    color: var(--text-light);
    font-size: 0.82rem;
    font-weight: 600;
}

.status-flag.is-done {
    background: rgba(26, 77, 46, 0.12);
    border-color: rgba(26, 77, 46, 0.25);
    color: var(--primary);
}

.result-row__content {
    padding: 1.5rem;
    background: var(--bg-white);
}

.result-funnel {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: #fbfaf7;
}

.result-funnel__title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.result-funnel__steps {
    display: grid;
    gap: 0.5rem;
}

.result-funnel__step {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: #f3efe8;
    color: var(--text-light);
    font-size: 0.95rem;
}

.result-funnel__step.is-done {
    background: rgba(26, 77, 46, 0.12);
    color: var(--primary);
    font-weight: 600;
}

.result-payment {
    margin: 1.25rem 0 0;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid #e2c9ab;
    background: #fff7ee;
}

.result-payment p {
    margin: 0 0 1rem;
    color: #5c3a16;
    line-height: 1.6;
}

.result-payment__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    align-items: center;
}

.result-payment__labels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6b3d14;
    text-align: center;
}

.mp-payment-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
}

.answers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answer-item {
    padding: 1rem;
    background: var(--bg-cream);
    border-left: 4px solid var(--accent);
    border-radius: 4px;
}

.answer-question {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.answer-value {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Factors breakdown */
.factor-card {
    background: var(--bg-cream);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.9rem;
}

.factor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.factor-title {
    font-weight: 700;
    color: var(--primary);
}

.factor-level {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    background: rgba(26, 77, 46, 0.08);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.factor-bar {
    display: grid;
    grid-template-columns: 32px 1fr 48px;
    align-items: center;
    gap: 0.75rem;
}

.factor-track {
    height: 12px;
    background: #e9e2d9;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.factor-fill {
    height: 100%;
    background: linear-gradient(90deg, #2d6a4f, #1a4d2e);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    transition: width 0.9s ease;
}

.factor-value {
    line-height: 1;
}

.factor-min,
.factor-max {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
}

.factor-interpretation {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.6;
}


/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.1);
}

.form-group input::placeholder {
    color: var(--text-light);
}

/* ===== PAYMENT PAGE ===== */
.payment-message {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
}

.payment-message p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .result-box {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .score-number {
        font-size: 3rem;
    }

    .payment-message p {
        font-size: 0.95rem;
    }
}

.analysis-btn {
  background: #1a4d2e;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
  transition: background 0.3s;
}

.analysis-btn:hover {
  background: #2d7a47;
}

.actions-bar { flex-wrap: nowrap; align-items: center; gap: 1rem; }
.actions-bar .post-action { display: inline-flex; }
@media (max-width: 768px) { .actions-bar { flex-wrap: wrap; } }
