/*
 * PrimeOps solution pages (open source hub, product pages, cloud platforms, legal).
 * Every rule is scoped under .po-page so nothing here can touch the older templates or Astra.
 * Tokens match template-parts/msp.php: purple #4F008C, coral #FF6B7A, Outfit headings.
 */
body.po-solutions .site-content .ast-container { display: block !important; max-width: none; padding: 0; }

.po-page {
	--po-purple: #4f008c;
	--po-coral: #ff6b7a;
	--po-lilac: #f2f1fa;
	--po-lilac-2: #f3eeff;
	--po-ink: #12101e;
	--po-muted: #5c5775;
	--po-line: #e2e0ea;
	--po-wrap: 1180px;
	font-family: 'Outfit', 'Inter', sans-serif;
	color: var(--po-ink);
	line-height: 1.6;
	overflow-x: hidden;
}
.po-page *, .po-page *::before, .po-page *::after { box-sizing: border-box; }
/* Astra sets its own heading fonts; the older templates force Outfit the same way (body * { font-family }) */
.po-page, .po-page * { font-family: 'Outfit', 'Inter', sans-serif; }
/* :where() keeps the reset at zero specificity so component rules below can set their own margins */
.po-page :where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
.po-page ul, .po-page ol { list-style: none; }
.po-page a { text-decoration: none; }
.po-page img { max-width: 100%; height: auto; display: block; }

.po-wrap { max-width: var(--po-wrap); margin: 0 auto; padding: 0 1.5rem; }
.po-center { text-align: center; }

/* ---------- Type ---------- */
.po-badge { display: inline-block; color: var(--po-coral); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.25rem; }
.po-h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); line-height: 1.05; font-weight: 500; color: var(--po-purple); letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.po-h1 em { font-style: normal; color: var(--po-coral); display: block; }
.po-h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.12; font-weight: 600; color: var(--po-purple); margin-bottom: 1rem; }
.po-lead { font-size: 1.2rem; color: #000; max-width: 34rem; line-height: 1.6; margin-bottom: 2rem; }
.po-sub { color: var(--po-muted); font-size: 1.05rem; max-width: 40rem; margin: 0 auto 3rem; }

/* ---------- Buttons ---------- */
.po-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.po-btn { display: inline-block; padding: 0.85rem 1.7rem; border-radius: 50px; font-size: 0.95rem; font-weight: 600; border: 2px solid var(--po-purple); background: var(--po-purple); color: #fff !important; transition: transform .25s, box-shadow .25s, background .25s; cursor: pointer; }
.po-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(79, 0, 140, .25); }
.po-btn--ghost { background: #fff; color: var(--po-purple) !important; }
.po-btn--ghost:hover { background: var(--po-lilac); }
.po-link { color: var(--po-purple); font-weight: 600; border-bottom: 2px solid var(--po-coral); padding-bottom: 1px; }
.po-link:hover { color: var(--po-coral); }

/* ---------- Hero ---------- */
.po-hero { position: relative; padding: 10.5rem 0 4.5rem; }
.po-hero::before { content: ''; position: absolute; top: -8%; right: -6%; width: 46%; aspect-ratio: 1; background: rgba(255, 107, 122, .14); border-radius: 50%; filter: blur(120px); z-index: 0; pointer-events: none; }
.po-hero::after { content: ''; position: absolute; bottom: -18%; left: -10%; width: 38%; aspect-ratio: 1; background: rgba(79, 0, 140, .08); border-radius: 50%; filter: blur(120px); z-index: 0; pointer-events: none; }
.po-hero-grid { position: relative; z-index: 1; display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 960px) { .po-hero-grid { grid-template-columns: 1.15fr .85fr; } }
.po-hero-cross { margin-top: 1.4rem; font-size: .95rem; color: var(--po-muted); }

/* glass panel: lists the platforms we run */
.po-panel { background: linear-gradient(297deg, rgba(253,253,253,.7) 1.78%, rgba(229,228,241,.6) 100%); backdrop-filter: blur(10px); border: 1px solid #fff; border-radius: 1.5rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,.18); padding: 2rem; }
.po-panel-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--po-muted); margin-bottom: 1.25rem; }
.po-plat { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--po-line); }
.po-plat:first-of-type { border-top: 0; padding-top: 0; }
.po-plat-dot { flex: 0 0 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--po-lilac-2); color: var(--po-purple); display: grid; place-items: center; font-weight: 700; }
.po-plat strong { display: block; color: var(--po-purple); font-weight: 600; font-size: 1.1rem; }
.po-plat span { color: var(--po-muted); font-size: .92rem; }

/* trust strip under hero */
.po-trust { border-top: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6; padding: 1.6rem 0; }
.po-trust ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2.6rem; color: var(--po-muted); font-size: .98rem; }
.po-trust li::before { content: '\2713'; color: var(--po-coral); font-weight: 700; margin-right: .5rem; }

/* ---------- Sections ---------- */
.po-section { padding: 5rem 0; }
.po-section--alt { background: rgba(249, 250, 251, .7); }
.po-grid { display: grid; gap: 1.75rem; }
@media (min-width: 720px) { .po-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .po-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .po-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.po-card { background: #fff; border: 1px solid #f3f4f6; border-radius: 1.1rem; padding: 2rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,.08); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.po-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(79, 0, 140, .2); }
.po-card h3 { font-size: 1.3rem; font-weight: 500; color: var(--po-purple); margin-bottom: .6rem; }
.po-card p { color: var(--po-muted); font-size: 1rem; }
.po-num { width: 3rem; height: 3rem; border-radius: 50%; background: var(--po-lilac); color: var(--po-purple); display: grid; place-items: center; font-weight: 700; margin-bottom: 1.2rem; }
.po-num--coral { background: #fce7f3; color: var(--po-coral); }
.po-card-tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--po-coral); margin-bottom: .5rem; }
.po-card .po-link { margin-top: auto; align-self: flex-start; padding-top: 1rem; border-bottom: 0; }
.po-card .po-link span { border-bottom: 2px solid var(--po-coral); }

.po-check li { position: relative; padding: .8rem 0 .8rem 2.2rem; border-top: 1px solid var(--po-line); color: #000; }
.po-check li:first-child { border-top: 0; }
.po-check li::before { content: '\2713'; position: absolute; left: 0; top: .8rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--po-coral); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.po-box { background: #fff; border: 1px solid var(--po-line); border-radius: 1.4rem; padding: 2.2rem 2.4rem; }
.po-box h3 { font-size: 1.35rem; font-weight: 600; color: var(--po-purple); margin-bottom: .6rem; }

/* process steps */
.po-steps { counter-reset: s; display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .po-steps { grid-template-columns: repeat(4, 1fr); } }
.po-step { background: #fff; border: 1px solid var(--po-line); border-radius: 1.1rem; padding: 1.8rem; position: relative; }
.po-step::before { counter-increment: s; content: '0' counter(s); display: block; font-size: 2rem; font-weight: 600; color: var(--po-coral); margin-bottom: .6rem; }
.po-step h3 { font-size: 1.25rem; color: var(--po-purple); font-weight: 600; margin-bottom: .4rem; }
.po-step p { color: var(--po-muted); font-size: .98rem; }

/* compliance chips (HRM) */
.po-chips { display: grid; gap: 1rem; }
@media (min-width: 720px) { .po-chips { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .po-chips { grid-template-columns: repeat(3, 1fr); } }
.po-chip { background: #fff; border-left: 4px solid var(--po-coral); border-radius: .5rem; padding: 1.1rem 1.3rem; box-shadow: 0 6px 14px rgba(0,0,0,.05); }
.po-chip strong { display: block; color: var(--po-purple); font-size: 1.05rem; }
.po-chip span { color: var(--po-muted); font-size: .95rem; }
.po-note { margin-top: 1.6rem; color: var(--po-muted); font-size: .95rem; }

/* pricing */
.po-price { display: grid; gap: 1.75rem; }
@media (min-width: 820px) { .po-price { grid-template-columns: 1fr 1fr; } }
.po-x li::before { content: '\2715'; background: #e5e7eb; color: #4b5563; }

/* FAQ */
.po-faq { max-width: 52rem; margin: 0 auto; }
.po-faq details { border-bottom: 1px solid var(--po-line); padding: 1.25rem 0; }
.po-faq summary { cursor: pointer; font-size: 1.15rem; font-weight: 500; color: var(--po-purple); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.po-faq summary::-webkit-details-marker { display: none; }
.po-faq summary::after { content: '+'; color: var(--po-coral); font-size: 1.6rem; line-height: 1; transition: transform .2s; }
.po-faq details[open] summary::after { transform: rotate(45deg); }
.po-faq details p { margin-top: .9rem; color: var(--po-muted); }

/* CTA */
.po-cta { padding: 2rem 0 6rem; }
.po-cta-box { position: relative; overflow: hidden; background: var(--po-purple); border-radius: 3rem; padding: 3.2rem 1.6rem; text-align: center; color: #fff; }
@media (min-width: 900px) { .po-cta-box { padding: 5rem 4rem; } }
.po-cta-box::before { content: ''; position: absolute; inset: 0; opacity: .22; background: radial-gradient(circle at 10% 20%, #ff6b7a 0%, transparent 40%); pointer-events: none; }
.po-cta-box > * { position: relative; z-index: 1; }
.po-page .po-cta-box h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 600; line-height: 1.12; margin-bottom: 1rem; color: #fff; }
.po-page .po-cta-box h2 em { font-style: normal; color: #ffc3ca; }
.po-page .po-cta-box p { max-width: 38rem; margin: 0 auto 2rem; font-size: 1.1rem; color: #fff; }
.po-cta-box .po-actions { justify-content: center; }
.po-cta-box .po-btn { background: #fff; color: var(--po-purple) !important; border-color: #fff; }
.po-cta-box .po-btn--ghost { background: transparent; color: #fff !important; }
.po-cta-box .po-btn--ghost:hover { background: #fff; color: var(--po-purple) !important; }
.po-cta-mail { margin-top: 1.6rem; font-size: .98rem; }
.po-cta-mail a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.6); }

/* ---------- Legal pages ---------- */
.po-legal { padding: 10.5rem 0 5rem; }
.po-legal .po-wrap { max-width: 820px; }
.po-legal .po-h1 { font-size: clamp(2.2rem, 4.4vw, 3rem); }
.po-legal-meta { color: var(--po-muted); margin-bottom: 2.5rem; }
.po-legal-body h2 { font-size: 1.5rem; font-weight: 600; color: var(--po-purple); margin: 2.4rem 0 .7rem; }
.po-legal-body p, .po-legal-body li { color: #1f1b2e; font-size: 1.05rem; margin-bottom: .9rem; }
.po-legal-body ul { list-style: disc; padding-left: 1.4rem; }
.po-legal-body a { color: var(--po-purple); border-bottom: 1px solid var(--po-coral); }

@media (max-width: 600px) {
	.po-hero { padding: 8rem 0 3rem; }
	.po-legal { padding: 8rem 0 4rem; }
	.po-section { padding: 3.5rem 0; }
	.po-box { padding: 1.6rem; }
}

/* ---------- Product pages: "at a glance" rows ---------- */
.po-glance { display: flex; flex-direction: column; gap: .2rem; padding: .95rem 0; border-top: 1px solid var(--po-line); }
.po-glance:first-of-type { border-top: 0; padding-top: 0; }
.po-glance span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--po-muted); }
.po-glance strong { font-weight: 600; color: var(--po-purple); font-size: 1.05rem; line-height: 1.35; }
