/* ============================================================ */
/* ambitiv.com — PRODUCT PAGE: ambitiv.Finance                    */
/* Loaded only on /finance page. Place after main styles.css.     */
/* ============================================================ */

/* Color helpers used in comparison table */
.text-good { color: #10b981; }
.text-bad { color: #ef4444; }
.text-mid { color: #f59e0b; }

/* Screenshot placeholder: shows a gradient + icon if image is missing */
.prod-screen {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--bg-alt) 0%, #e5e7eb 100%);
    min-height: 240px;
    object-fit: cover;
    position: relative;
}

/* ===== HERO ===== */
.prod-hero {
    padding: 130px 0 80px;
    position: relative;
    overflow: hidden;
}

.prod-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.prod-hero-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
}

.prod-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 97, 70, 0.05) 0%, transparent 70%);
}

.prod-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.prod-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 100px;
    font-family: 'Unbounded', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.prod-hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.prod-hero h1 .accent {
    color: var(--accent);
}

.prod-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.prod-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.prod-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.prod-mini-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.prod-mini-stat strong {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
}

.prod-mini-stat span {
    font-size: 0.85rem;
    color: var(--gray);
}

.prod-hero-image {
    position: relative;
    /* Let the screenshot bleed past the right edge for a more impressive look */
    margin-right: -8vw;
}

.prod-hero-image .prod-screen {
    min-height: 380px;
}

/* ===== TRUST BAR ===== */
.prod-trust {
    padding: 60px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.prod-trust-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: center;
}

.prod-trust-headline {
    display: flex;
    gap: 16px;
}

.prod-trust-headline i {
    color: var(--accent);
    font-size: 1.6rem;
    opacity: 0.5;
    flex-shrink: 0;
}

.prod-trust-headline p {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--dark);
}

.prod-trust-headline strong {
    color: var(--accent);
}

.prod-trust-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.prod-trust-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prod-trust-stat strong {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.prod-trust-stat span {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.4;
}

/* ===== PROBLEM SECTION ===== */
.prod-problem {
    padding: 100px 0;
}

.prod-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.prod-problem-item {
    background: white;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.prod-problem-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.prod-problem-item i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border-radius: 12px;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.prod-problem-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.prod-problem-item p {
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* ===== FEATURES ===== */
.prod-features {
    padding: 100px 0;
    background: var(--bg-alt);
}

.prod-features-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.prod-feature-wide {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
}

.prod-feature-reverse {
    grid-template-columns: 1.2fr 1fr;
}

.prod-feature-reverse .prod-feature-text {
    order: 2;
}

.prod-feature-reverse .prod-feature-image {
    order: 1;
}

.prod-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 14px;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.prod-feature-text h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.25;
}

.prod-feature-text > p {
    color: var(--gray);
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.prod-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prod-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-light);
    font-size: 0.95rem;
}

.prod-feature-list li i {
    color: var(--accent);
    font-size: 0.85rem;
}

.prod-features-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.prod-feature-small {
    background: white;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.prod-feature-small:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.prod-feature-small h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.prod-feature-small p {
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* ===== MULTI-FOP ===== */
.prod-multifop {
    padding: 100px 0;
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.prod-multifop::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 97, 70, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.prod-multifop-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.prod-multifop-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 97, 70, 0.15);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 100px;
    font-family: 'Unbounded', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.prod-multifop h2 {
    color: white;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 16px;
}

.prod-multifop-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.08rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.prod-multifop-subtitle strong {
    color: var(--accent);
    font-weight: 600;
}

.prod-multifop-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.prod-multifop-perks li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.prod-multifop-perks li i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.prod-multifop-perks li strong {
    display: block;
    color: white;
    font-weight: 700;
    font-size: 1.02rem;
    margin-bottom: 2px;
}

.prod-multifop-perks li span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    line-height: 1.5;
}

.prod-multifop-image .prod-screen {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}

/* ===== CUSTOMIZATION ===== */
.prod-customization {
    padding: 100px 0;
}

.prod-custom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.prod-custom-item {
    position: relative;
    background: white;
    padding: 36px 32px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.prod-custom-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.prod-custom-recommended {
    border: 2px solid var(--accent);
    box-shadow: 0 12px 32px rgba(255, 97, 70, 0.12);
}

.prod-custom-tag {
    position: absolute;
    top: -12px;
    left: 32px;
    background: var(--accent);
    color: white;
    padding: 5px 14px;
    border-radius: 100px;
    font-family: 'Unbounded', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.prod-custom-tag-grey {
    background: var(--dark);
}

.prod-custom-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 4px;
}

.prod-custom-item > p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 20px;
}

.prod-custom-item ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prod-custom-item ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-light);
    font-size: 0.92rem;
}

.prod-custom-item ul li i {
    color: var(--accent);
    font-size: 0.78rem;
}

.prod-custom-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    color: var(--gray);
    font-size: 0.95rem;
    text-align: center;
}

.prod-custom-note i {
    color: var(--accent);
}

/* ===== AI INTEGRATION ===== */
.prod-ai {
    padding: 100px 0;
    background: var(--bg-alt);
}

.prod-ai-inner {
    background: linear-gradient(135deg, #fff 0%, var(--bg-alt) 100%);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.prod-ai-inner::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    pointer-events: none;
}

.prod-ai-text {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.prod-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: white;
    padding: 8px 18px;
    border-radius: 100px;
    font-family: 'Unbounded', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.prod-ai h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: 16px;
}

.prod-ai > .container > .prod-ai-inner > .prod-ai-text > p {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.prod-ai-text strong {
    color: var(--accent);
}

.prod-ai-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.prod-ai-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark);
}

.prod-ai-list li i {
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 6px;
    flex-shrink: 0;
}

.prod-ai-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.prod-ai-link:hover {
    gap: 14px;
}

/* ===== PROCESS (how we implement) ===== */
.prod-process {
    padding: 100px 0;
}

.prod-process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
}

.prod-process-step {
    position: relative;
    padding: 28px 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.prod-process-step:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.prod-process-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.85;
}

.prod-process-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.prod-process-step p {
    color: var(--gray);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ===== COMPARE TABLE ===== */
.prod-compare {
    padding: 100px 0;
    background: var(--bg-alt);
}

.prod-compare-table {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.prod-compare-row {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.prod-compare-row:last-child {
    border-bottom: none;
}

.prod-compare-head {
    background: var(--bg-alt);
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
}

.prod-compare-cell {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--dark-light);
    border-right: 1px solid var(--border);
}

.prod-compare-cell:last-child {
    border-right: none;
}

.prod-compare-cell-feature {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--dark);
}

.prod-compare-cell-ours {
    background: rgba(255, 97, 70, 0.04);
    font-weight: 600;
    color: var(--dark);
}

/* ===== FAQ ===== */
.prod-faq {
    padding: 100px 0;
}

.prod-faq-list {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prod-faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.prod-faq-item[open] {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.prod-faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 26px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--dark);
    list-style: none;
    transition: color 0.2s ease;
}

.prod-faq-item summary::-webkit-details-marker { display: none; }

.prod-faq-item summary:hover {
    color: var(--accent);
}

.prod-faq-item summary i {
    color: var(--accent);
    font-size: 0.9rem;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.prod-faq-item[open] summary i {
    transform: rotate(45deg);
}

.prod-faq-item p {
    padding: 0 26px 24px;
    color: var(--gray);
    line-height: 1.65;
    font-size: 0.97rem;
}

.prod-faq-item p strong {
    color: var(--dark);
}

/* ===== RESPONSIVE for /finance page ===== */
@media (max-width: 1024px) {
    .prod-hero-inner,
    .prod-trust-inner,
    .prod-multifop-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .prod-hero-image {
        margin-right: 0;
    }

    .prod-hero-image .prod-screen {
        min-height: 0;
    }

    .prod-trust-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .prod-problem-grid,
    .prod-features-small,
    .prod-custom-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prod-feature-wide,
    .prod-feature-reverse {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 36px;
    }

    .prod-feature-reverse .prod-feature-text { order: 1; }
    .prod-feature-reverse .prod-feature-image { order: 2; }

    .prod-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prod-ai-inner {
        padding: 44px;
    }

    .prod-compare-row {
        grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr 0.8fr;
    }

    .prod-compare-cell {
        padding: 14px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .prod-hero {
        padding: 100px 0 60px;
    }

    .prod-problem,
    .prod-features,
    .prod-multifop,
    .prod-customization,
    .prod-ai,
    .prod-process,
    .prod-compare,
    .prod-faq {
        padding: 60px 0;
    }

    .prod-hero-stats {
        gap: 24px;
    }

    .prod-mini-stat strong {
        font-size: 1.25rem;
    }

    .prod-trust-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .prod-trust-stat strong {
        font-size: 1.4rem;
    }

    .prod-problem-grid,
    .prod-features-small,
    .prod-custom-grid {
        grid-template-columns: 1fr;
    }

    .prod-feature-wide {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .prod-ai-inner {
        padding: 32px 24px;
        border-radius: 22px;
    }

    .prod-process-grid {
        grid-template-columns: 1fr;
    }

    /* Comparison table: become scrollable horizontally on mobile */
    .prod-compare-table {
        overflow-x: auto;
    }

    .prod-compare-row {
        min-width: 720px;
    }

    .prod-faq-item summary {
        padding: 18px 20px;
        font-size: 0.95rem;
    }

    .prod-faq-item p {
        padding: 0 20px 20px;
        font-size: 0.92rem;
    }
}