/* ======================================================
   COI ENTERPRISE STYLES (v20.0 - Data First)
   ====================================================== */

/* 1. GLOBAL & TYPOGRAPHY */
.coi-wrapper { background: #f8fafc; font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #1e293b; padding: 40px 0; line-height: 1.6; }
.coi-container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* 2. HEADER */
.coi-header-pro { 
    background: white; border-radius: 16px; border: 1px solid #e2e8f0; 
    margin-bottom: 25px; box-shadow: 0 10px 30px -5px rgba(0,0,0,0.06); 
    position: relative; overflow: visible; 
}
.header-main { padding: 40px; display: flex; gap: 30px; align-items: flex-start; }
.coi-logo-pro { 
    width: 110px; height: 110px; border-radius: 16px; border: 1px solid #f1f5f9; 
    background: #fff; display: flex; align-items: center; justify-content: center; 
    font-size: 32px; font-weight: 800; color: #94a3b8; overflow: hidden; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); flex-shrink: 0;
}
.coi-logo-pro img { width: 100%; height: 100%; object-fit: contain; }
.header-top-row { display: flex; gap: 10px; margin-bottom: 12px; align-items: center; }
.industry-tag { background: #f1f5f9; font-size: 11px; font-weight: 700; color: #64748b; padding: 5px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.social-tag { background: #e0f2fe; color: #0284c7; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 6px; display: flex; align-items: center; gap: 5px; }
.coi-header-pro h1 { margin: 0 0 8px 0; font-size: 34px; font-weight: 800; color: #0f172a; letter-spacing: -0.8px; line-height: 1.1; }
.company-name { font-size: 16px; color: #64748b; margin: 0 0 25px 0; }
.company-name strong { color: #334155; }
.header-actions { display: flex; gap: 15px; }

/* 3. IMPACT STATS ROW (NEW) */
.impact-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 35px; }
.impact-card { background: white; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.score-card { background: #0f172a; border-color: #0f172a; }
.score-card .ic-lbl { color: #94a3b8; }
.score-card .ic-val { color: #4ade80; }
.ic-lbl { display: block; font-size: 11px; text-transform: uppercase; color: #64748b; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 5px; }
.ic-val { display: block; font-size: 24px; font-weight: 800; color: #0f172a; }

/* 4. MAIN GRID */
.coi-layout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 35px; }
.pro-card { background: white; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 30px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.card-head { padding: 18px 25px; border-bottom: 1px solid #f1f5f9; background: #fff; }
.card-head h3 { margin: 0; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #334155; }

/* Tech Deep Dive */
.deep-dive-grid { display: grid; grid-template-columns: 1fr 1fr; }
.dive-col { padding: 30px; border-right: 1px solid #f1f5f9; }
.dive-col h4 { margin: 0 0 15px 0; font-size: 12px; text-transform: uppercase; color: #94a3b8; font-weight: 800; letter-spacing: 0.5px; }
.dive-col p { font-size: 16px; line-height: 1.7; margin: 0; color: #334155; }
.dive-col.problem { background: #fff1f2; } /* Slight red tint for problem */
.dive-col.solution { background: #f0fdf4; } /* Slight green tint for solution */

/* Financial Charts */
.charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid #f1f5f9; }
.chart-col { padding: 25px; border-right: 1px solid #f1f5f9; }
.chart-col h4 { margin: 0 0 15px 0; font-size: 12px; text-align: center; color: #64748b; }
.chart-box { height: 250px; width: 100%; position: relative; }

/* Use Cases Big */
.usecase-grid-big { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 25px; }
.uc-card-big { display: flex; gap: 20px; align-items: flex-start; padding: 20px; border: 1px solid #e2e8f0; border-radius: 12px; transition: all 0.2s; }
.uc-card-big:hover { border-color: #2563eb; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.uc-thumb-big { width: 60px; height: 60px; background-size: cover; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; border: 1px solid #e2e8f0; }
.uc-content-big h5 { margin: 0 0 8px 0; font-size: 16px; font-weight: 700; color: #0f172a; }
.uc-content-big p { margin: 0; font-size: 13px; line-height: 1.5; color: #64748b; }

/* Analyst Verdict */
.analyst-card { border-top: 4px solid #2563eb; }
.pros-cons-grid { display: grid; grid-template-columns: 1.2fr 1fr; border-top: 1px solid #f1f5f9; }
.pc-col { padding: 25px; }
.lists { border-left: 1px solid #f1f5f9; background: #fafafa; }
.lists h4 { margin: 0 0 10px 0; font-size: 11px; text-transform: uppercase; }
.lists ul { list-style: none; padding: 0; margin: 0 0 20px 0; }
.lists li { font-size: 13px; margin-bottom: 6px; padding-left: 15px; position: relative; color: #334155; }
.lists .pros li::before { content: '✓'; color: #166534; position: absolute; left: 0; font-weight: 900; }
.lists .cons li::before { content: '×'; color: #991b1b; position: absolute; left: 0; font-weight: 900; }

/* Sidebar & CTA */
.sidebar-widget { padding: 25px; }
.sidebar-widget h4 { margin: 0 0 15px 0; font-size: 12px; text-transform: uppercase; color: #94a3b8; border-bottom: 2px solid #f1f5f9; padding-bottom: 8px; font-weight: 700; }
.sticky-widget { position: sticky; top: 20px; border: 2px solid #2563eb; background: #eff6ff; }
.btn-contact { display: block; width: 100%; text-align: center; background: #2563eb; color: white; padding: 14px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: background 0.2s; }
.btn-contact:hover { background: #1d4ed8; }
.btn-dl { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; margin-bottom: 10px; border: 1px solid #cbd5e1; color: #334155; transition: all 0.2s; }
.btn-dl:hover { background: #f8fafc; }
.btn-dl.primary { background: #0f172a; color: white; border: none; }

/* ISO Badge */
.coi-iso-badge {
    position: absolute; top: 30px; right: 40px;
    width: 130px; height: 130px;
    border-radius: 50%;
    background: #fff;
    border: 4px double #b45309; 
    box-shadow: 0 10px 25px rgba(180, 83, 9, 0.15);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 10;
    transform: rotate(-5deg);
}
.iso-inner {
    width: 110px; height: 110px; border-radius: 50%;
    border: 1px dashed #d97706;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.iso-top { font-size: 9px; font-weight: 900; letter-spacing: 1px; color: #b45309; }
.iso-grade { font-size: 32px; font-weight: 900; color: #0f172a; line-height: 1; margin: 2px 0; }
.iso-bottom { font-size: 8px; font-weight: 700; color: #94a3b8; text-transform: uppercase; }

/* Footer */
.coi-cta-footer { background: #0f172a; border-radius: 20px; padding: 60px 40px; text-align: center; color: white; margin-top: 60px; }
.cta-btn { background: white; color: #0f172a; padding: 14px 30px; border-radius: 8px; text-decoration: none; font-weight: 700; display: inline-block; margin-top: 25px; transition: transform 0.2s; }

@media (max-width: 900px) {
    .coi-layout-grid { grid-template-columns: 1fr; }
    .charts-row, .deep-dive-grid, .pros-cons-grid, .usecase-grid-big, .impact-stats-row { grid-template-columns: 1fr; }
    .coi-iso-badge { position: static; margin: 20px auto; transform: none; }
}

/* =======================================
   NEW IMPACT & CERTIFICATION STYLES
   ======================================= */

.impact-tier-section { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; margin-bottom: 35px; }

/* 1. IMPACT ROI BOX (Left) */
.impact-box { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 25px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); display: flex; flex-direction: column; justify-content: center; }
.ib-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; }
.ib-head h4 { margin: 0; font-size: 14px; text-transform: uppercase; color: #0f172a; font-weight: 800; letter-spacing: 0.5px; }
.live-dot { font-size: 10px; color: #16a34a; font-weight: 700; background: #dcfce7; padding: 3px 8px; border-radius: 99px; }

.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.roi-stat { padding: 15px; background: #f8fafc; border-radius: 8px; border: 1px solid #f1f5f9; }
.roi-val { display: block; font-size: 28px; font-weight: 900; color: #2563eb; line-height: 1; margin-bottom: 5px; }
.roi-lbl { font-size: 11px; text-transform: uppercase; color: #64748b; font-weight: 700; letter-spacing: 0.5px; }

/* 2. TIER BADGE BOX (Right) */
.tier-box { border-radius: 12px; padding: 25px; color: white; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 10px 20px -5px rgba(0,0,0,0.15); }

/* Tier Themes */
.tier-gold { background: linear-gradient(135deg, #b45309 0%, #d97706 100%); border: 2px solid #fcd34d; }
.tier-silver { background: linear-gradient(135deg, #475569 0%, #64748b 100%); border: 2px solid #cbd5e1; }
.tier-bronze { background: linear-gradient(135deg, #78350f 0%, #92400e 100%); border: 2px solid #fdba74; }

.tier-label { font-size: 10px; font-weight: 800; letter-spacing: 1px; opacity: 0.8; margin-bottom: 5px; display: block; }
.tier-title { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -0.5px; color: white; }
.tier-desc { margin: 0 0 15px 0; font-size: 13px; opacity: 0.9; }

.tier-bar { background: rgba(255,255,255,0.2); height: 6px; border-radius: 99px; margin-bottom: 5px; overflow: hidden; }
.tier-fill { background: white; height: 100%; border-radius: 99px; }
.tier-trl { font-size: 10px; font-weight: 700; }

.tier-cta { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 11px; text-align: right; }
.tier-cta a { color: white; text-decoration: none; font-weight: 700; opacity: 0.9; transition: opacity 0.2s; }
.tier-cta a:hover { opacity: 1; text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
    .impact-tier-section { grid-template-columns: 1fr; }
}