/* ============================================
   PROCESS APPS PAGE
   Dark theme, teal accents, process-derived apps
   ============================================ */

/* ===== Page base ===== */
.pa-page {
    background: #020617;
}

/* ===== Container ===== */
.pa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Accent text ===== */
.pa-page .accent {
    color: #14b8a6;
}

/* ===== Label pill ===== */
.pa-label {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12) 0%, rgba(20, 184, 166, 0.05) 100%);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 100px;
    color: #14b8a6;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.1);
}

/* ============================================
   HERO SECTION - Two Column Layout
   ============================================ */
.pa-hero {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.pa-hero__grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.pa-hero__glow {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.pa-hero::after {
    content: '';
    position: absolute;
    top: 40%;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.pa-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.pa-hero__content {
    max-width: 560px;
}

.pa-hero__title {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #f8fafc;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.pa-hero__subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 20px;
    font-weight: 500;
}

.pa-hero__intro {
    font-size: 1rem;
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 28px;
    max-width: 520px;
}

/* Hero bullets */
.pa-hero__bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    list-style: none;
    padding: 0;
}

.pa-hero__bullet {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9375rem;
    color: #cbd5e1;
    font-weight: 500;
}

.pa-hero__bullet::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #14b8a6;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
}

.pa-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   HERO VISUAL - Process Diagram SVG
   ============================================ */
.pa-hero__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pa-hero__visual::before {
    content: '';
    position: absolute;
    top: -30px;
    right: 5%;
    width: 6px;
    height: 6px;
    background: #14b8a6;
    border-radius: 50%;
    opacity: 0.5;
    box-shadow: 
        20px 50px 0 rgba(20, 184, 166, 0.3),
        -30px 100px 0 rgba(20, 184, 166, 0.2),
        50px 150px 0 rgba(20, 184, 166, 0.25);
}

.pa-process-diagram {
    width: 100%;
    max-width: 420px;
    height: auto;
}

/* SVG Animations */
@keyframes paPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

@keyframes paFlow {
    from { stroke-dashoffset: 12; }
    to { stroke-dashoffset: 0; }
}

@keyframes paGlow {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(20, 184, 166, 0.3)); }
    50% { filter: drop-shadow(0 0 10px rgba(20, 184, 166, 0.6)); }
}

.pa-pulse {
    animation: paPulse 2.5s ease-in-out infinite;
    transform-origin: center;
}

.pa-flow-line {
    animation: paFlow 1.5s linear infinite;
}

.pa-glow-node {
    animation: paGlow 2.5s ease-in-out infinite;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pa-pulse,
    .pa-flow-line,
    .pa-glow-node {
        animation: none;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.pa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #020617;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pa-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(20, 184, 166, 0.35);
}

.pa-btn--outline {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #f8fafc;
}

.pa-btn--outline:hover {
    border-color: #14b8a6;
    color: #14b8a6;
    background: rgba(20, 184, 166, 0.08);
    box-shadow: none;
}

.pa-btn--large {
    padding: 18px 36px;
    font-size: 1.0625rem;
}

/* ============================================
   SECTIONS BASE
   ============================================ */
.pa-section {
    padding: 100px 0;
    position: relative;
}

.pa-section--alt {
    background: #0f172a;
}

/* Subtle top separator */
.pa-section--alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.2), transparent);
}

.pa-section__header {
    text-align: center;
    margin-bottom: 56px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pa-section__title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 16px;
    line-height: 1.25;
}

.pa-section__subtitle {
    font-size: 1.0625rem;
    color: #94a3b8;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ============================================
   CARDS - What makes a Process App
   ============================================ */
.pa-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pa-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.pa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0), transparent);
    transition: background 0.35s ease;
}

.pa-card:hover {
    border-color: rgba(20, 184, 166, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 40px rgba(20, 184, 166, 0.08);
}

.pa-card:hover::before {
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.6), transparent);
}

.pa-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14b8a6;
    transition: all 0.3s ease;
}

.pa-card:hover .pa-card__icon {
    background: rgba(20, 184, 166, 0.2);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.3);
}

.pa-card__icon svg {
    width: 28px;
    height: 28px;
}

.pa-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 12px;
}

.pa-card__desc {
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0;
}

/* ============================================
   ICON GRID - Building blocks
   ============================================ */
.pa-icon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.pa-icon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 14px 20px;
    transition: all 0.25s ease;
}

.pa-icon-item:hover {
    border-color: rgba(20, 184, 166, 0.3);
    background: rgba(20, 184, 166, 0.05);
}

.pa-icon-item__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14b8a6;
}

.pa-icon-item__icon svg {
    width: 20px;
    height: 20px;
}

.pa-icon-item__label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #e2e8f0;
}

.pa-caption {
    text-align: center;
    font-size: 1rem;
    color: #64748b;
    font-style: italic;
}

/* ============================================
   TWO COLUMNS - Portal vs Embed
   ============================================ */
.pa-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.pa-column {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
    padding: 40px 32px;
    transition: all 0.3s ease;
}

.pa-column:hover {
    border-color: rgba(20, 184, 166, 0.3);
}

.pa-column__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.pa-column__icon {
    width: 48px;
    height: 48px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14b8a6;
}

.pa-column__icon svg {
    width: 24px;
    height: 24px;
}

.pa-column__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
}

.pa-column__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pa-column__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    color: #94a3b8;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.pa-column__list li:last-child {
    border-bottom: none;
}

.pa-column__list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #14b8a6;
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
}

.pa-footer-line {
    text-align: center;
    font-size: 1rem;
    color: #64748b;
    margin-top: 40px;
    font-style: italic;
}

/* ============================================
   CHECKLIST - Why teams choose
   ============================================ */
.pa-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 40px;
    max-width: 650px;
    margin: 0 auto 40px;
}

.pa-checklist__item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: #e2e8f0;
    font-weight: 500;
}

.pa-checklist__icon {
    width: 28px;
    height: 28px;
    background: rgba(20, 184, 166, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14b8a6;
    flex-shrink: 0;
}

.pa-checklist__icon svg {
    width: 14px;
    height: 14px;
}

.pa-closing-statement {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #e2e8f0;
    max-width: 500px;
    margin: 0 auto;
}

.pa-closing-statement .accent {
    color: #14b8a6;
}

/* ============================================
   FINAL CTA
   ============================================ */
.pa-final {
    padding: 120px 0;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, #020617 0%, #0f172a 50%, #020617 100%);
    border-top: 1px solid rgba(20, 184, 166, 0.15);
}

.pa-final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #14b8a6, transparent);
    opacity: 0.6;
}

.pa-final__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(20, 184, 166, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.pa-final__content {
    position: relative;
    z-index: 1;
}

.pa-final__title {
    font-size: clamp(1.875rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 14px;
    line-height: 1.2;
}

.pa-final__subtitle {
    font-size: 1.0625rem;
    color: #94a3b8;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.pa-final__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .pa-hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .pa-hero__content {
        max-width: 100%;
    }
    
    .pa-hero__intro {
        max-width: 100%;
    }
    
    .pa-hero__bullets {
        align-items: center;
    }
    
    .pa-hero__actions {
        justify-content: center;
    }
    
    .pa-hero__visual {
        order: -1;
    }
    
    .pa-hero__visual::before {
        display: none;
    }
    
    .pa-process-diagram {
        max-width: 360px;
    }
    
    .pa-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .pa-hero {
        padding: 100px 0 60px;
    }
    
    .pa-process-diagram {
        max-width: 320px;
    }
    
    .pa-hero__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .pa-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .pa-section {
        padding: 80px 0;
    }
    
    .pa-columns {
        grid-template-columns: 1fr;
    }
    
    .pa-checklist {
        grid-template-columns: 1fr;
    }
    
    .pa-icon-grid {
        gap: 12px;
    }
    
    .pa-icon-item {
        padding: 12px 16px;
    }
    
    .pa-final {
        padding: 90px 0;
    }
    
    .pa-final__actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .pa-container {
        padding: 0 20px;
    }
    
    .pa-hero__title {
        font-size: 1.875rem;
    }
    
    .pa-hero__subtitle {
        font-size: 1rem;
    }
    
    .pa-hero__intro {
        font-size: 0.9375rem;
    }
    
    .pa-section__title {
        font-size: 1.5rem;
    }
    
    .pa-process-diagram {
        max-width: 280px;
    }
}
