/* ========================================
   HOW IT WORKS PAGE STYLES
   ======================================== */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--lightest-green) 0%, var(--white) 100%);
    padding: 80px 24px;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-green);
    color: var(--primary-navy);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-section h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary-navy);
    letter-spacing: -0.03em;
}

.hero-section p {
    font-size: 1.35rem;
    color: var(--text-gray);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Workflow Sections */
.workflow-section {
    padding: 100px 24px;
}

.section-connect {
    background: var(--white);
}

.section-engage {
    background: var(--lightest-green);
}

.section-capture {
    background: var(--white);
}

.workflow-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Left Content */
.workflow-content {
    padding-right: 20px;
}

.workflow-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    font-family: 'Bricolage Grotesque', sans-serif;
    margin-bottom: 24px;
}

.workflow-content h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.workflow-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 48px;
}

/* Feature Cards */
.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-card {
    display: flex;
    gap: 16px;
    align-items: start;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 16px;
    border-radius: 12px;
    background: transparent;
    border: 2px solid transparent;
    text-align: left;
    width: 100%;
}

.feature-card:hover {
    transform: translateX(4px);
}

.feature-card.active {
    background: var(--lightest-green);
    border: 2px solid var(--primary-green);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--lightest-green);
    border: 2px solid var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    stroke: var(--primary-navy);
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.feature-text p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* Right Visual / Mockup Container */
.workflow-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 200px;
}

.mockup-container {
    width: 100%;
    max-width: 480px;
    min-height: 580px;  /* ← Changed to min-height */
    height: auto;        /* ← Added this */
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 48, 77, 0.2);
    font-family: system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mockup-slide {
    display: none;
    flex-direction: column;
    height: 516px;  /* ← Keep this at 516px */
}

.mockup-slide.active {
    display: flex;
}

/* Mockup Header */
.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.mockup-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-navy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
}

.mockup-icon svg {
    stroke: var(--primary-green);
}

.mockup-title {
    flex: 1;
}

.mockup-title .title {
    font-weight: 700;
    color: var(--primary-navy);
    font-size: 18px;
}

.mockup-title .subtitle {
    font-size: 13px;
    color: var(--text-gray);
}

/* Mockup Content */
.mockup-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* CONNECT SLIDE STYLES */

/* System List */
.system-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.system-item {
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.system-item.connected {
    background: var(--lightest-green);
}

.system-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.system-item.connected .system-name {
    font-weight: 700;
    color: var(--primary-navy);
}

.system-status {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
}

.system-item.connected .system-status {
    color: #059669;
    font-weight: 600;
}

.status-card {
    background: var(--lightest-green);
    border: 2px solid var(--primary-green);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.status-label {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.status-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-navy);
}

.status-dot {
    font-size: 14px;
}

.status-time {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 4px;
}

/* Invoice List */
.invoice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.invoice-item {
    background: #f8fafc;
    padding: 16px;
    border-radius: 10px;
    border-left: 4px solid #cbd5e1;
}

.invoice-item.synced {
    background: var(--lightest-green);
    border-left: 4px solid var(--primary-green);
}

.invoice-item.highlight {
    border: 2px solid var(--primary-green);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.invoice-number {
    font-weight: 700;
    color: var(--primary-navy);
    font-size: 15px;
}

.invoice-badge {
    font-size: 11px;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.invoice-badge.synced {
    background: #059669;
}

.invoice-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 4px;
}

.invoice-details {
    font-size: 13px;
    color: var(--text-gray);
}

.stats-card {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #004d6d 100%);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    color: white;
}

.stats-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 6px;
}

.stats-value {
    font-size: 28px;
    font-weight: 700;
}

.stats-subtitle {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 6px;
}

/* Survey Options */
.survey-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    margin-bottom: 16px;
}

.survey-option {
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.survey-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 2px solid #cbd5e1;
}

.survey-option.selected .survey-radio {
    background: #059669;
    border: 2px solid #059669;
    position: relative;
}

.survey-option.selected .survey-radio::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
}

.survey-text {
    font-size: 15px;
    color: var(--text-gray);
    font-weight: 600;
}

.survey-option.selected .survey-text {
    color: var(--primary-navy);
}

.response-card {
    background: var(--lightest-green);
    border: 2px solid var(--primary-green);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.response-label {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.response-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-navy);
}

.response-subtitle {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 6px;
}

/* ENGAGE SLIDE STYLES */

/* Workflow Steps */
.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.workflow-step {
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* Engage Section - Notification card design */
.section-engage .mockup-slide[data-slide="0"] {
    height: auto !important;
    min-height: 516px !important;
}

.section-engage .mockup-slide[data-slide="1"] {
    height: auto !important;
    min-height: 600px !important;
}

.section-engage .mockup-container {
    padding: 32px !important;
    min-height: 580px !important;
    height: auto !important;
}

.section-engage .mockup-header {
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
}

.section-engage .mockup-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 24px !important;
}

.section-engage .mockup-title .title {
    font-size: 18px !important;
}

.section-engage .mockup-title .subtitle {
    font-size: 13px !important;
}

.section-engage .mockup-content {
    gap: 16px !important;
    display: flex !important;
    flex-direction: column !important;
}

.workflow-step.complete {
    background: #f0fdf4;
}

.workflow-step.current {
    background: var(--lightest-green);
    border: 2px solid var(--primary-green);
}

.workflow-step.pending .step-label {
    color: #9ca3af;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 2px;
}

.workflow-step.current .step-label {
    font-weight: 700;
}

.step-time {
    font-size: 12px;
    color: var(--text-gray);
}

.acceptance-card {
    background: var(--lightest-green);
    border: 2px solid var(--primary-green);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.acceptance-label {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.acceptance-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-navy);
}

.acceptance-subtitle {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 6px;
}

/* Tracking List */
.tracking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    margin-bottom: 16px;
}

.tracking-item {
    padding: 16px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.tracking-item.delivered {
    background: #f0fdf4;
    border: 1px solid #86efac;
}

.tracking-item.opened {
    background: var(--lightest-green);
    border: 2px solid var(--primary-green);
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.tracking-title {
    font-weight: 700;
    color: var(--primary-navy);
    font-size: 14px;
}

.tracking-badge {
    font-size: 11px;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.tracking-badge.sent {
    background: #059669;
}

.tracking-badge.queued {
    background: var(--text-gray);
}

.tracking-details {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.tracking-status {
    font-size: 12px;
    color: #059669;
    font-weight: 600;
}

.email-stats-card {
    display: none;
}

.email-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.email-value {
    font-size: 36px;
    font-weight: 700;
}

.email-subtitle {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 8px;
}

/* EPD Offer */
.offer-card {
    background: var(--lightest-green);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 2px solid var(--primary-green);
}

.offer-label {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.offer-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.offer-discount {
    font-size: 22px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 4px;
}

.offer-terms {
    font-size: 12px;
    color: var(--text-gray);
}

.offer-breakdown {
    margin-bottom: 16px;
    flex: 1;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}

.breakdown-row span:first-child {
    color: var(--text-gray);
}

.breakdown-row .value {
    font-weight: 600;
    color: var(--primary-navy);
}

.breakdown-row .value.early {
    font-weight: 600;
    color: #059669;
}

.breakdown-row .value.savings {
    font-weight: 700;
    color: var(--primary-green);
    background: var(--primary-navy);
    padding: 4px 12px;
    border-radius: 6px;
}

.offer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-accept {
    padding: 14px;
    background: var(--primary-navy);
    color: var(--primary-green);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.btn-decline {
    padding: 14px;
    background: #f1f5f9;
    color: var(--text-gray);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

/* CAPTURE SLIDE STYLES */

/* Savings Dashboard */
.savings-hero {
    background: var(--primary-navy);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
    text-align: center;
}

.savings-label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
}

.savings-amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 8px;
}

.savings-trend {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.metric-card {
    background: var(--lightest-green);
    padding: 16px;
    border-radius: 10px;
    border: 2px solid var(--primary-green);
    text-align: center;
}

.metric-label {
    font-size: 11px;
    color: var(--text-gray);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 4px;
}

.metric-subtitle {
    font-size: 11px;
    color: var(--text-gray);
}

.recent-savings {
    margin-top: 12px;
}

.recent-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.savings-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
}

.savings-item:nth-child(n+3) {
    display: none;
}

.savings-item span:first-child {
    color: var(--text-gray);
}

.savings-value {
    font-weight: 700;
    color: #059669;
}

/* Credit Note Automation */
.credit-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 16px;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 8px;
}

.flow-icon {
    width: 32px;
    height: 32px;
    background: #059669;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.flow-text {
    flex: 1;
}

.flow-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-navy);
}

.flow-time {
    font-size: 12px;
    color: var(--text-gray);
}

.flow-connector {
    width: 2px;
    height: 12px;
    background: #86efac;
    margin-left: 28px;
}

.credit-note-card {
    background: var(--lightest-green);
    border: 2px solid var(--primary-green);
    padding: 16px;
    border-radius: 12px;
}

.credit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.credit-number {
    font-weight: 700;
    color: var(--primary-navy);
    font-size: 14px;
}

.credit-badge {
    font-size: 10px;
    background: #059669;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.credit-amount {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.credit-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.detail-row span:first-child {
    color: var(--text-gray);
}

.detail-row span:last-child {
    font-weight: 600;
    color: var(--primary-navy);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: var(--border-gray);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active {
    width: 24px;
    background: var(--primary-navy);
}

/* CTA Section */
.cta-section {
    background: var(--primary-navy);
    padding: 100px 24px;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    color: white;
    font-size: 3rem;
    margin-bottom: 24px;
    font-weight: 700;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-button-large {
    background: var(--primary-green);
    color: var(--primary-navy);
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(193, 239, 76, 0.3);
}

.cta-button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 239, 76, 0.4);
}

/* Responsive Design */
@media (max-width: 968px) {
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .workflow-visual {
        padding-top: 0;
    }

    .workflow-content h2 {
        font-size: 2.5rem;
    }

    .workflow-description {
        font-size: 1.1rem;
    }

    .mockup-container {
        max-width: 100%;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .workflow-section {
        padding: 60px 24px;
    }

    .workflow-number {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .workflow-content h2 {
        font-size: 2rem;
    }

    .feature-cards {
        gap: 16px;
    }

    .feature-card {
        padding: 12px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-text h3 {
        font-size: 1.1rem;
    }

    .feature-text p {
        font-size: 0.95rem;
    }

    .mockup-container {
        padding: 24px;
        height: auto;
        min-height: 500px;
    }

    /* Improve invoice mockup responsiveness */
    .mockup-slide {
        min-height: auto !important;
        height: auto !important;
    }

    .mockup-content {
        overflow: visible !important;
        min-height: auto !important;
    }

    /* Fix Capture section container sizing */
    .section-capture .mockup-container {
        min-height: 620px !important;
        padding-bottom: 32px !important;
    }

    .section-capture .mockup-slide {
        min-height: auto !important;
        padding-bottom: 20px !important;
    }

    .section-capture .mockup-content {
        gap: 12px !important;
    }

    /* Ensure all content fits properly */
    .savings-hero,
    .credit-flow,
    .credit-note-card {
        margin-bottom: 12px !important;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        margin-bottom: 12px !important;
    }

    .offer-actions {
        grid-template-columns: 1fr;
    }
}