/* ==========================================================================
   Velocity by MedShift — Commerce B pages
   Templates: Territory & Commissions · Integrations & Pricing
   Orange (Commerce) accent. Reuses global vel-* classes from velocity.css;
   everything defined here is prefixed velp-cb-.
   ========================================================================== */

/* ---------- split hero (copy left / visual right) ---------- */

.velp-cb-hero {
	background: #fff;
	padding: 72px 0 84px;
	overflow: hidden;
}

.velp-cb-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.velp-cb-hero-copy, .velp-cb-hero-visual { min-width: 0; }

.velp-cb-hero-copy .vel-eyebrow { margin-bottom: 16px; }

.velp-cb-hero-title {
	font-size: clamp(34px, 4.6vw, 52px);
	line-height: 1.06;
	font-weight: 800;
	color: var(--vel-navy);
	letter-spacing: -0.01em;
	margin: 0 0 20px;
}

.velp-cb-hero-sub {
	font-size: 16.5px;
	line-height: 1.66;
	max-width: 500px;
	margin: 0 0 24px;
}

.velp-cb-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 26px;
}

.velp-cb-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------- territory dashboard mock ---------- */

.velp-cb-terr-dash {
	position: relative;
	background: #fff;
	border: 1px solid var(--vel-line);
	border-radius: 18px;
	box-shadow: var(--vel-shadow);
	padding: 16px;
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 14px;
	max-width: 540px;
	margin-left: auto;
}

.velp-cb-terr-side { display: flex; flex-direction: column; gap: 9px; }

.velp-cb-terr-side b {
	font-size: 11px;
	font-weight: 800;
	color: var(--vel-navy);
	letter-spacing: 0.02em;
}

.velp-cb-terr-side i {
	display: block;
	height: 8px;
	border-radius: 4px;
	background: #e9edf3;
}
.velp-cb-terr-side i.is-sel { background: #cfe0d4; }
.velp-cb-terr-side i.pad { margin-left: 14px; width: 78%; }
.velp-cb-terr-side i.pad2 { margin-left: 26px; width: 62%; }

.velp-cb-terr-map {
	position: relative;
	border-radius: 12px;
	min-height: 210px;
	background:
		radial-gradient(120px 120px at 78% 32%, #d8d0ea 0 100%, transparent 100%),
		radial-gradient(110px 110px at 40% 30%, #dbead0 0 100%, transparent 100%),
		radial-gradient(120px 120px at 58% 62%, #ecd0d3 0 100%, transparent 100%),
		radial-gradient(90px 90px at 30% 62%, #f0dcc9 0 100%, transparent 100%),
		radial-gradient(90px 90px at 74% 70%, #eee7c4 0 100%, transparent 100%),
		linear-gradient(135deg, #eef2f7, #e3e9f1);
	overflow: hidden;
}

.velp-cb-terr-map::after {
	content: '';
	position: absolute;
	left: 12px; top: 12px; right: 12px; bottom: 12px;
	border-radius: 8px;
	background-image:
		linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
	background-size: 26px 26px;
	opacity: 0.5;
}

.velp-cb-terr-pin {
	position: absolute;
	right: 22%;
	bottom: 30%;
	width: 16px;
	height: 16px;
	background: var(--vel-navy);
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	box-shadow: 0 6px 14px -4px rgba(18,32,53,0.5);
	z-index: 2;
}

/* ---------- split content section (visual + copy) ---------- */

.velp-cb-split { padding: 88px 0; }
.velp-cb-split--soft { background: var(--vel-bg-soft); }

.velp-cb-split-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.velp-cb-split-visual, .velp-cb-split-copy { min-width: 0; }

.velp-cb-split-copy .vel-eyebrow { margin-bottom: 12px; }
.velp-cb-split-copy h2 { margin-bottom: 16px; }
.velp-cb-split-copy p { font-size: 15.5px; line-height: 1.7; margin: 0 0 22px; max-width: 480px; }

.velp-cb-checklist { list-style: none; margin: 0; padding: 0; }

.velp-cb-checklist li {
	position: relative;
	padding: 8px 0 8px 30px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--vel-navy);
}

.velp-cb-checklist li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 9px;
	width: 17px;
	height: 17px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8a581' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 6.5'/%3E%3C/svg%3E");
}

/* ---------- order-routing card mock ---------- */

.velp-cb-order {
	position: relative;
	background: linear-gradient(150deg, #fbfcfe, #eef2f7);
	border: 1px solid var(--vel-line);
	border-radius: 18px;
	box-shadow: var(--vel-shadow-soft);
	padding: 28px;
	max-width: 480px;
}

.velp-cb-order-flow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
}

.velp-cb-order-badge {
	position: relative;
	flex: 0 0 56px;
	height: 56px;
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--vel-shadow-soft);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--vel-navy);
}
.velp-cb-order-badge svg { width: 26px; height: 26px; }

.velp-cb-order-badge em {
	position: absolute;
	top: -3px;
	right: -3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--vel-navy);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.velp-cb-order-badge em svg { width: 12px; height: 12px; }

.velp-cb-order-flow-text b { display: block; font-size: 13.5px; font-weight: 800; color: var(--vel-navy); }
.velp-cb-order-flow-text span { font-size: 12px; color: var(--vel-slate); }

.velp-cb-order-arrow { flex: 1; height: 2px; border-top: 2px dashed #c2cddb; }

.velp-cb-order-rows {
	background: #fff;
	border-radius: 14px;
	box-shadow: var(--vel-shadow-soft);
	padding: 6px 18px;
}

.velp-cb-order-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 0;
	border-bottom: 1px solid #eef1f5;
}
.velp-cb-order-row:last-child { border-bottom: 0; }

.velp-cb-order-ic {
	flex: 0 0 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--vel-bg-soft);
	color: var(--vel-navy);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.velp-cb-order-ic svg { width: 16px; height: 16px; }

.velp-cb-order-txt { display: flex; flex-direction: column; gap: 1px; }
.velp-cb-order-txt span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--vel-slate-light); }
.velp-cb-order-txt strong { font-size: 14px; font-weight: 800; color: var(--vel-navy); display: inline-flex; align-items: center; gap: 6px; }
.velp-cb-order-txt strong svg { width: 14px; height: 14px; color: var(--vel-green-deep); }

/* ---------- split CTA card (copy left / actions right) ---------- */

.velp-cb-cta { padding: 0 0 96px; }

.velp-cb-cta-card {
	position: relative;
	background: linear-gradient(150deg, var(--vel-navy-soft) 0%, var(--vel-navy) 72%);
	border-radius: 22px;
	box-shadow: var(--vel-shadow);
	padding: clamp(36px, 5vw, 52px);
	display: grid;
	grid-template-columns: 1.4fr auto;
	gap: 28px;
	align-items: center;
	overflow: hidden;
}

.velp-cb-cta-card h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: #fff; margin: 0 0 12px; }
.velp-cb-cta-card p,
.velp-cb-cta-card .elementor-widget-text-editor p { font-size: 15px; line-height: 1.6; color: #c8d8ec; margin: 0; max-width: 440px; }

.velp-cb-cta-actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 2; }
.velp-cb-cta-actions .vel-btn { justify-content: center; }

.velp-cb-cta-deco {
	position: absolute;
	right: -2px;
	bottom: 40px;
	display: flex;
	align-items: flex-end;
	gap: 10px;
	z-index: 1;
}

.velp-cb-cta-deco i,
.velp-cb-cta-deco::after {
	width: 11px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.12);
}

/* The fourth bar is a pseudo-element only where the markup ships three <i>. */
.velp-cb-cta-deco:not(:has(i:nth-child(4)))::after { content: ''; height: 120px; }
.velp-cb-cta-deco i:nth-child(1) { height: 50px; }
.velp-cb-cta-deco i:nth-child(2) { height: 100px; }
.velp-cb-cta-deco i:nth-child(3) { height: 80px; }
.velp-cb-cta-deco i:nth-child(4) { height: 120px; }

/* ---------- integrations orbit mock ---------- */

.velp-cb-orbit {
	position: relative;
	width: 100%;
	max-width: 420px;
	aspect-ratio: 1 / 1;
	margin: 0 auto;
	padding: 24px;
	overflow: hidden;
}

.velp-cb-orbit-ring {
	position: absolute;
	inset: 8%;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 50%, rgba(105,124,224,0.16) 0%, rgba(105,124,224,0.08) 42%, rgba(105,124,224,0) 64%);
}
.velp-cb-orbit-ring::before,
.velp-cb-orbit-ring::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	border: 1px dashed #d4d9ee;
}
.velp-cb-orbit-ring::before { inset: 4%; }
.velp-cb-orbit-ring::after { inset: 22%; border-color: #e2e6f5; }

.velp-cb-orbit-core {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 74px;
	height: 74px;
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--vel-shadow);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--vel-navy);
	z-index: 3;
}

.velp-cb-orbit-node {
	position: absolute;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--vel-shadow-soft);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 900;
	transform: translate(-50%, -50%);
	z-index: 2;
}
.velp-cb-orbit-node svg { width: 20px; height: 20px; }
.velp-cb-orbit-node.n1 { top: 12%; left: 62%; color: var(--vel-orange-deep); }
.velp-cb-orbit-node.n2 { top: 14%; left: 84%; color: #3d6db5; }
.velp-cb-orbit-node.n3 { top: 40%; left: 95%; color: var(--vel-navy); }
.velp-cb-orbit-node.n4 { top: 66%; left: 90%; color: var(--vel-green-deep); }
.velp-cb-orbit-node.n5 { top: 86%; left: 66%; color: var(--vel-orange-deep); }
.velp-cb-orbit-node.n6 { top: 88%; left: 40%; color: var(--vel-slate); }
.velp-cb-orbit-node.n7 { top: 62%; left: 10%; color: var(--vel-green-deep); }
.velp-cb-orbit-node.n8 { top: 24%; left: 14%; color: #3d6db5; }

/* ---------- integrations grid (14 chips) ---------- */

.velp-cb-int { padding: 88px 0; text-align: center; }
.velp-cb-int .vel-section-sub { margin-left: auto; margin-right: auto; }

.velp-cb-int-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	max-width: 960px;
	margin: 0 auto;
}

.velp-cb-int-grid span {
	box-sizing: border-box;
	flex: 0 0 calc((100% - 57px) / 5);
	background: var(--vel-bg-soft);
	border-radius: 12px;
	padding: 20px 10px;
	font-size: 14px;
	font-weight: 700;
	color: var(--vel-slate);
	text-align: center;
	transition: background 0.15s ease, color 0.15s ease;
}
.velp-cb-int-grid span:hover { background: #ecf0f5; color: var(--vel-navy); }
.velp-cb-int-grid span.is-more { background: transparent; border: 1px dashed #d4dbe4; color: var(--vel-slate-light); }

/* ---------- pricing ---------- */

.velp-cb-pricing { padding: 20px 0 96px; }
.velp-cb-pricing--soft { background: var(--vel-bg-soft); padding: 88px 0 96px; }

.velp-cb-pricing .vel-h2 { text-align: left; }

.velp-cb-plan-group {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--vel-slate-light);
	margin: 30px 0 14px;
}
/* keydesign-framework's .elementor-widget-text-editor p{color:inherit} (0-2-0, loads
   last) beats a bare class here, so the inner <p> needs the longer selector too. */
.velp-cb-plan-group--shopify,
.vel-main .elementor-widget-text-editor p.velp-cb-plan-group--shopify { color: #f8a581; }
.velp-cb-plan-group--standalone,
.vel-main .elementor-widget-text-editor p.velp-cb-plan-group--standalone { color: #2877b9; }

.velp-cb-plan {
	position: relative;
	background: #fff;
	border: 1px solid var(--vel-line);
	border-radius: 18px;
	box-shadow: var(--vel-shadow-soft);
	padding: 30px 32px;
	display: grid;
	grid-template-columns: 220px 1fr auto;
	gap: 28px;
	align-items: center;
	margin-bottom: 20px;
}

.velp-cb-plan--popular { border: 1.5px solid var(--vel-orange); }
.velp-cb-plan--standalone { border: 1.5px solid #2877b9; background: #eaf3fb; }

.velp-cb-plan-chip {
	display: inline-block;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 5px 11px;
	border-radius: 999px;
	margin-bottom: 10px;
}
.velp-cb-plan-chip--popular { background: var(--vel-orange); color: var(--vel-navy); }
.velp-cb-plan-chip--standalone { background: #3d6db5; color: #fff; }

.velp-cb-plan-eyebrow { font-size: 13px; font-weight: 700; color: var(--vel-slate); margin: 0 0 2px; }
.velp-cb-plan-name { font-size: 20px; font-weight: 800; color: var(--vel-navy); margin: 0 0 8px; }
.velp-cb-plan-name--xl { font-size: 30px; }

.velp-cb-plan-price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 10px; }
.velp-cb-plan-price strong { font-size: 30px; font-weight: 800; color: var(--vel-navy); line-height: 1; }
.velp-cb-plan-price span { font-size: 13px; font-weight: 600; color: var(--vel-slate); }

.velp-cb-plan-note { font-size: 13.5px; line-height: 1.5; color: var(--vel-slate); margin: 0; }

.velp-cb-plan-features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 26px;
}

.velp-cb-plan-features li {
	position: relative;
	padding-left: 26px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--vel-navy);
}

.velp-cb-plan-features li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 1px;
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8a581' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 6.5'/%3E%3C/svg%3E");
}

.velp-cb-plan-action { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.velp-cb-plan-action .vel-btn { white-space: nowrap; }
.velp-cb-plan-free { font-size: 12.5px; font-weight: 700; color: var(--vel-orange-deep); }

/* ==========================================================================
   "Go deeper" — 4 link cards  (ported from commerce-a.css)
   Same markup as the Commerce overview band: .velp-ca-soft > .vel-container
   > .velp-ca-cards-4 > .velp-ca-linkcard. Kept under the .velp-ca- prefix so
   the section can be pasted between pages unchanged.

   NOTE: commerce-a scopes the icon-tile rules under a .velp-ca ancestor, which
   only exists on the PHP-templated pages (<main class="vel-main velp-ca">).
   The Elementor pages that load this file have no such wrapper, so the two
   icon rules below are re-scoped to .velp-ca-linkcard itself.
   ========================================================================== */

.velp-ca-soft { background: var(--vel-bg-soft); }

.velp-ca-cards-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px;
	text-align: left;
	margin-top: 34px;
}

.velp-ca-linkcard {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--vel-line);
	border-radius: 14px;
	padding: 26px 24px;
	box-shadow: var(--vel-shadow-soft);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.velp-ca-linkcard:hover { transform: translateY(-3px); box-shadow: var(--vel-shadow); }
.velp-ca-linkcard h3 { font-size: 14px; font-weight: 600; color: var(--vel-navy); margin: 0 0 8px; }
.velp-ca-linkcard p { font-size: 13px; line-height: 1.62; margin: 0 0 18px; flex: 1; }

/* the link cards take a 42px icon tile, not the 48px feature-card one */
.velp-ca-linkcard .vel-card-icon { width: 42px; height: 42px; border-radius: 11px; margin-bottom: 16px; }
.velp-ca-linkcard .vel-card-icon svg { width: 19px; height: 19px; }

/* pale-blue badge with navy icon — the Commerce treatment, not the orange accent */
.velp-ca-linkcard .vel-card-icon.vel-accent-orange {
	background: #eaf3fb;
	color: var(--vel-navy);
}

.velp-ca-morelink {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	font-size: 14px;
	font-weight: 700;
	color: var(--vel-orange) !important;
	text-decoration: none !important;
}

.velp-ca-morelink svg { width: 13px; height: 13px; transition: transform 0.15s ease; }
.velp-ca-morelink:hover svg { transform: translateX(3px); }

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

@media (max-width: 900px) {
	.velp-ca-cards-4 { grid-template-columns: repeat(2, 1fr); }
	.velp-cb-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.velp-cb-terr-dash { margin: 0 auto; }
	.velp-cb-split-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.velp-cb-split-visual { order: 2; }
	.velp-cb-order { margin: 0 auto; }
	.velp-cb-cta-card { grid-template-columns: 1fr; }
	.velp-cb-cta-actions { flex-direction: row; flex-wrap: wrap; }
	.velp-cb-int-grid span { flex: 0 0 calc((100% - 29px) / 3); }
	.velp-cb-plan { grid-template-columns: 1fr; gap: 22px; }
	.velp-cb-plan-action { align-items: flex-start; }
}

@media (max-width: 560px) {
	.velp-ca-cards-4 { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
	.velp-cb-hero-title { font-size: 32px; }
	.velp-cb-terr-dash { grid-template-columns: 110px 1fr; padding: 12px; }
	.velp-cb-plan-features { grid-template-columns: 1fr; }
	.velp-cb-int-grid span { flex: 0 0 calc((100% - 15px) / 2); }
	.velp-cb-cta-actions .vel-btn { width: 100%; }
	.velp-cb-cta-actions { flex-direction: column; }
	.velp-cb-orbit-node { width: 36px; height: 36px; }
	.velp-cb-orbit-core { width: 60px; height: 60px; }
}
