/* =========================================================================
   CRMaps — product sections (audience, how it works, portfolio, FAQ, CTA)
   Scoped under .crm-prod (CSS variables); shares the crm- prefix.
   ========================================================================= */

.crm-prod {
	--cx-blue: #2563eb;
	--cx-ink: #0b1020;
	--cx-muted: #5b6478;
	--cx-line: #e9edf5;
	--cx-bg: #f5f7fc;
	--cx-shadow: 0 34px 70px rgba(15, 23, 42, .16);
	--cx-shadow-sm: 0 14px 34px rgba(15, 23, 42, .09);
	--cx-fhead: var(--font-head, "Plus Jakarta Sans", system-ui, sans-serif);
	font-family: var(--font-body, "Inter", system-ui, sans-serif);
	color: var(--cx-ink);
}

.crm-block { padding: 104px 0; }
.crm-block__container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.crm-block__eyebrow { display: inline-block; font: 700 13px/1.35 var(--cx-fhead); letter-spacing: .12em; text-transform: uppercase; background: none; color: #2563eb; -webkit-text-fill-color: #2563eb; margin-bottom: 16px; padding-bottom: 1px; }
.crm-block__title { font: 800 clamp(32px, 4.4vw, 50px)/1.14 var(--cx-fhead); letter-spacing: -.025em; margin: 0 0 16px; padding-bottom: .06em; background: none; color: var(--cx-ink); -webkit-text-fill-color: var(--cx-ink); }
.crm-block__lead { font-size: 19px; line-height: 1.6; color: var(--cx-muted); margin: 0; }
.crm-block__head { max-width: 740px; margin: 0 auto 60px; text-align: center; }

.crm-cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 700 16px var(--cx-fhead); border: 0; border-radius: 13px; padding: 16px 28px; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.crm-cta-btn:hover { transform: translateY(-2px); }
.crm-cta-btn--white { background: #fff; color: var(--cx-blue); }

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 600px) {
	.crm-block { padding: 68px 0; }
}

/* Final CTA — solid blue banner */
.crm-cta { position: relative; border-radius: 30px; background: var(--cx-blue); padding: 66px 40px; text-align: center; overflow: hidden; box-shadow: var(--cx-shadow); }
.crm-cta__in { position: relative; z-index: 1; }
.crm-cta h2 { font: 800 clamp(28px, 3.8vw, 46px)/1.1 var(--cx-fhead); color: #fff; margin: 0 0 14px; letter-spacing: -.02em; }
.crm-cta p { color: #eaf1ff; font-size: 18px; margin: 0 0 30px; }
.crm-cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.crm-cta .crm-cta-btn--white { background: #fff; color: var(--cx-blue); box-shadow: 0 14px 30px rgba(2, 12, 40, .25); }
.crm-cta .crm-cta-btn--outline { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.crm-cta .crm-cta-btn--outline:hover { background: rgba(255, 255, 255, .2); }

@media (max-width: 600px) {
	.crm-cta { padding: 44px 22px; }
}

/* How it works — section background */
.sec-howitworks { background: #f7f8fa; }

/* =========================================================================
   Portfolio — project cards
   ========================================================================= */
.crm-projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.crm-project { display: block; text-decoration: none; color: inherit; background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.crm-project:hover .crm-project__thumb { box-shadow: 0 22px 44px rgba(16, 30, 54, .16); }
.crm-project__thumb { position: relative; height: 248px; border-radius: 16px; box-shadow: 0 16px 34px rgba(16, 30, 54, .10); transition: box-shadow .18s ease; background: #e7e9ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%238a90a0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9' r='1.5'/%3E%3Cpath d='m21 16-4.5-4.5L8 20'/%3E%3C/svg%3E") center / 48px no-repeat; overflow: hidden; }
.crm-project__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.crm-project__body { padding: 18px 4px 6px; opacity: .6; transition: opacity .2s ease; }
.crm-project:hover .crm-project__body { opacity: 1; }
.crm-project__body h3 { font: 800 19px/1.3 var(--cx-fhead); margin: 0 0 16px; color: var(--cx-ink); }
.crm-project__go { display: inline-flex; align-items: center; gap: 6px; font: 700 14px var(--cx-fhead); color: var(--cx-ink); transition: gap .15s ease; }
.crm-project__go svg { width: 15px; height: 15px; }
.crm-project:hover .crm-project__go { gap: 9px; }
@media (max-width: 1100px) { .crm-projects__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .crm-projects__grid { grid-template-columns: 1fr; } }

/* =========================================================================
   How it works — numbered steps with connector line
   ========================================================================= */
.crm-flow { display: flex; justify-content: center; align-items: stretch; max-width: 900px; margin: 0 auto; }
.crm-step { position: relative; display: flex; flex-direction: column; flex: 1; text-align: center; padding: 0 10px; }
.crm-step::before { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 58px; z-index: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M1 25 L 99 25' stroke='%232563eb' stroke-opacity='0.4' stroke-width='6.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%, #000 60%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 40%, #000 60%, transparent 100%); }
.crm-step:first-child::before { display: none; }
.crm-step__circle { position: relative; z-index: 1; width: 82px; height: 82px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; font: 800 30px var(--cx-fhead); color: #fff; background: var(--cx-blue); box-shadow: 0 14px 30px rgba(37, 99, 235, .28); }
.crm-step--last .crm-step__circle { background: #16a34a; box-shadow: 0 14px 30px rgba(22, 163, 74, .28); }
.crm-step__title { font: 800 17px var(--cx-fhead); color: var(--cx-ink); margin: 0 0 7px; }
.crm-step--last .crm-step__title { color: #16a34a; }
.crm-step__desc { font-size: 14px; color: var(--cx-muted); line-height: 1.5; margin: 0 auto 18px; max-width: 210px; }
@media (max-width: 720px) {
	.crm-flow { flex-direction: column; gap: 32px; max-width: 380px; }
	.crm-step::before { display: none; }
}

/* Step preview */
.crm-step__preview { position: relative; width: 100%; height: 170px; max-width: 264px; margin: auto auto 0; border-radius: 16px; background: var(--cx-bg); border: 0; box-shadow: var(--cx-shadow-sm); overflow: hidden; box-sizing: border-box; }
.crm-step__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crm-step__ph { position: absolute; inset: 0; background: #e7e9ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24' fill='none' stroke='%238a90a0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9' r='1.5'/%3E%3Cpath d='m21 16-4.5-4.5L8 20'/%3E%3C/svg%3E") center / 42px no-repeat; }
@media (max-width: 720px) { .crm-step__preview { max-width: 300px; } }

/* =========================================================================
   Audience section — map for buyers / dashboard for developers (tabbed, CSS-only)
   ========================================================================= */
.crm-audience { position: relative; }
.crm-audience > input { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.crm-audience + .crm-audience { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--cx-line); }
.crm-audience__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.crm-audience--rev .crm-audience__inner { grid-template-columns: 1.2fr .8fr; }
.crm-audience--rev .crm-audience__media { order: -1; }
@media (max-width: 860px) {
	.crm-audience__inner, .crm-audience--rev .crm-audience__inner { grid-template-columns: 1fr; gap: 28px; }
	.crm-audience--rev .crm-audience__media { order: 0; }
}
.crm-audience__chip { display: inline-flex; align-items: center; gap: 8px; font: 700 12px var(--cx-fhead); letter-spacing: .07em; text-transform: uppercase; color: var(--cx-blue); background: #eef4ff; padding: 6px 13px; border-radius: 999px; margin-bottom: 16px; }
.crm-audience__text h3 { font: 800 clamp(26px, 3vw, 36px)/1.12 var(--cx-fhead); color: var(--cx-ink); margin: 0 0 12px; padding-bottom: .04em; }
.crm-audience__text > p { color: var(--cx-muted); font-size: 17px; line-height: 1.55; margin: 0 0 22px; max-width: 440px; }
.crm-audience__tabs { display: flex; flex-direction: column; gap: 10px; interpolate-size: allow-keywords; }
.crm-audience__tab { display: flex; flex-direction: column; align-items: stretch; padding: 12px 0 12px 18px; border: 0; border-left: 2px solid transparent; border-radius: 0; cursor: pointer; background: none; transition: border-color .15s, color .15s; }
.crm-audience__tab:hover b { color: var(--cx-blue); }
.crm-audience__tabrow { display: flex; align-items: center; gap: 9px; }
.crm-audience__tab .ic { display: inline-flex; vertical-align: middle; margin-right: 8px; position: relative; top: -1px; color: var(--cx-blue); }
.crm-audience__tab .ic svg { width: 16px; height: 16px; }
.crm-audience__tab b { font: 800 15px var(--cx-fhead); color: var(--cx-ink); }
.crm-audience__tabdesc { margin: 0; height: 0; opacity: 0; overflow: hidden; font-size: 14px; color: var(--cx-muted); line-height: 1.55; transition: height .5s cubic-bezier(.16,1,.3,1), opacity .4s ease .06s, margin-top .5s cubic-bezier(.16,1,.3,1); }
#aud-b1:checked ~ .crm-audience__inner label[for="aud-b1"] .crm-audience__tabdesc,
#aud-b2:checked ~ .crm-audience__inner label[for="aud-b2"] .crm-audience__tabdesc,
#aud-b3:checked ~ .crm-audience__inner label[for="aud-b3"] .crm-audience__tabdesc,
#aud-d1:checked ~ .crm-audience__inner label[for="aud-d1"] .crm-audience__tabdesc,
#aud-d2:checked ~ .crm-audience__inner label[for="aud-d2"] .crm-audience__tabdesc,
#aud-d3:checked ~ .crm-audience__inner label[for="aud-d3"] .crm-audience__tabdesc { height: auto; opacity: 1; margin-top: 12px; }
.crm-audience__media { position: relative; }
.crm-audience__stage { background: #fff; border: 0; border-radius: 20px; box-shadow: var(--cx-shadow); overflow: hidden; }
.crm-audience__preview { display: none; }
.crm-audience__ph { height: 440px; background: #e7e9ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%238a90a0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9' r='1.5'/%3E%3Cpath d='m21 16-4.5-4.5L8 20'/%3E%3C/svg%3E") center / 46px no-repeat; }
.crm-audience__img { display: block; width: 100%; height: auto; }

/* radio technique: show active preview + highlight active tab */
#aud-b1:checked ~ .crm-audience__inner .p-b1,
#aud-b2:checked ~ .crm-audience__inner .p-b2,
#aud-b3:checked ~ .crm-audience__inner .p-b3,
#aud-d1:checked ~ .crm-audience__inner .p-d1,
#aud-d2:checked ~ .crm-audience__inner .p-d2,
#aud-d3:checked ~ .crm-audience__inner .p-d3 { display: block; }
#aud-b1:checked ~ .crm-audience__inner label[for="aud-b1"],
#aud-b2:checked ~ .crm-audience__inner label[for="aud-b2"],
#aud-b3:checked ~ .crm-audience__inner label[for="aud-b3"],
#aud-d1:checked ~ .crm-audience__inner label[for="aud-d1"],
#aud-d2:checked ~ .crm-audience__inner label[for="aud-d2"],
#aud-d3:checked ~ .crm-audience__inner label[for="aud-d3"] { border-left-color: var(--cx-blue); }
#aud-b1:checked ~ .crm-audience__inner label[for="aud-b1"] b,
#aud-b2:checked ~ .crm-audience__inner label[for="aud-b2"] b,
#aud-b3:checked ~ .crm-audience__inner label[for="aud-b3"] b,
#aud-d1:checked ~ .crm-audience__inner label[for="aud-d1"] b,
#aud-d2:checked ~ .crm-audience__inner label[for="aud-d2"] b,
#aud-d3:checked ~ .crm-audience__inner label[for="aud-d3"] b { color: var(--cx-blue); }

@media (max-width: 860px) {
	.crm-audience__inner { grid-template-columns: 1fr; gap: 30px; }
	.crm-audience--rev .crm-audience__media { order: 0; }
}

/* =========================================================================
   FAQ — minimal accordion
   ========================================================================= */
.crm-faq { max-width: 780px; }
.crm-faq__head { text-align: center; margin-bottom: 46px; }
.crm-faq__head h2 { font: 800 clamp(28px, 3.4vw, 40px)/1.12 var(--cx-fhead); color: var(--cx-ink); letter-spacing: -.02em; margin: 0 0 12px; padding-bottom: .04em; }
.crm-faq__head p { color: var(--cx-muted); font-size: 16px; margin: 0; }
.crm-faq__list { border-top: 1px solid var(--cx-line); min-height: 480px; }
.crm-faq details { border-bottom: 1px solid var(--cx-line); }
.crm-faq summary { position: relative; list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 38px 22px 2px; font: 600 17px var(--cx-fhead); color: #5b6478; transition: color .15s ease; }
.crm-faq summary:hover { color: var(--cx-ink); }
.crm-faq details[open] summary { color: var(--cx-ink); }
.crm-faq summary::-webkit-details-marker { display: none; }
.crm-faq summary::before,
.crm-faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 15px; height: 2px; border-radius: 2px; background: var(--cx-muted); transition: transform .4s cubic-bezier(.16, 1, .3, 1), background-color .2s ease; }
.crm-faq summary::before { transform: translateY(-50%); }
.crm-faq summary::after { transform: translateY(-50%) rotate(90deg); }
.crm-faq details[open] summary::after { transform: translateY(-50%) rotate(0deg); }
.crm-faq__answer { padding: 0 2px 24px; margin: 0; color: var(--cx-muted); font-size: 15px; line-height: 1.65; max-width: 92%; }
.crm-faq__answer a { color: var(--cx-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; transition: color .15s ease; }
.crm-faq__answer a:hover { color: #1d4ed8; }
.crm-faq { interpolate-size: allow-keywords; }
.crm-faq details::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size .5s cubic-bezier(.16,1,.3,1), opacity .4s ease .06s, content-visibility .5s allow-discrete; }
.crm-faq details[open]::details-content { block-size: auto; opacity: 1; }