/* ==========================================================
   PRO-AI-AGENT — Action plans (plan-action) pages
   ========================================================== */
.ap-hero { min-height: auto; padding: 8rem 2rem 4rem; }
.ap-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 1.2rem; }
.ap-lead { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 760px; margin: 0 auto 2rem; }
.ap-alt-pdf { margin-top: 1rem; }
.ap-alt-pdf a { color: rgba(255,255,255,0.75); font-size: 0.9rem; text-decoration: underline; }
.ap-alt-pdf a:hover { color: var(--gold-light); }

.ap-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 2.2rem; }
.ap-chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 1rem 0.45rem 0.45rem; border-radius: 50px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: all 0.2s; }
.ap-chip:hover { border-color: var(--gold); background: rgba(200,144,40,0.15); }
.ap-chip-n { width: 26px; height: 26px; border-radius: 50%; background: var(--gold-gradient); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; }

/* Pains */
.ap-pains { padding: 5rem 0 3rem; background: #fff; }
.ap-pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.ap-pain { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--light-bg); border: 1px solid var(--border); border-radius: 14px; padding: 1.3rem; }
.ap-pain p { margin: 0; color: var(--text); font-weight: 600; }
.ap-pain-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(200,144,40,0.15); color: var(--gold); font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Roadmap timeline */
.ap-roadmap { padding: 4rem 0 5rem; background: var(--light-bg); }
.ap-timeline { position: relative; max-width: 1050px; margin: 0 auto; }
.ap-timeline::before { content: ""; position: absolute; left: 22px; top: 10px; bottom: 10px; width: 3px; background: linear-gradient(180deg, #c89028, #e8b04d 50%, #00d4ff); border-radius: 3px; }
.ap-phase { position: relative; display: flex; gap: 1.5rem; margin-bottom: 2rem; scroll-margin-top: 90px; }
.ap-phase-marker { flex: none; width: 47px; display: flex; justify-content: center; }
.ap-phase-marker span { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); border: 3px solid var(--gold); color: var(--gold-light); font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; }
.ap-phase-card { flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 1.8rem; box-shadow: 0 6px 24px rgba(10,22,40,0.06); }
.ap-phase-badge { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem; }
.ap-phase-head h3 { font-size: 1.45rem; color: var(--navy); margin: 0 0 0.6rem; font-weight: 800; }
.ap-goal { color: var(--text-muted); margin: 0 0 1.3rem; }
.ap-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.ap-col { border-radius: 14px; padding: 1.2rem 1.3rem; }
.ap-col h4 { margin: 0 0 0.8rem; font-size: 1rem; font-weight: 800; }
.ap-col ul { list-style: none; margin: 0; padding: 0; }
.ap-col li { padding: 0.55rem 0; border-top: 1px dashed rgba(10,22,40,0.1); }
.ap-col li:first-child { border-top: none; padding-top: 0; }
.ap-col li strong { display: block; color: var(--navy); font-size: 0.95rem; }
.ap-col li span { display: block; color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; margin-top: 0.15rem; }
.ap-col-common { background: var(--light-bg); border: 1px solid var(--border); }
.ap-col-common h4 { color: var(--navy); }
.ap-col-sector { background: #fdf6e8; border: 1px solid #f0dcb4; }
.ap-col-sector h4 { color: #8a5f12; }
.ap-phase-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.3rem; }
.ap-kpi { flex: 1; min-width: 240px; background: #e8f7fd; border-left: 4px solid #0077ff; border-radius: 8px; padding: 0.7rem 1rem; color: #0a3a66; font-weight: 600; font-size: 0.93rem; }
.ap-kpi span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #0077ff; font-weight: 800; margin-bottom: 0.15rem; }
.ap-phase-cta { background: linear-gradient(135deg, #00d4ff 0%, #0077ff 100%); color: #0a1628; font-weight: 800; padding: 0.75rem 1.3rem; border-radius: 10px; text-decoration: none; font-size: 0.92rem; white-space: nowrap; transition: transform 0.2s, box-shadow 0.2s; }
.ap-phase-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,180,255,0.35); }
.ap-disclaimer { max-width: 1050px; margin: 1rem auto 0; color: var(--text-muted); font-size: 0.85rem; font-style: italic; text-align: center; }
.ap-related { text-align: center; margin-top: 1rem; }
.ap-related a { color: var(--gold); font-weight: 700; text-decoration: none; }

/* Other sectors */
.ap-others { padding: 4rem 0; background: #fff; text-align: center; }
.ap-other-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 1.5rem; }
.ap-other-links a { padding: 0.55rem 1.1rem; border-radius: 50px; border: 1px solid var(--border); background: var(--light-bg); color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: all 0.2s; }
.ap-other-links a:hover { border-color: var(--gold); color: var(--gold); }

/* CTA */
.ap-cta { min-height: auto; padding: 4.5rem 2rem; }
.ap-cta h2 { color: #fff; font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.ap-cta p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 2rem; }

/* Hub */
.ap-journey { padding: 5rem 0; background: #fff; }
.ap-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; }
.ap-step { background: var(--light-bg); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem 1.2rem; position: relative; }
.ap-step-n { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-gradient); color: var(--navy); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 0.8rem; }
.ap-step-badge { display: block; font-size: 0.75rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.ap-step h3 { font-size: 1.05rem; color: var(--navy); margin: 0.3rem 0 0.5rem; }
.ap-step p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

.ap-foundation { padding: 5rem 0; background: var(--navy-gradient); }
.ap-foundation .section-title { color: #fff !important; }
.ap-foundation .section-subtitle { color: rgba(255,255,255,0.8) !important; }
.ap-found-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.ap-found { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 1.4rem; }
.ap-found-n { color: #00d4ff; font-weight: 800; font-size: 0.9rem; letter-spacing: 1px; }
.ap-found h3 { color: #fff; font-size: 1.02rem; margin: 0.4rem 0 0.5rem; }
.ap-found p { color: rgba(255,255,255,0.75); font-size: 0.88rem; margin: 0; }

.ap-sectors { padding: 5rem 0; background: var(--light-bg); }
.ap-sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.3rem; }
.ap-sector-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 1.6rem; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.ap-sector-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(10,22,40,0.1); }
.ap-sector-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.ap-sector-card h3 { color: var(--navy); font-size: 1.1rem; margin: 0 0 0.5rem; }
.ap-sector-card p { color: var(--text-muted); font-size: 0.9rem; flex: 1; margin: 0 0 1.2rem; }
.ap-sector-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.ap-btn-view { background: var(--gold-gradient); color: var(--navy); font-weight: 700; padding: 0.55rem 1rem; border-radius: 8px; text-decoration: none; font-size: 0.88rem; }
.ap-btn-pdf { border: 1px solid var(--border); color: var(--navy); font-weight: 700; padding: 0.5rem 0.8rem; border-radius: 8px; text-decoration: none; font-size: 0.8rem; }
.ap-btn-pdf:hover { border-color: #0077ff; color: #0077ff; }

/* Plan banner injected into existing sector pages */
.ap-banner { padding: 3.5rem 0; background: var(--light-bg); }
.ap-banner-box { max-width: 980px; margin: 0 auto; background: var(--navy-gradient); border-radius: 20px; padding: 2.2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.ap-banner-box h2 { color: #fff; font-size: 1.5rem; margin: 0 0 0.4rem; }
.ap-banner-box p { color: rgba(255,255,255,0.8); margin: 0; max-width: 560px; }
.ap-banner-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }

@media (max-width: 1000px) {
    .ap-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .ap-hero { padding: 7rem 1.2rem 3rem; }
    .ap-cols { grid-template-columns: 1fr; }
    .ap-timeline::before { left: 17px; }
    .ap-phase { gap: 0.8rem; }
    .ap-phase-marker { width: 36px; }
    .ap-phase-marker span { width: 36px; height: 36px; font-size: 0.95rem; }
    .ap-phase-card { padding: 1.2rem; }
    .ap-steps { grid-template-columns: 1fr; }
    .ap-phase-cta { white-space: normal; text-align: center; width: 100%; }
}
