/* ============================================================
   FIND MY STARTUP'S GAP – Page Styles
   Palette: #0D0126 dark, #8D69BF accent, #351B59 deep purple,
            #BFBFBF silver, #262626 charcoal, #fff text
   ============================================================ */

/* ---------- Hero ---------- */
.fg-hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
}

.fg-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(141, 105, 191, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.fg-hero .container {
    position: relative;
    z-index: 1;
}

.fg-hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: #fff;
}

.fg-hero h1 span {
    color: #8D69BF;
}

.fg-hero .fg-subline {
    font-size: 18px;
    font-weight: 600;
    color: #8D69BF;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.fg-hero .fg-desc {
    max-width: 560px;
    margin: 0 auto 36px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.fg-hero .fg-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.fg-hero .fg-ctas .theme-btn {
    min-width: 200px;
}

.fg-btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    background: transparent;
}

.fg-btn-secondary:hover {
    border-color: #8D69BF;
    color: #8D69BF;
}

/* ---------- Demo-mode badge ---------- */
.fg-demo-badge {
    display: none;
    margin: 0 auto 24px;
    padding: 8px 20px;
    background: rgba(141, 105, 191, 0.12);
    border: 1px solid rgba(141, 105, 191, 0.3);
    border-radius: 20px;
    color: #8D69BF;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: fit-content;
}

.fg-demo-badge.active {
    display: block;
}

/* ---------- Wizard Section ---------- */
.fg-wizard-section {
    display: none;
    padding: 60px 0 80px;
}

.fg-wizard-section.active {
    display: block;
}

/* Stepper */
.fg-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
}

.fg-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
}

.fg-step-dot.completed {
    background: #8D69BF;
}

.fg-step-dot.current {
    background: #8D69BF;
    box-shadow: 0 0 12px rgba(141, 105, 191, 0.5);
    transform: scale(1.3);
}

.fg-step-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    margin-left: 12px;
    letter-spacing: 1px;
}

.fg-step-label span {
    color: #8D69BF;
}

/* Category badge */
.fg-category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(141, 105, 191, 0.1);
    border: 1px solid rgba(141, 105, 191, 0.2);
    border-radius: 20px;
    color: #8D69BF;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

/* Question card */
.fg-question-card {
    max-width: 680px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px;
    position: relative;
}

.fg-question-card h3 {
    font-size: 22px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 28px;
    line-height: 1.4;
}

/* Inputs */
.fg-input-group {
    margin-bottom: 24px;
}

.fg-input-group label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fg-input,
.fg-select,
.fg-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
}

.fg-input:focus,
.fg-select:focus,
.fg-textarea:focus {
    border-color: #8D69BF;
}

.fg-select {
    cursor: pointer;
    appearance: auto;
}

.fg-select option {
    background: #0D0126;
    color: #fff;
}

.fg-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Multi-choice */
.fg-multi-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fg-choice-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.fg-choice-btn:hover {
    border-color: #8D69BF;
    color: #8D69BF;
}

.fg-choice-btn.selected {
    background: rgba(141, 105, 191, 0.12);
    border-color: #8D69BF;
    color: #8D69BF;
}

/* Wizard actions */
.fg-wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

.fg-btn-back {
    padding: 12px 28px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.fg-btn-back:hover {
    border-color: #fff;
    color: #fff;
}

/* ---------- Chat / Follow-up ---------- */
.fg-chat-area {
    max-width: 680px;
    margin: 24px auto 0;
    display: none;
}

.fg-chat-area.active {
    display: block;
}

.fg-chat-bubble {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: fgFadeUp 0.4s ease;
}

.fg-chat-bubble .fg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(141, 105, 191, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    color: #8D69BF;
    font-weight: 700;
}

.fg-chat-bubble .fg-bubble-content {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.6;
    max-width: 540px;
}

.fg-chat-bubble.user {
    flex-direction: row-reverse;
}

.fg-chat-bubble.user .fg-avatar {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.fg-chat-bubble.user .fg-bubble-content {
    background: rgba(141, 105, 191, 0.08);
    border-color: rgba(141, 105, 191, 0.2);
}

.fg-chat-input-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.fg-chat-input-row .fg-input {
    flex: 1;
}

.fg-chat-send {
    padding: 14px 24px;
    background: #8D69BF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s;
    font-size: 14px;
}

.fg-chat-send:hover {
    opacity: 0.85;
}

/* ---------- Results Section ---------- */
.fg-results-section {
    display: none;
    padding: 80px 0;
}

.fg-results-section.active {
    display: block;
}

.fg-results-header {
    text-align: center;
    margin-bottom: 56px;
}

.fg-results-header h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.fg-results-header h2 span {
    color: #8D69BF;
}

/* Confidence badge */
.fg-confidence {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 16px;
}

.fg-confidence.low {
    background: rgba(255, 82, 82, 0.12);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #ff5252;
}

.fg-confidence.medium {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.fg-confidence.high {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.fg-confidence i {
    font-size: 16px;
}

/* Gap card */
.fg-gap-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px;
    margin-bottom: 28px;
    transition: border-color 0.3s;
}

.fg-gap-card:hover {
    border-color: rgba(141, 105, 191, 0.35);
}

.fg-gap-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.fg-gap-card-header h3 {
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    margin: 0;
}

.fg-severity {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.fg-severity.s1 {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.fg-severity.s2 {
    background: rgba(139, 195, 74, 0.15);
    color: #8bc34a;
}

.fg-severity.s3 {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.fg-severity.s4 {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.fg-severity.s5 {
    background: rgba(255, 82, 82, 0.15);
    color: #ff5252;
}

.fg-gap-detail {
    margin-bottom: 20px;
}

.fg-gap-detail-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 6px;
}

.fg-gap-detail p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0;
}

/* Experiment box */
.fg-experiment-box {
    background: rgba(141, 105, 191, 0.06);
    border: 1px solid rgba(141, 105, 191, 0.15);
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}

.fg-experiment-box h4 {
    font-size: 16px;
    font-weight: 700;
    color: #8D69BF;
    margin-bottom: 16px;
}

.fg-experiment-box .fg-exp-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.fg-experiment-box .fg-exp-meta span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.fg-experiment-box .fg-exp-meta span b {
    color: #fff;
}

.fg-exp-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    counter-reset: expstep;
}

.fg-exp-steps li {
    counter-increment: expstep;
    padding: 8px 0 8px 32px;
    position: relative;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    border-left: 2px solid rgba(141, 105, 191, 0.25);
}

.fg-exp-steps li::before {
    content: counter(expstep);
    position: absolute;
    left: -11px;
    top: 8px;
    width: 20px;
    height: 20px;
    background: #0D0126;
    border: 2px solid rgba(141, 105, 191, 0.4);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8D69BF;
}

.fg-decision-rule {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.fg-decision-tag {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fg-decision-tag.go {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.fg-decision-tag.iterate {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.fg-decision-tag.kill {
    background: rgba(255, 82, 82, 0.15);
    color: #ff5252;
}

/* ---------- 14-Day Plan ---------- */
.fg-plan-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fg-plan-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 32px;
    text-align: center;
}

.fg-plan-section h3 span {
    color: #8D69BF;
}

.fg-plan-item {
    display: flex;
    gap: 24px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.fg-plan-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(141, 105, 191, 0.12);
    border: 1px solid rgba(141, 105, 191, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #8D69BF;
}

.fg-plan-content h4 {
    font-size: 17px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}

.fg-plan-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
}

.fg-plan-content .fg-plan-timeframe {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    background: rgba(141, 105, 191, 0.1);
    border-radius: 4px;
    font-size: 12px;
    color: #8D69BF;
    font-weight: 600;
}

/* ---------- CTA Footer Buttons ---------- */
.fg-report-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
}

/* ---------- Disclaimer ---------- */
.fg-disclaimer {
    text-align: center;
    margin-top: 40px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ---------- Sample Report Section ---------- */
.fg-sample-section {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fg-sample-section .fg-sample-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(141, 105, 191, 0.1);
    border: 1px solid rgba(141, 105, 191, 0.2);
    border-radius: 20px;
    color: #8D69BF;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.fg-sample-section h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.fg-sample-section h2 span {
    color: #8D69BF;
}

/* ---------- Collapsible Sample Report ---------- */
.fg-sample-content {
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
}

.fg-sample-content.open {
    display: block !important;
}

/* ---------- Signup Modal ---------- */
.fg-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(13, 1, 38, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fgFadeIn 0.25s ease;
}

.fg-modal-overlay.active {
    display: flex;
}

.fg-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #1A0E2E;
    border: 1px solid rgba(141, 105, 191, 0.2);
    border-radius: 20px;
    padding: 40px 36px 36px;
    animation: fgSlideUp 0.35s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.fg-modal h3 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: center;
}

.fg-modal h3 span {
    color: #8D69BF;
}

.fg-modal-desc {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 28px;
    line-height: 1.6;
}

.fg-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.fg-modal-close:hover {
    border-color: #ff5252;
    color: #ff5252;
}

.fg-modal-field {
    margin-bottom: 18px;
}

.fg-modal-field label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.fg-required {
    color: #ff5252;
}

.fg-modal-field .fg-input,
.fg-modal-field .fg-select {
    width: 100%;
}

@keyframes fgFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fgSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---------- Animations ---------- */
@keyframes fgFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fg-animate-in {
    animation: fgFadeUp 0.5s ease forwards;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .fg-hero {
        padding: 120px 0 60px;
    }

    .fg-question-card {
        padding: 24px;
    }

    .fg-gap-card {
        padding: 24px;
    }

    .fg-plan-item {
        flex-direction: column;
        gap: 16px;
    }

    .fg-gap-card-header {
        flex-direction: column;
    }

    .fg-experiment-box .fg-exp-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* ---------- Print ---------- */
@media print {
    body {
        background: #fff !important;
        color: #111 !important;
    }

    .fg-hero,
    .fg-wizard-section,
    header,
    footer,
    .fg-sample-section,
    .fg-report-actions,
    .fg-demo-badge,
    #gt-back-top,
    .preloader,
    .search-popup,
    .fix-area,
    .offcanvas__overlay,
    .fg-modal-overlay {
        display: none !important;
    }

    .fg-results-section {
        display: block !important;
        padding: 20px 0;
    }

    .fg-results-section * {
        color: #111 !important;
        border-color: #ddd !important;
        background: transparent !important;
    }

    .fg-gap-card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }

    .fg-severity {
        border: 1px solid currentColor;
    }

    .fg-experiment-box {
        border: 1px solid #ccc;
    }

    .fg-plan-item {
        border: 1px solid #ccc;
    }

    .fg-disclaimer {
        border: 1px solid #ccc;
    }
}